aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/templates/forms/settings-profile.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/account/templates/forms/settings-profile.html.twig')
-rwxr-xr-xmain/app/sprinkles/account/templates/forms/settings-profile.html.twig40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/app/sprinkles/account/templates/forms/settings-profile.html.twig b/main/app/sprinkles/account/templates/forms/settings-profile.html.twig
new file mode 100755
index 0000000..0b0a788
--- /dev/null
+++ b/main/app/sprinkles/account/templates/forms/settings-profile.html.twig
@@ -0,0 +1,40 @@
+<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>