aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/admin/templates/modals/user-set-password.html.twig')
-rwxr-xr-xmain/app/sprinkles/admin/templates/modals/user-set-password.html.twig62
1 files changed, 62 insertions, 0 deletions
diff --git a/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig b/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig
new file mode 100755
index 0000000..922d4e2
--- /dev/null
+++ b/main/app/sprinkles/admin/templates/modals/user-set-password.html.twig
@@ -0,0 +1,62 @@
+{% extends "modals/modal.html.twig" %}
+
+{% block modal_title %}{{translate("USER.ADMIN.CHANGE_PASSWORD")}}{% endblock %}
+
+{% block modal_body %}
+<form class="js-form" method="PUT" action="{{site.uri.public}}/api/users/u/{{user.user_name}}">
+ {% 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">
+ <div class="js-form-alerts">
+ </div>
+ <div class="row">
+ <div class="col-sm-12">
+ <div class="radio">
+ <label for="change_password_mode_link">
+ <input type="radio" name="change_password_mode" id="change_password_mode_link" value="link" checked>
+ {{translate("USER.ADMIN.SEND_PASSWORD_LINK")}}
+ </label>
+ </div>
+ </div>
+ <div class="col-sm-12">
+ <div class="radio">
+ <label for="change_password_mode_manual">
+ <input type="radio" name="change_password_mode" id="change_password_mode_manual" value="manual">
+ {{translate("USER.ADMIN.SET_PASSWORD")}}:
+ </label>
+ </div>
+ <div class="row controls-password">
+ <div class="col-sm-11 col-sm-offset-1">
+ <div class="form-group">
+ <label>{{translate('PASSWORD')}}</label>
+ <div class="input-group">
+ <span class="input-group-addon"><i class="fa fa-key"></i></span>
+ <input type="password" class="form-control" name="value" autocomplete="off" value="" placeholder="{{translate("PASSWORD.BETWEEN", {min: 12, max: 50})}}">
+ </div>
+ </div>
+ <div class="form-group">
+ <label>{{translate('PASSWORD.CONFIRM')}}</label>
+ <div class="input-group">
+ <span class="input-group-addon"><i class="fa fa-key"></i></span>
+ <input type="password" class="form-control" name="passwordc" autocomplete="off" value="" placeholder="{{translate('PASSWORD.CONFIRM')}}">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div><br>
+ <div class="row">
+ <div class="col-xs-8 col-sm-4">
+ <button type="submit" class="btn btn-block btn-lg btn-success">{{translate('SUBMIT')}}</button>
+ </div>
+ <div class="col-xs-4 col-sm-3 pull-right">
+ <button type="button" class="btn btn-block btn-lg btn-link" data-dismiss="modal">{{translate('CANCEL')}}</button>
+ </div>
+ </div>
+</form>
+<!-- Include validation rules -->
+<script>
+ {% include "pages/partials/page.js.twig" %}
+</script>
+{% endblock %}