{{ service.name }} |
{% if credential %}
{% if interface.isCredentialInErrorState(service.type) %}Error{% else %}Connected{% endif %} |
{{ credential.userName }} |
{% set title %}{% trans "Change Password" %}{% endset %}
{% set helpText %}{{ "Please enter the password you use to connect to %service%"|trans({'%service%': service.name}) }}{% endset %}
{{ inline.password((service.type ~ "_password"), title, null, helpText) }}
{% set title %}{% trans "Change second factor secret" %}{% endset %}
{% set helpText %}{% trans "We support Google Authenticator or similar two factor codes. You get this secret by scanning the QR code." %}{% endset %}
{{ inline.input((service.type ~ "_twoFactorSecret"), title, null, helpText) }}
|
{{ inline.checkbox((service.type ~ "_remove"), "Check to remove"|trans)}} |
{% else %}
{% set title %}{% trans "Username" %}{% endset %}
{% set helpText %}{% trans "Please enter the username you use to connect to your dashboard service." %}{% endset %}
{{ inline.input((service.type ~ "_userName"), title, null, helpText) }}
{% set title %}{% trans "Password" %}{% endset %}
{% set helpText %}{{ "Please enter the password you use to connect to %service%"|trans({'%service%': service.name}) }}{% endset %}
{{ inline.password((service.type ~ "_password"), title, null, helpText) }}
{% set title %}{% trans "Second factor secret" %}{% endset %}
{% set helpText %}{% trans "We support Google Authenticator or similar two factor codes. You get this secret by scanning the QR code." %}{% endset %}
{{ inline.input((service.type ~ "_twoFactorSecret"), title, null, helpText) }}
{% if service.isUrl %}
{% set title %}{% trans "URL" %}{% endset %}
{% set helpText %}{{ "The URL where the %service% is hosted"|trans({'%service%':service.name}) }}{% endset %}
{{ inline.input((service.type ~ "_url"), title, null, helpText) }}
{% endif %}
|
{% endif %}
{% endfor %}