aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig')
-rw-r--r--main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig88
1 files changed, 45 insertions, 43 deletions
diff --git a/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig b/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig
index 3914d2e..f8b7ef5 100644
--- a/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig
+++ b/main/app/sprinkles/admin/templates/modals/role-manage-permissions.html.twig
@@ -1,52 +1,54 @@
{% extends "modals/modal.html.twig" %}
-{% block modal_title %}{{translate("PERMISSION.MANAGE")}}{% endblock %}
+{% block modal_title %}{{ translate("PERMISSION.MANAGE") }}{% endblock %}
{% block modal_size %}modal-lg{% endblock %}
{% block modal_body %}
-<form class="js-form" method="PUT" action="{{site.uri.public}}/api/roles/r/{{role.slug}}/permissions">
- {% include "forms/csrf.html.twig" %}
- <div class="js-form-alerts">
- </div>
- <div class="js-form-permissions">
- <table class="table table-striped">
- <thead>
- <tr>
- <th>{{translate("NAME")}}</th>
- <th>{{translate("DESCRIPTION")}}</th>
- <th>{{translate("PERMISSION.HOOK_CONDITION")}}</th>
- <th>{{translate("REMOVE")}}</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- <div class="padding-bottom">
- <label>{{translate("PERMISSION.ASSIGN_NEW")}}:</label>
- <select class="form-control js-select-new" type="text">
- <option></option>
- </select>
+ <form class="js-form" method="PUT" action="{{ site.uri.public }}/api/roles/r/{{ role.slug }}/permissions">
+ {% include "forms/csrf.html.twig" %}
+ <div class="js-form-alerts">
</div>
- </div>
- <br>
- <div class="row">
- <div class="col-xs-12 col-sm-6">
- <button type="submit" class="btn btn-block btn-lg btn-success">{{translate("PERMISSION.UPDATE")}}</button>
+ <div class="js-form-permissions">
+ <table class="table table-striped">
+ <thead>
+ <tr>
+ <th>{{ translate("NAME") }}</th>
+ <th>{{ translate("DESCRIPTION") }}</th>
+ <th>{{ translate("PERMISSION.HOOK_CONDITION") }}</th>
+ <th>{{ translate("REMOVE") }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+ <div class="padding-bottom">
+ <label>{{ translate("PERMISSION.ASSIGN_NEW") }}:</label>
+ <select class="form-control js-select-new" type="text">
+ <option></option>
+ </select>
+ </div>
</div>
- <div class="col-xs-12 col-sm-3 pull-right">
- <button type="button" class="btn btn-block btn-lg btn-link" data-dismiss="modal">{{translate('CANCEL')}}</button>
+ <br>
+ <div class="row">
+ <div class="col-xs-12 col-sm-6">
+ <button type="submit"
+ class="btn btn-block btn-lg btn-success">{{ translate("PERMISSION.UPDATE") }}</button>
+ </div>
+ <div class="col-xs-12 col-sm-3 pull-right">
+ <button type="button" class="btn btn-block btn-lg btn-link"
+ data-dismiss="modal">{{ translate('CANCEL') }}</button>
+ </div>
</div>
- </div>
-</form>
+ </form>
-{# This contains a series of <script> blocks, each of which is a client-side Handlebars template.
- # Note that these are NOT Twig templates, although the syntax is similar. We wrap them in the `verbatim` tag,
- # so that Twig will output them directly into the DOM instead of trying to treat them like Twig templates.
- #
- # These templates require handlebars-helpers.js, moment.js
-#}
-{% verbatim %}
+ {# This contains a series of <script> blocks, each of which is a client-side Handlebars template.
+ # Note that these are NOT Twig templates, although the syntax is similar. We wrap them in the `verbatim` tag,
+ # so that Twig will output them directly into the DOM instead of trying to treat them like Twig templates.
+ #
+ # These templates require handlebars-helpers.js, moment.js
+ #}
+ {% verbatim %}
<script id="role-permissions-select-option" type="text/x-handlebars-template">
<div>
<strong>
@@ -87,8 +89,8 @@
</script>
{% endverbatim %}
-<!-- Include validation rules -->
-<script>
- {% include "pages/partials/page.js.twig" %}
-</script>
+ <!-- Include validation rules -->
+ <script>
+ {% include "pages/partials/page.js.twig" %}
+ </script>
{% endblock %}