-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathupdate.html.twig
More file actions
35 lines (30 loc) · 1.68 KB
/
update.html.twig
File metadata and controls
35 lines (30 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{% extends '@ibexadesign/section/base.html.twig' %}
{% form_theme form_section_update '@ibexadesign/ui/form_fields.html.twig' %}
{% trans_default_domain 'ibexa_section' %}
{% block header_admin %}
{% set section_edit_sidebar_right = knp_menu_get('ezplatform_admin_ui.menu.section_edit.sidebar_right', [], {'section': section}) %}
{% include '@ibexadesign/ui/edit_header.html.twig' with {
action_name: 'section.editing'|trans|desc('Editing'),
title: 'section.update.title'|trans({ '%identifier%': section.name })|desc('Editing Section \'%identifier%\''),
context_actions: knp_menu_render(section_edit_sidebar_right, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
} %}
{% endblock %}
{% block form %}
{{ form_start(form_section_update, {'attr': {'class': 'update-section'}}) }}
<section>
<div class="card ibexa-card ibexa-card--light">
<div class="card-body ibexa-card__body ibexa-form-block">
{{ form_row(form_section_update.name, {
row_attr: { class: 'ibexa-form-field' },
attr: { 'data-autogenerate-identifier-target-selector': '#' ~ form_section_update.identifier.vars.id }
}) }}
{{ form_row(form_section_update.identifier, {
row_attr: { class: 'ibexa-form-field' }
}) }}
</div>
</div>
</section>
{{ form_widget(form_section_update.update, {'attr': {'hidden': 'hidden'}}) }}
{{ form_widget(form_section_update.update_and_edit, { attr: { hidden: 'hidden' }}) }}
{{ form_end(form_section_update) }}
{% endblock %}