Provided the same treatment to the role and group forms

This commit is contained in:
2023-06-01 15:00:01 +01:00
parent bf9467b480
commit d5a823692b
19 changed files with 324 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
<form class="js-form" method="{{form.method | default('POST')}}" action="{{site.uri.public}}/{{form.action}}">
{% include "forms/csrf.html.twig" %}
<div class="js-form-alerts">
</div>
<div class="row">
{% block role_form %}
{% include "forms/partials/input-role-name.html.twig" with { 'col_width': 'col-sm-12' } %}
{% include "forms/partials/input-role-slug.html.twig" with { 'col_width': 'col-sm-12' } %}
{% include "forms/partials/input-role-description.html.twig" with { 'col_width': 'col-sm-12' } %}
{% endblock %}
</div><br>
<div class="row">
<div class="col-xs-8 col-sm-4">
<button type="submit" class="btn btn-block btn-lg btn-success">{{form.submit_text}}</button>
</div>
<div class="col-xs-4 col-sm-4 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>