{% extends "forms/field.html.twig" %}

{% set passwordStored = value ? 1 : 0 %}
{% set isEncrypted = value|starts_with('gitsync-') %}
{% set value = '' %}

{% block input_attributes %}
    type="password"
    class="input"
    placeholder="{{ passwordStored ? (isEncrypted ? 'Your password is securely stored.' : 'Your password is stored but not encrypted.') : field.placeholder }}"
    {{ parent() }}
{% endblock %}
