mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
44 lines
1.8 KiB
Twig
44 lines
1.8 KiB
Twig
{% extends "prod/actions/Bridge/wrapper.html.twig" %}
|
|
{% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %}
|
|
|
|
{% block menu %}
|
|
<table style="width:100%;height:30px;">
|
|
<tr>
|
|
<td style="width:10px;">
|
|
</td>
|
|
<td>
|
|
{% trans %}Edition de 1 element{% endtrans %} :
|
|
</td>
|
|
<td style="text-align:right;">
|
|
<a class="back_link" style="cursor: pointer;">{{ 'boutton::annuler' | trans }}</a>
|
|
</td>
|
|
<td style="width:10px;">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{% endblock %}
|
|
|
|
{% block response %}
|
|
<form class="form_add_container bridge_form form-horizontal" action="{{ path('bridge_account_do_action', { 'account_id' : account.get_id(), 'action' : action, 'element_type' : element_type }) }}" method="post">
|
|
<div class="control-group">
|
|
<label class="control-label" for="modif_title">{{ 'Titre' | trans }}</label>
|
|
<div class="controls">
|
|
<input name="modif_title" type="text" value="{{element.get_title}}" />
|
|
{{ error_form.display_errors('title', constraint_errors) }}
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label" for="modif_description">{{ 'Description' | trans }}</label>
|
|
<div class="controls">
|
|
<textarea name="modif_description" rows="3" >{{element.get_description|default("")}}</textarea>
|
|
{{ error_form.display_errors('description', constraint_errors) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-actions">
|
|
<input type="hidden" name="elements_list[]" value="{{element.get_id}}" />
|
|
<button class="form_submitter btn btn-inverse">{{ 'boutton::valider' | trans }}</button>
|
|
<button class="back_link btn btn-inverse">{{ 'boutton::annuler' | trans }}</button>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|