w
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

node-form.mtpl
text/plain

Download raw (3.9 KB)

<fieldset>
    <% if (parent) { %>
        <label>
            <span class="label-text js-help" data-href="#operateur"><%- t('Opérateur') %></span>
            <select name="tag">
                <% _.each(tagChoices, function(t) {%>
                    <option value="<%= t %>" <% if (tag===t) { %>selected<% } %>><%= t %></option>
                <% }); %>
            </select>
        </label>
    <% } %>
    <label><span class="label-text js-help" data-href="#nom-de-laxe"><%- t('Axe') %></span>
        <input type="text" name="title" value="<%- title %>">
    </label>

    <!-- condition -->
    <label class="inline"><span class="label-text js-help" data-href="#condition"><%- t('Condition') %></span>
        <input type="text" name="condition" value="<%- condition %>">
    </label>
    <label class="inline"><input type="checkbox" name="imperative" <% if (imperative) { %>checked<% } %>>
        <%- t('Impérative') %>
    </label>

    <!-- terme -->
    <label><span class="label-text js-help" data-href="#terme"><%- t('Terme') %></span>
        <input type="text" name="terme" value="<%- terme %>">
    </label>
</fieldset>
<fieldset>
    <!-- boucle [subview] -->
    <section data-name="boucle"></section>

    <!-- alternative [subview] -->
    <section data-name="alternative"></section>

    <!-- aspect -->
    <section class="fieldgroup">
        <label class="inline">
            <span class="label-text js-help" data-href="#aspect"><%- t('Aspect') %></span>
            <select name="aspect-value">
                <option value="" <% if (!aspect) { %>selected<% } %>><%- t('aucun') %></option>
                <% _.each(aspectChoices, function(a) {%>
                    <option value="<%= a %>" <% if (aspect==a) { %>selected<% } %>><%= a %></option>
                <% }); %>
            </select>
        </label>
    </section>

    <!-- contingent -->
    <label>
        <input type="checkbox" name="contingent" <% if (contingent) { %>checked<% } %>>
        <span class="js-help" data-href="#axe-contingent"><%- t('Axe contingent') %></span>
    </label>

    <!-- modulé -->
    <label>
        <input type="checkbox" name="module" <% if (module_) { %>checked<% } %>>
        <span class="js-help" data-href="#axe-module"><%- t('Axe modulé') %></span>
    </label>
</fieldset>
<fieldset>
    <!-- attachments -->
    <section data-name="attachment"></section>
</fieldset>
<fieldset>
    <!-- actant -->
    <label><span class="label-text js-help" data-href="#actant"><%- t('Actant') %></span>
        <input type="text" name="actant" value="<%- actant %>">
    </label>

    <!-- adresse -->
    <label><span class="label-text js-help" data-href="#adresse"><%- t('Adresse') %></span>
        <input type="text" name="adresse" value="<%- adresse %>">
    </label>
</fieldset> 

<fieldset name="extra-fields">
    <legend></legend>
    <section class="fields">
        <!-- Commandement -->
        <label><span class="label-text js-help" data-href="#commandement"><%- t('Commandement') %></span>
            <input type="text" name="commandement" value="<%- commandement %>">
        </label>
        <!-- Destination -->
        <label><span class="label-text js-help" data-href="#destination"><%- t('Destination') %></span>
            <input type="text" name="destination" value="<%- destination %>">
        </label>
        <!-- Code -->
        <label><span class="label-text js-help" data-href="#code"><%- t('Code') %></span>
            <input type="text" name="code" value="<%- code %>">
        </label>
        <!-- Indications -->
        <label><span class="label-text js-help" data-href="#indications"><%- t('Indications') %></span>
            <textarea name="indications"><%- indications %></textarea>
        </label>
    </section>
</fieldset>

<button data-name="close"><%- t('Annuler') %></button>
<button data-name="submit"><%- t('OK') %></button>
<button data-name="link"><%- t('créer un axe lié') %></button>