mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
add feature: update the date of an opened file
This commit is contained in:
@@ -30,7 +30,13 @@
|
||||
|
||||
{% endspaceless %}</td>
|
||||
<td>
|
||||
<div class="small warning btn icon-right entypo icon-pencil"><a href="{{ path('chill_person_history_update', {'id' : person.id, 'historyId' : history.id } ) }}">{{ 'views.Person.hlist.edit'|trans }}</a></div>
|
||||
<div class="small warning btn icon-right entypo icon-pencil">
|
||||
{% if history.isOpen %}
|
||||
<a href="{{ path('chill_person_history_open', {'id' : person.id, 'historyId' : history.id } ) }}">{{ 'views.Person.hlist.edit'|trans }}</a>
|
||||
{% else %}
|
||||
<a href="{{ path('chill_person_history_update', {'id' : person.id, 'historyId' : history.id } ) }}">{{ 'views.Person.hlist.edit'|trans }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
29
Resources/views/History/update.html.twig
Normal file
29
Resources/views/History/update.html.twig
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends "CLChillPersonBundle::layout.html.twig" %}
|
||||
|
||||
{% set activeRouteKey = null %}
|
||||
|
||||
{% block title %}{% endblock title %}
|
||||
|
||||
{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %}
|
||||
|
||||
{% block personcontent %}
|
||||
|
||||
{{ form_start(form) }}
|
||||
|
||||
{{ form_row(form.date_opening, { 'label' : 'views.Person.hupdate.dateOpening' }) }}
|
||||
|
||||
{{ form_row(form.date_closing, { 'label' : 'views.Person.hupdate.dateClosing' }) }}
|
||||
|
||||
{{ form_row(form.motive, { 'label' : 'views.Person.hupdate.motive_of_closing' }) }}
|
||||
|
||||
{{ form_row(form.memo, { 'label' : 'views.Person.hupdate.texto' }) }}
|
||||
|
||||
{{form_rest(form) }}
|
||||
|
||||
<div class="medium btn danger icon-right entypo icon-lock">
|
||||
<button type="submit">{{ 'views.Person.hupdate.action'|trans }}</button>
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
|
||||
{% endblock personcontent %}
|
Reference in New Issue
Block a user