mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
set correct layout to accompanying period crud
This commit is contained in:
parent
4e00af3e48
commit
772499ce89
@ -200,7 +200,7 @@ class AccompanyingPeriod
|
||||
|
||||
if (! $this->isClosingAfterOpening()) {
|
||||
$context->addViolationAt('dateClosing',
|
||||
'validation.AccompanyingPeriod.constraint.dateOfClosing_before_dateOfOpening',
|
||||
'The date of closing is before the date of opening',
|
||||
array(), null);
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ Reset: 'Remise à zéro'
|
||||
'Person accompanying period - %name%': 'Historique du dossier - %name%'
|
||||
'Opening date': 'Date d''ouverture'
|
||||
'Closing date': 'Date de fermeture'
|
||||
'Still open': 'Toujours en cours'
|
||||
'Period opened': 'Période ouverte'
|
||||
'Close accompanying period': 'Clôre le dossier'
|
||||
'Open accompanying period': 'Ouvrir le dossier'
|
||||
'Create accompanying period': 'Nouvelle ouverture-fermeture à une autre date'
|
||||
@ -78,3 +78,7 @@ Accompanying period list: Périodes d'accompagnement
|
||||
CHILL_PERSON_SEE: Voir les personnes
|
||||
CHILL_PERSON_UPDATE: Modifier les personnes
|
||||
CHILL_PERSON_CREATE: Ajouter des personnes
|
||||
|
||||
#period
|
||||
Period closed!: Période clôturée!
|
||||
Pediod closing form is not valide: Le formulaire de fermeture n'est pas valide
|
||||
|
@ -10,3 +10,4 @@
|
||||
'Opening date can not be null': 'La date d''ouverure ne peut être nulle'
|
||||
'Closing date is not valid': 'La date de fermeture n''est pas valide'
|
||||
'Closing date can not be null': 'La date de fermeture ne peut être nulle'
|
||||
The date of closing is before the date of opening: La période de fermeture est après la période d'ouverture
|
||||
|
@ -24,8 +24,9 @@
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
||||
<div class="medium btn danger icon-right entypo icon-lock">
|
||||
<button type="submit">{{ 'Submit'|trans }}</button>
|
||||
<div class="">
|
||||
<button type="submit" class="sc-button bt-update">{{ 'Submit'|trans }}</button>
|
||||
<a href="{{ path('chill_person_accompanying_period_list', { 'person_id' : person.id } ) }}" class="sc-button bt-reset">{{ 'Back to the list'|trans }}</a>
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
|
@ -21,7 +21,7 @@
|
||||
<td>{{ accompanying_period.openingDate|localizeddate('long', 'none', app.request.locale) }}</td>
|
||||
<td>{% spaceless %}
|
||||
{% if accompanying_period.isOpen %}
|
||||
{{ 'Still open'|trans }}
|
||||
{{ 'Period opened'|trans }}
|
||||
{% else %}
|
||||
{{ accompanying_period.closingDate|localizeddate('long', 'none', app.request.locale) }}
|
||||
{% endif %}
|
||||
@ -31,7 +31,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="small warning btn icon-right entypo icon-pencil">
|
||||
<a href="{{ path('chill_person_accompanying_period_update', {'person_id' : person.id, 'period_id' : accompanying_period.id } ) }}">{{ 'Edit'|trans }}</a>
|
||||
<a href="{{ path('chill_person_accompanying_period_update', {'person_id' : person.id, 'period_id' : accompanying_period.id } ) }}" class="sc-button bt-update">{{ 'Edit'|trans }}</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@ -40,32 +40,21 @@
|
||||
</table>
|
||||
|
||||
<div class="form_control">
|
||||
<div class="btn small warning icon-right entypo icon-plus">
|
||||
<a href="{{ path ('chill_person_accompanying_period_create', {'person_id' : person.id } ) }}">
|
||||
<p>
|
||||
<a href="{{ path ('chill_person_accompanying_period_create', {'person_id' : person.id } ) }}" class="sc-button bt-create">
|
||||
{{ 'Create accompanying period'|trans }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="controls">
|
||||
<div class="btn medium danger icon-right entypo {% spaceless %}
|
||||
{% if person.isOpen == true %}
|
||||
icon-lock
|
||||
{% else %}
|
||||
icon-lock-open
|
||||
{% endif %}{% endspaceless %}">
|
||||
{% spaceless %}
|
||||
{% if person.isOpen == true %}
|
||||
<a href="{{ path('chill_person_accompanying_period_close', {'person_id' : person.id}) }}">
|
||||
{{'Close accompanying period'|trans }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ path('chill_person_accompanying_period_open', {'person_id' : person.id} ) }}">
|
||||
{{'Open accompanying period'|trans }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if person.isOpen == true %}
|
||||
<a href="{{ path('chill_person_accompanying_period_close', {'person_id' : person.id}) }}" class="sc-button bt-update">
|
||||
{{'Close accompanying period'|trans }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ path('chill_person_accompanying_period_open', {'person_id' : person.id} ) }}" class="sc-button bt-create">
|
||||
{{'Open accompanying period'|trans }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% endblock personcontent %}
|
Loading…
x
Reference in New Issue
Block a user