aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/templates/forms
diff options
context:
space:
mode:
authorMarvin Borner2018-06-08 20:03:25 +0200
committerMarvin Borner2018-06-08 20:03:25 +0200
commit92b7dd3335a6572debeacfb5faa82c63a5e67888 (patch)
tree7ebbca22595d542ec5e2912a24a0400ac8f6b113 /main/app/sprinkles/account/templates/forms
parent22a1bb27f94ea33042b0bdd35bef1a5cfa96cc0d (diff)
Some minor fixes
Diffstat (limited to 'main/app/sprinkles/account/templates/forms')
-rw-r--r--main/app/sprinkles/account/templates/forms/settings-account.html.twig80
-rw-r--r--main/app/sprinkles/account/templates/forms/settings-profile.html.twig90
2 files changed, 85 insertions, 85 deletions
diff --git a/main/app/sprinkles/account/templates/forms/settings-account.html.twig b/main/app/sprinkles/account/templates/forms/settings-account.html.twig
index 19281d5..7594f28 100644
--- a/main/app/sprinkles/account/templates/forms/settings-account.html.twig
+++ b/main/app/sprinkles/account/templates/forms/settings-account.html.twig
@@ -1,41 +1,41 @@
-<form id="account-settings" role="form" action="{{ site.uri.public }}/account/settings" method="post">
- <div class="box-header">
- <h3 class="box-title"><i class="fa fa-gear fa-fw"></i> {{ translate("ACCOUNT.SETTINGS") }}</h3>
- </div>
- <div class="box-body">
- {% include "forms/csrf.html.twig" %}
- <!-- Prevent browsers from trying to autofill the password field. See http://stackoverflow.com/a/23234498/2970321 -->
- <input type="text" style="display:none">
- <input type="password" style="display:none">
-
- {% block settings_account %}
- <div class="form-group">
- <label for="input-email" class="ccontrol-label">{{ translate("EMAIL") }}</label>
- <input type="text" id="input-email" class="form-control" name="email" value="{{ current_user.email }}"
- autocomplete="off" placeholder="{{ translate("EMAIL.YOUR") }}" {{ page.visibility }}>
- </div>
- {% if page.visibility != "disabled" %}
- <div class="form-group">
- <label for="input-password" class="control-label">{{ translate("PASSWORD.NEW") }}</label>
- <input type="password" id="input-password" class="form-control" name="password"
- placeholder="{{ translate("PASSWORD.BETWEEN", {min: 12, max: 100}) }} ({{ translate("OPTIONAL") }})">
- </div>
- <div class="form-group">
- <label for="input-passwordc" class="control-label">{{ translate("PASSWORD.CONFIRM_NEW") }}</label>
- <input type="password" id="input-passwordc" class="form-control" name="passwordc"
- placeholder="{{ translate("PASSWORD.CONFIRM_NEW_HELP") }}">
- </div>
- <hr>
- <div class="form-group">
- <label for="input-passwordcheck" class="control-label">{{ translate("PASSWORD.CURRENT") }}</label>
- <input type="password" id="input-passwordcheck" class="form-control" name="passwordcheck"
- placeholder="{{ translate("PASSWORD.CURRENT_EXPLAIN") }}">
- </div>
- {% endif %}
- {% endblock %}
- </div>
- <div class="box-footer text-center">
- <button type="reset" class="btn btn-default">{{ translate('RESET') }}</button>
- <button type="submit" class="btn btn-primary js-submit">{{ translate('SAVE') }}</button>
- </div>
+<form id="account-settings" role="form" action="{{ site.uri.public }}/account/settings" method="post">
+ <div class="box-header">
+ <h3 class="box-title"><i class="fa fa-gear fa-fw"></i> {{ translate("ACCOUNT.SETTINGS") }}</h3>
+ </div>
+ <div class="box-body">
+ {% include "forms/csrf.html.twig" %}
+ <!-- Prevent browsers from trying to autofill the password field. See http://stackoverflow.com/a/23234498/2970321 -->
+ <input type="text" style="display:none">
+ <input type="password" style="display:none">
+
+ {% block settings_account %}
+ <div class="form-group">
+ <label for="input-email" class="ccontrol-label">{{ translate("EMAIL") }}</label>
+ <input type="text" id="input-email" class="form-control" name="email" value="{{ current_user.email }}"
+ autocomplete="off" placeholder="{{ translate("EMAIL.YOUR") }}" {{ page.visibility }}>
+ </div>
+ {% if page.visibility != "disabled" %}
+ <div class="form-group">
+ <label for="input-password" class="control-label">{{ translate("PASSWORD.NEW") }}</label>
+ <input type="password" id="input-password" class="form-control" name="password"
+ placeholder="{{ translate("PASSWORD.BETWEEN", {min: 12, max: 100}) }} ({{ translate("OPTIONAL") }})">
+ </div>
+ <div class="form-group">
+ <label for="input-passwordc" class="control-label">{{ translate("PASSWORD.CONFIRM_NEW") }}</label>
+ <input type="password" id="input-passwordc" class="form-control" name="passwordc"
+ placeholder="{{ translate("PASSWORD.CONFIRM_NEW_HELP") }}">
+ </div>
+ <hr>
+ <div class="form-group">
+ <label for="input-passwordcheck" class="control-label">{{ translate("PASSWORD.CURRENT") }}</label>
+ <input type="password" id="input-passwordcheck" class="form-control" name="passwordcheck"
+ placeholder="{{ translate("PASSWORD.CURRENT_EXPLAIN") }}">
+ </div>
+ {% endif %}
+ {% endblock %}
+ </div>
+ <div class="box-footer text-center">
+ <button type="reset" class="btn btn-default">{{ translate('RESET') }}</button>
+ <button type="submit" class="btn btn-primary js-submit">{{ translate('SAVE') }}</button>
+ </div>
</form> \ No newline at end of file
diff --git a/main/app/sprinkles/account/templates/forms/settings-profile.html.twig b/main/app/sprinkles/account/templates/forms/settings-profile.html.twig
index 09f4e40..a0f1194 100644
--- a/main/app/sprinkles/account/templates/forms/settings-profile.html.twig
+++ b/main/app/sprinkles/account/templates/forms/settings-profile.html.twig
@@ -1,45 +1,45 @@
-<form id="profile-settings" role="form" action="{{ site.uri.public }}/account/settings/profile" method="post">
- <div class="box-header">
- <h3 class="box-title"><i class="fa fa-user fa-fw"></i> {{ translate("PROFILE.SETTINGS") }}</h3>
- </div>
- <div class="box-body">
- {% include "forms/csrf.html.twig" %}
-
- {% block settings_profile %}
- <label for="input-first-name" class="control-label">{{ translate("NAME") }}</label>
- <div class="row">
- <div class="col-sm-6">
- <div class="form-group">
- <input type="text" id="input-first-name" class="form-control" name="first_name"
- value="{{ current_user.first_name }}"
- placeholder="{{ translate("FIRST_NAME") }}" {{ page.visibility }}>
- </div>
- </div>
- <div class="col-sm-6">
- <div class="form-group">
- <input type="text" id="input-last-name" class="form-control" name="last_name"
- value="{{ current_user.last_name }}"
- placeholder="{{ translate("LAST_NAME") }}" {{ page.visibility }}>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label for="input-locale" class="control-label">{{ translate("LOCALE") }}</label>
- <select id="input-locale" class="form-control js-select2" name="locale" {{ page.visibility }}>
- {% for option, label in locales %}
- {% if label is not empty %}
- <option value="{{ option }}"
- {% if (option == current_user.locale) %}selected{% endif %}>{{ label }}</option>
- {% endif %}
- {% endfor %}
- </select>
- <p class="help-block">{{ translate("LOCALE.ACCOUNT") }}.</p>
- </div>
- {% endblock %}
- </div>
- <div class="box-footer text-center">
- <button type="reset" class="btn btn-default">{{ translate('RESET') }}</button>
- <button type="submit" class="btn btn-primary js-submit">{{ translate('SAVE') }}</button>
- </div>
-</form>
+<form id="profile-settings" role="form" action="{{ site.uri.public }}/account/settings/profile" method="post">
+ <div class="box-header">
+ <h3 class="box-title"><i class="fa fa-user fa-fw"></i> {{ translate("PROFILE.SETTINGS") }}</h3>
+ </div>
+ <div class="box-body">
+ {% include "forms/csrf.html.twig" %}
+
+ {% block settings_profile %}
+ <label for="input-first-name" class="control-label">{{ translate("NAME") }}</label>
+ <div class="row">
+ <div class="col-sm-6">
+ <div class="form-group">
+ <input type="text" id="input-first-name" class="form-control" name="first_name"
+ value="{{ current_user.first_name }}"
+ placeholder="{{ translate("FIRST_NAME") }}" {{ page.visibility }}>
+ </div>
+ </div>
+ <div class="col-sm-6">
+ <div class="form-group">
+ <input type="text" id="input-last-name" class="form-control" name="last_name"
+ value="{{ current_user.last_name }}"
+ placeholder="{{ translate("LAST_NAME") }}" {{ page.visibility }}>
+ </div>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label for="input-locale" class="control-label">{{ translate("LOCALE") }}</label>
+ <select id="input-locale" class="form-control js-select2" name="locale" {{ page.visibility }}>
+ {% for option, label in locales %}
+ {% if label is not empty %}
+ <option value="{{ option }}"
+ {% if (option == current_user.locale) %}selected{% endif %}>{{ label }}</option>
+ {% endif %}
+ {% endfor %}
+ </select>
+ <p class="help-block">{{ translate("LOCALE.ACCOUNT") }}.</p>
+ </div>
+ {% endblock %}
+ </div>
+ <div class="box-footer text-center">
+ <button type="reset" class="btn btn-default">{{ translate('RESET') }}</button>
+ <button type="submit" class="btn btn-primary js-submit">{{ translate('SAVE') }}</button>
+ </div>
+</form>