<form class="form-" id="modif_action" name="modif_action" method="post" action="./empr.php?tab=request&amp;lvl=list_dmde&amp;sub=save_action">
	<input type="hidden" id="act" name="act">
	<input type="hidden" id="idaction" name="idaction" value="{{ action.id_action }}">
	<input type="hidden" id="iddemande" name="iddemande" value="{{ action.num_demande }}">
	<input type="hidden" id="idstatut" name="idstatut" value="{{ action.statut.id }}">

	<input type="hidden" id="time_elapsed" name="time_elapsed" value="{{ action.time_elapsed }}">
	<input type="hidden" id="progression" name="progression" value="{{ action.progression_action }}">
	<input type="hidden" id="cout" name="cout" value="{{ action.cout }}">
	<input type="hidden" id="ck_prive" name="ck_prive" value="{% if action.prive_action %}checked{% endif %}">
    <div class="form-contenu">
        <div class="row">
            <div class="colonne3">
                <label class="etiquette" for="idtype">{{ msg.demandes_action_type }}</label>
            </div>
            <div class="colonne-suite">
                <select name="idtype" required>
                    {% for type in demande.allowed_actions %}
                        {% if type.active %}
                            <option value="{{ type.id }}" {% if type.id == action.type_action %}selected{% endif %}>{{ type.comment }}</option>
                        {% endif %}
                    {% endfor %}
                </select>
            </div>
        </div>
        <div class="row">
            <div class="colonne3">
                <label class="etiquette" for="idstatut">{{ msg.demandes_action_statut }}</label>
            </div>
            <div class="colonne-suite">
                <select name="idstatut" disabled>
                    {% for statut in action.list_statut %}
                        <option value="{{ statut.id }}" {% if statut.id == action.statut_action %}selected{% endif %}>{{ statut.comment }}</option>
                    {% endfor %}
                </select>
            </div>
        </div>
        <div class="row">
            <div class="colonne3">
                <label class="etiquette" for="sujet">{{ msg.demandes_action_sujet }}</label>
            </div>
            <div class="colonne-suite">
                <input type='text' class='saisie-50em' name='sujet' id='sujet' value='{{ action.sujet_action }}' required />
            </div>
        </div>
        <div class="row">
            <div class="colonne3">
                <label class="etiquette" for="detail">{{ msg.demandes_action_detail }}</label>
            </div>
            <div class="colonne-suite">
                <textarea id="detail" name="detail" cols="50" rows="4" wrap="virtual">{{ action.detail_action }}</textarea>
            </div>
        </div>
        <div class="row">
            <div class="colonne3">
                <label class="etiquette" for="date_debut">{{ msg.demandes_action_date }}</label>
            </div>
            <div class="colonne-suite">
                <input type="date" name="date_debut" id="date_debut" value="{{ action.date_action }}" required />
            </div>
        </div>
        <div class="row">
            <div class="colonne3">
                <label class="etiquette" for="date_fin">{{ msg.demandes_action_date_butoir }}</label>
            </div>
            <div class="colonne-suite">
                <input type="date" name="date_fin" id="date_fin" value="{{ action.deadline_action }}" required />
            </div>
        </div>

        <div class="row">
            <div class="left">
                <a href="./empr.php?tab=request&amp;lvl=list_dmde&amp;sub=open_demande&amp;iddemande={{ action.num_demande }}#fin">{{ msg.76 }}</a>
                <input type="submit" class="bouton" value="{{ msg.77 }}" onclick="this.form.act.value=&quot;save_action&quot; ; return test_form(this.form);" />
            </div>
        </div>
    </div>
</form>