|
6 | 6 | {% block title %}{{ "edit.node.%name%.realms"|trans({'%name%': currentTitle})|truncate_title }} | {{ parent() }}{% endblock %} |
7 | 7 |
|
8 | 8 | {% block content %} |
9 | | - <section class="content-global"> |
10 | | - {% include '@RoadizRozier/nodes/head.html.twig' with { |
| 9 | + {% include '@RoadizRozier/nodes/head.html.twig' with { |
| 10 | + node: node, |
| 11 | + title: "edit.node.%name%.realms"|trans({'%name%': currentTitle})|truncate_title, |
| 12 | + current: 'realm', |
| 13 | + with_info_badge: true, |
| 14 | + with_status_badge: true, |
| 15 | + with_nav_bar: true, |
| 16 | + } only %} |
| 17 | + |
| 18 | + <section class="rz-page__body"> |
| 19 | + {% include '@RoadizRozier/nodes/realms_table.html.twig' with { |
| 20 | + nodeRealms: nodeRealms, |
11 | 21 | node: node, |
12 | | - title: "edit.node.%name%.realms"|trans({'%name%': currentTitle})|truncate_title, |
13 | | - current: 'realm', |
14 | | - with_info_badge: true, |
15 | | - with_status_badge: true, |
16 | | - with_nav_bar: true, |
17 | | - } only %} |
18 | | - |
19 | | - <article> |
20 | | - {% include '@RoadizRozier/nodes/realms_table.html.twig' with { |
21 | | - nodeRealms: nodeRealms, |
22 | | - node: node, |
23 | | - actions_available: true, |
24 | | - } %} |
25 | | - <hr> |
26 | | - |
27 | | - {% if form %} |
28 | | - <div> |
29 | | - <h3 class="text-h1-sm">{% trans %}join.a.realm{% endtrans %}</h3> |
30 | | - {% form_theme form '@RoadizRozier/forms.html.twig' %} |
31 | | - {{ form_start(form) }} |
32 | | - {{ form_widget(form) }} |
33 | | - <div class="rz-form-field rz-form-field--align-start"> |
34 | | - <button class="rz-button rz-button--primary" type="submit"> |
35 | | - <span class="rz-button__label">{% trans %}join.realm{% endtrans %}</span> |
36 | | - <span class="rz-button__icon rz-icon-ri--add-line"></span> |
37 | | - </button> |
38 | | - </div> |
39 | | - {{ form_end(form) }} |
| 22 | + actions_available: true, |
| 23 | + } %} |
| 24 | + <hr> |
| 25 | + |
| 26 | + {% if form %} |
| 27 | + <div> |
| 28 | + <h3 class="text-h1-sm">{% trans %}join.a.realm{% endtrans %}</h3> |
| 29 | + {% form_theme form '@RoadizRozier/forms.html.twig' %} |
| 30 | + {{ form_start(form) }} |
| 31 | + {{ form_widget(form) }} |
| 32 | + <div class="rz-form-field rz-form-field--align-start"> |
| 33 | + <button class="rz-button rz-button--primary" type="submit"> |
| 34 | + <span class="rz-button__label">{% trans %}join.realm{% endtrans %}</span> |
| 35 | + <span class="rz-button__icon rz-icon-ri--add-line"></span> |
| 36 | + </button> |
40 | 37 | </div> |
41 | | - {% endif %} |
| 38 | + {{ form_end(form) }} |
| 39 | + </div> |
| 40 | + {% endif %} |
42 | 41 |
|
43 | | - </div> |
44 | | - </article> |
| 42 | + </div> |
| 43 | + </section > |
45 | 44 |
|
46 | | - {% include '@RoadizRozier/nodes/actionsMenu.html.twig' %} |
47 | | - </section> |
| 45 | + {% include '@RoadizRozier/nodes/actionsMenu.html.twig' %} |
48 | 46 | {% endblock %} |
0 commit comments