/
presentation_button_bar.html.twig
28 lines (27 loc) · 1.21 KB
/
presentation_button_bar.html.twig
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
{% extends "forms/field.html.twig" %}
{% block contents %}
<div class="button-bar" style="margin:0;padding:0;text-align:left;background:0;z-index:2;">
{%- if field.fields -%}
{%- for child in field.fields -%}
{%- if child.name != 'save' -%}
{%-
include [
"forms/fields/#{child.type}/#{child.type}.html.twig",
'forms/fields/text/text.html.twig'
] with { field: child, value: null }
-%}
{%- else -%}
<div style="float:right;padding-right:1.5rem;display:flex;align-items:center;justify-content:center;">
<div id="last-saved" style="display:none;margin-right:1em;">
<span>{{ child.prefix|t|e('html_attr') }}</span>
<span id="last-saved-value"></span>
</div>
<div class="button-group">
<button id="presentation-save" class="button"><i class="fa fa-bolt"></i> {{ child.label|t|e('html_attr') }}</button>
</div>
</div>
{%- endif -%}
{%- endfor -%}
{%- endif -%}
</div>
{% endblock %}