mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-28 21:16:13 +00:00
UX [admin][templates] fix styles on permissionsgroup pages for standard acl model (not vendee)
This commit is contained in:
parent
88ccbd450a
commit
2fe77f2610
@ -12,7 +12,7 @@
|
|||||||
{% if edit_form.flags is defined %}
|
{% if edit_form.flags is defined %}
|
||||||
{{ form_row(edit_form.flags) }}
|
{{ form_row(edit_form.flags) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ form_row(edit_form.submit, { 'attr': { 'class': 'btn btn-chill-green' } } ) }}
|
{{ form_row(edit_form.submit, { 'attr': { 'class': 'btn btn-save float-end' } } ) }}
|
||||||
{{ form_end(edit_form) }}
|
{{ form_end(edit_form) }}
|
||||||
|
|
||||||
<h2>{{ 'Grant those permissions'|trans }} :</h2>
|
<h2>{{ 'Grant those permissions'|trans }} :</h2>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<h3>{{ title|default("Unclassified")|trans }}</h3>
|
<h3>{{ title|default("Unclassified")|trans }}</h3>
|
||||||
|
|
||||||
<table class="striped rounded">
|
<table class="table table-bordered border-dark">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ 'Role'|trans }}</th>
|
<th>{{ 'Role'|trans }}</th>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
<small>{{ 'Which implies'|trans }} : {% for role in expanded_roles[role_scope.role] %}{{ role|trans }}{% if not loop.last %}, {% endif %}{% endfor %}</small>
|
<small>{{ 'Which implies'|trans }} : {% for role in expanded_roles[role_scope.role] %}{{ role|trans }}{% if not loop.last %}, {% endif %}{% endfor %}</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td style="width: 7em">
|
||||||
{%- if role_scope.scope is not null -%}
|
{%- if role_scope.scope is not null -%}
|
||||||
<span class="role_scope scope">
|
<span class="role_scope scope">
|
||||||
{{ role_scope.scope.name|localize_translatable_string }}
|
{{ role_scope.scope.name|localize_translatable_string }}
|
||||||
@ -50,9 +50,9 @@
|
|||||||
<em>N/A</em>
|
<em>N/A</em>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td style="width: 7em">
|
||||||
{{ form_start(delete_role_scopes_form[role_scope.id]) }}
|
{{ form_start(delete_role_scopes_form[role_scope.id]) }}
|
||||||
{{ form_widget(delete_role_scopes_form[role_scope.id].submit, { 'attr': { 'class': 'btn btn-chill-red' } } ) }}
|
{{ form_widget(delete_role_scopes_form[role_scope.id].submit, { 'attr': { 'class': 'btn btn-remove' } } ) }}
|
||||||
{{ form_end(delete_role_scopes_form[role_scope.id]) }}
|
{{ form_end(delete_role_scopes_form[role_scope.id]) }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -66,30 +66,25 @@
|
|||||||
<p>{{ 'This group does not provide any permission'|trans }}</p>
|
<p>{{ 'This group does not provide any permission'|trans }}</p>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
<div class="mt-5">
|
|
||||||
<h2>{{ 'Grant new permissions'|trans }}</h2>
|
|
||||||
|
|
||||||
{{ form_start(add_role_scopes_form) }}
|
<h2 class="mt-5">{{ 'Grant new permissions'|trans }}</h2>
|
||||||
{{ form_errors(add_role_scopes_form) }}
|
|
||||||
{{ form_row(add_role_scopes_form.composed_role_scope.role) }}
|
|
||||||
{{ form_row(add_role_scopes_form.composed_role_scope.scope) }}
|
|
||||||
|
|
||||||
<ul class="record_actions sticky-form-buttons">
|
{{ form_start(add_role_scopes_form) }}
|
||||||
<li>
|
{{ form_errors(add_role_scopes_form) }}
|
||||||
{{ form_row(add_role_scopes_form.submit, { 'attr' : { 'class': 'btn btn-create' } } ) }}
|
{{ form_row(add_role_scopes_form.composed_role_scope.role) }}
|
||||||
</li>
|
{{ form_row(add_role_scopes_form.composed_role_scope.scope) }}
|
||||||
<li>
|
|
||||||
<a href="{{ path('admin_permissionsgroup_show', { 'id': entity.id }) }}" class="btn btn-cancel">{{ 'Cancel'|trans }}</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{{ path('admin_permissionsgroup') }}" class="btn btn-cancel">
|
|
||||||
{{ 'Back to the list'|trans }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
{{ form_end(add_role_scopes_form) }}
|
<ul class="record_actions sticky-form-buttons">
|
||||||
</div>
|
<li class="cancel">
|
||||||
|
<a href="{{ path('admin_permissionsgroup') }}" class="btn btn-cancel">
|
||||||
|
{{ 'Back to the list'|trans }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
{{ form_widget(add_role_scopes_form.submit, { 'attr' : { 'class': 'btn btn-create' } } ) }}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{{ form_end(add_role_scopes_form) }}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block admin_content -%}
|
{% block admin_content -%}
|
||||||
<h1>{{ 'Permissions group list'|trans }}</h1>
|
<h1>{{ 'Permissions group list'|trans }}</h1>
|
||||||
|
|
||||||
<table class="records_list">
|
<table class="records_list table table-bordered border-dark">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ 'Name'|trans }}</th>
|
<th>{{ 'Name'|trans }}</th>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
{% for title, role_scopes in role_scopes_sorted %}
|
{% for title, role_scopes in role_scopes_sorted %}
|
||||||
<h3>{{ title|default('Unclassified')|trans }}</h3>
|
<h3>{{ title|default('Unclassified')|trans }}</h3>
|
||||||
<table class="striped rounded">
|
<table class="table table-bordered border-dark">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ 'Role'|trans }}</th>
|
<th>{{ 'Role'|trans }}</th>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<small>{{ 'Which implies'|trans }} : {% for role in expanded_roles[role_scope.role] %}{{ role|trans }}{% if not loop.last %}, {% endif %}{% endfor %}</small>
|
<small>{{ 'Which implies'|trans }} : {% for role in expanded_roles[role_scope.role] %}{{ role|trans }}{% if not loop.last %}, {% endif %}{% endfor %}</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>{%- if role_scope.scope is not null -%}
|
<td style="width: 7em">{%- if role_scope.scope is not null -%}
|
||||||
{{ role_scope.scope.name|localize_translatable_string }}
|
{{ role_scope.scope.name|localize_translatable_string }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
<em>N/A</em>
|
<em>N/A</em>
|
||||||
@ -57,17 +57,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<ul class="record_actions sticky-form-buttons">
|
<ul class="record_actions sticky-form-buttons">
|
||||||
|
<li class="cancel">
|
||||||
|
<a href="{{ path('admin_permissionsgroup') }}" class="btn btn-cancel">
|
||||||
|
{{ 'Back to the list'|trans }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('admin_permissionsgroup_edit', { 'id': entity.id }) }}" class="btn btn-edit">
|
<a href="{{ path('admin_permissionsgroup_edit', { 'id': entity.id }) }}" class="btn btn-edit">
|
||||||
{{ 'Edit'|trans }}
|
{{ 'Edit'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="{{ path('admin_permissionsgroup') }}" class="btn btn-cancel">
|
|
||||||
{{ 'Back to the list'|trans }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user