Provided the same treatment to the role and group forms
This commit is contained in:
26
templates/forms/role.html.twig
Normal file
26
templates/forms/role.html.twig
Normal 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>
|
||||
Reference in New Issue
Block a user