node-vue.mtpl 3.67 KB
Newer Older
1
2
{% spaceless %}

gijs's avatar
gijs committed
3
<header class="axis-row">
4
5
    <span class="icon icon--handle"></span>

alexandre's avatar
alexandre committed
6
    <section class="axis-row--background-wrapper <% if (condition) { %>conditional<% } %>">
7
        <% if (condition) { %>
8
9
10
11
12
13
14
        <span class="line__condition">
            <span class="label">
                <% if (imperative) { %>! <% } %><%- condition %>
            </span>
        </span>
        <% } else { %>
        <span class="line__condition line__condition--hidden"></span>
15
        <% } %>
16

17
        <% if (actant) { %>
18
19
20
        <span class="line__actant">
            <%- actant %>
        </span>
21
        <% } %>
22

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

26
            <% if (attachment) { %>
27
            &nbsp;
28
29
            <section class="attachment--view"></section>
            <% } %>
30

31
            <% if (hasIndications) { %>
32
33
            <span class="line__indications">
                <span class="label">
34
                    <% if (indications) { %>
alexandre's avatar
alexandre committed
35
36
                    <p><span class="indications-label"><%- t('Indications') %>: </span>
                    <%= indications.replace(/(?:\r\n|\r|\n)/g, '<br>') %></p>
37
                    <% } %>
alexandre's avatar
alexandre committed
38

39

40
                    <% if (commandement) { %>
alexandre's avatar
alexandre committed
41
42
                    <p><span class="indications-label"><%- t('Commandement') %>: </span>
                    <%- commandement %></p>
43
                    <% } %>
44

45
                    <% if (destination) { %>
alexandre's avatar
alexandre committed
46
47
                    <p><span class="indications-label"><%- t('Destination') %>: </span>
                    <%- destination %></p>
48
                    <% } %>
49

50
                    <% if (code) { %>
alexandre's avatar
alexandre committed
51
52
                    <p><span class="indications-label"><%- t('Code') %>: </span>
                    <%- code %></p>
53
54
                    <% } %>
                </span>
gijs's avatar
gijs committed
55
            </span>
56
            <% } %>
57

58
59
60
61
            <span class="axis-inline-title-form"></span>
        </section>
        
        <% if (adresse) { %>
62
        <span class="line__adresse">
63
            <%- adresse %>
64
        </span>
65
66
67
68
69
70
71
72
73
74
75
        <% } %>
        
        <% 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] %>
            <% } %>
76
        </span>
77
        <% } %>
78
79

        <% if (terme) { %>
80
        <span class="line__terme">
81
82
83
            <span class="label">
                <%- terme %>
            </span>
84
        </span>
gijs's avatar
gijs committed
85
        <% } %>
86
    </section>
87
88

    <span class="line__actions">
gijs's avatar
gijs committed
89
        <% if (isLink) { %>
90
        <button name="unlink"><%- t('rompre le lien') %></button>
gijs's avatar
gijs committed
91
        <% } else { %>
92
93
        <button name="edit" title="Modifier cet axe">⋯</button>
        <button name="add" title="Ajoute un sous-axe">+</button>
gijs's avatar
gijs committed
94
        <% } %>
95

gijs's avatar
gijs committed
96
        <button name="delete" title="Supprimer cet axe (et tous ses sous-axes)">x</button>
97
98
    </span>

99
    <form></form>
100
101

    <div class="sublines__metadata__wrapper">
102
103
        <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>
104
105
106
107
108
            <% if (sublineAlternative != "") { %>
            <span class="alternative"><%- sublineAlternative %></span>
            <% } %>
        </div>
    </div>
gijs's avatar
gijs committed
109
</header>
alexandre's avatar
alexandre committed
110

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