mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
45 lines
1.2 KiB
Twig
45 lines
1.2 KiB
Twig
<h2>{{ 'Decision'|trans }}</h2>
|
|
|
|
{% if transition_form is not null %}
|
|
{{ form_start(transition_form) }}
|
|
|
|
{{ form_row(transition_form.transition) }}
|
|
|
|
{% if transition_form.freezeAfter is defined %}
|
|
{{ form_row(transition_form.freezeAfter) }}
|
|
{% endif %}
|
|
|
|
<div id="futureDestUsers">
|
|
{{ form_row(transition_form.future_dest_users) }}
|
|
</div>
|
|
|
|
<p>{{ form_label(transition_form.comment) }}</p>
|
|
|
|
{{ form_widget(transition_form.comment) }}
|
|
|
|
<ul class="record_actions">
|
|
<li>
|
|
<button type="submit" class="btn btn-save">{{ 'Save'|trans }}</button>
|
|
</li>
|
|
</ul>
|
|
|
|
{{ form_end(transition_form) }}
|
|
{% else %}
|
|
<div class="alert alert-chill-yellow">
|
|
|
|
{% if entity_workflow.currentStep.isFinal %}
|
|
<p>{{ 'workflow.This workflow is finalized'|trans }}</p>
|
|
{% else %}
|
|
<p>{{ 'workflow.You are not allowed to apply a transition on this workflow'|trans }}</p>
|
|
<p>{{ 'workflow.Only those users are allowed'|trans }}:</p>
|
|
|
|
<ul>
|
|
{% for u in entity_workflow.currentStep.destUser -%}
|
|
<li>{{ u|chill_entity_render_box }}</li>
|
|
{%- endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endif %}
|