w
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

node-vue.mtpl
text/html

Download raw (4.0 KB)

{% spaceless %}

<header class="axis-row">
    <!-- <span class="icon icon--handle"></span> -->

    <section class="axis-row--background-wrapper <% if (condition) { %>conditional<% } %>">
        <% if (condition) { %>
        <span class="line__condition">
            <span class="label">
                <% if (imperative) { %>! <% } %><%- condition %>
            </span>
        </span>
        <% } else { %>
        <span class="line__condition line__condition--hidden"></span>
        <% } %>

        <% if (actant) { %>
        <span class="line__actant">
            <%- actant %>
        </span>
        <% } %>

        <section class="line__body" <% if (aspect) { %> data-aspect="<%- aspect %>"<% } %>>
            <span class="line__title"><%- title %></span>

            <% if (attachment) { %>
            &nbsp;
            <section class="attachment--view"></section>
            <% } %>


            <% if (aspect == "duratif") { %>
            <span style="font-weight: lighter"> &rarr;</span>
            <% } else if (aspect == "itératif") { %>
            <span style="font-weight: lighter"> </span>
            <% } else if (aspect == "sémelfactif") { %>
            <span style="font-weight: lighter"> &darr;</span>
            <% } %>

            <% if (hasIndications) { %>
            <span class="line__indications">
                <span class="label">
                    <% if (indications) { %>
                    <p><span class="indications-label"><%- t('Indications') %>: </span>
                    <%= indications.replace(/(?:\r\n|\r|\n)/g, '<br>') %></p>
                    <% } %>


                    <% if (commandement) { %>
                    <p><span class="indications-label"><%- t('Commandement') %>: </span>
                    <%- commandement %></p>
                    <% } %>

                    <% if (destination) { %>
                    <p><span class="indications-label"><%- t('Destination') %>: </span>
                    <%- destination %></p>
                    <% } %>

                    <% if (code) { %>
                    <p><span class="indications-label"><%- t('Code') %>: </span>
                    <%- code %></p>
                    <% } %>
                </span>
            </span>
            <% } %>

            <span class="axis-inline-title-form"></span>
        </section>
        
        <% if (adresse) { %>
        <span class="line__adresse">
            <%- adresse %>
        </span>
        <% } %>
        
        <% if (boucle) { %>
        <span class="boucle option">
            <% if (boucle.type === rangeType.exact) { %>
                <%- boucle.value %>
            <% } else if (boucle.type === rangeType.minimal) { %>
                <%- boucle.value %>+
            <% } else if (boucle.type === rangeType.range) { %>
                <%- boucle.value[0] %>-<%- boucle.value[1] %>
            <% } %>
        </span>
        <% } %>

        <% if (terme) { %>
        <span class="line__terme">
            <span class="label">
                <%- terme %>
            </span>
        </span>
        <% } %>
    </section>

    <span class="line__actions">
        <% if (isLink) { %>
        <button name="unlink"><%- t('rompre le lien') %></button>
        <% } else { %>
        <button name="edit" title="Modifier cet axe">⋯</button>
        <button name="add" title="Ajoute un sous-axe">+</button>
        <% } %>

        <button name="delete" title="Supprimer cet axe (et tous ses sous-axes)">x</button>
    </span>

    <form></form>

    <div class="sublines__metadata__wrapper">
        <div class="sublines__metadata" data-show-tag="<%- showTag %>" data-tag="<%- sublineTag %>" <%= (sublineAlternative != "") ? 'data-alternative="' + sublineAlternative + '"' : '' %>>
            <span class="tag" data-tag="<%- sublineTag %>" data-show-tag="<%- showTag %>"></span>
            <% if (sublineAlternative != "") { %>
            <span class="alternative"><%- sublineAlternative %></span>
            <% } %>
        </div>
    </div>
</header>

<ol class="sublines"></ol>
{% endspaceless %}