score-vue.mtpl 4.61 KB
Newer Older
gijs's avatar
gijs committed
1 2
 <article>
    <header id="sidebar">
alexandre's avatar
alexandre committed
3
        <h1 id="title"><%- title %></h1>
4

alexandre's avatar
alexandre committed
5
        <div class="score-actions">
gijs's avatar
gijs committed
6
            <button class="save" data-label-progress="<%- t('Enregistrer…') %>" data-label="<%- t('Enregistrer') %>" <% if (!hasChanges) { %>disabled<% } %>><%- t('Enregistrer') %></button>
Annie's avatar
Annie committed
7 8
            <button class="duplicate"><%- t('Dupliquer') %></button>
            <button class="delete"><%- t('Supprimer') %></button>
9
            <!--<button data-name="export"><%- t('Export') %></button>-->
alexandre's avatar
alexandre committed
10
        </div>
11

gijs's avatar
gijs committed
12 13 14 15 16 17 18 19 20 21 22
    </header>

    <div id="main-area">
        <div id="expand-level-slider"></div>
        <div id="axis-wrapper">
            <ol></ol>
        </div>
    </div>
</article>

<aside class="panel__alt panel--score-meta <% if (!metaExpanded) { %>is-collapsed<% } %>">
alexandre's avatar
alexandre committed
23
    <span class="panel__toggle__alt js-toggle"><%- t('infos') %></span>
gijs's avatar
gijs committed
24
    <section class="content">
alexandre's avatar
alexandre committed
25
        <% if (canChangeScore) { %>
gijs's avatar
gijs committed
26
        <button class="edit score-edit"><%- t('Éditer') %></button>
alexandre's avatar
alexandre committed
27
        <% } %>
alexandre's avatar
alexandre committed
28
        <dl class="score-meta">
gijs's avatar
gijs committed
29
        <% if (presentation) { %>
alexandre's avatar
alexandre committed
30
            <dt class="score-meta__term"><%- t('Présentation') %></dt>
alexandre's avatar
alexandre committed
31 32 33
            <dd><%- presentation %></dd>
            <% } %>
            <% if (stage_set) { %>
alexandre's avatar
alexandre committed
34
            <dt class="score-meta__term"><%- t('Mise') %></dt>
alexandre's avatar
alexandre committed
35 36
            <dd><%= stage_set.replace(/\n/g, "<br />") %></dd>
            <% } %>
alexandre's avatar
alexandre committed
37
        </dl>
alexandre's avatar
alexandre committed
38

alexandre's avatar
alexandre committed
39
        <dl class="score-meta">
alexandre's avatar
alexandre committed
40 41
            <!-- Extended fields -->
            <% if (performance_author && (score_type === 1 || score_type === 3)) { %>
alexandre's avatar
alexandre committed
42 43
            <dt class="score-meta__term"><%- t('Auteur de la performance') %></dt>
            <dd><%- performance_author %></dd>
alexandre's avatar
alexandre committed
44
            <% } %>
alexandre's avatar
alexandre committed
45
            
alexandre's avatar
alexandre committed
46
            <% if (score_author) { %>
alexandre's avatar
alexandre committed
47 48
            <dt class="score-meta__term"><%- t('Auteur de la partition') %></dt>
            <dd><%- score_author %></dd>
49
            <% } %>
alexandre's avatar
alexandre committed
50

alexandre's avatar
alexandre committed
51
            <% if (score_type) { %>
alexandre's avatar
alexandre committed
52 53
            <dt class="score-meta__term"><%- t('Type de partition') %></dt>
            <dd>
alexandre's avatar
alexandre committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
                <% switch (score_type) {
                    case 1:
                %>
                        transcription
                <%
                        break;
                    case 2:
                %>
                        prescription
                <%
                        break;
                    case 3:
                %>
                        traduction
                <%
                        break;
                } %>
            </dd>
            <% } %>
alexandre's avatar
alexandre committed
73 74

            <% if (effectif && effectif !== "") { %>
alexandre's avatar
alexandre committed
75 76
            <dt class="score-meta__term"><%- t('Effectif') %></dt>
            <dd>
alexandre's avatar
alexandre committed
77
                <% if (effectif && effectif.type === rangeType.exact) { %>
Annie's avatar
Annie committed
78
                    <%- effectif.value %> <%- (effectif.value > 1) ? t('performeurs') : t('performeur') %>
alexandre's avatar
alexandre committed
79
                <% } else if (effectif && effectif.type === rangeType.minimal) { %>
Annie's avatar
Annie committed
80
                    <%- t('au moins') %> <%- effectif.value %> <%- t('performeurs') %>
alexandre's avatar
alexandre committed
81
                <% } else if (effectif && effectif.type === rangeType.range) { %>
alexandre's avatar
alexandre committed
82
                    <%- t('entre') %> <%- effectif.value[0] %> et <%- effectif.value[1] %> <%- t('performeurs') %>
alexandre's avatar
alexandre committed
83
                <% } else { %>
Annie's avatar
Annie committed
84
                    <%- t('indéterminé') %>
alexandre's avatar
alexandre committed
85 86
                <% } %>
            </dd>
alexandre's avatar
alexandre committed
87 88
            <% } %>

alexandre's avatar
alexandre committed
89
            <% if (duration) { %>
alexandre's avatar
alexandre committed
90 91
            <dt class="score-meta__term"><%- t('Durée') %></dt>
            <dd><%- duration %></dd>
alexandre's avatar
alexandre committed
92
            <% } %>
alexandre's avatar
alexandre committed
93

alexandre's avatar
alexandre committed
94
            <% if (tags && tags.length) { %>
alexandre's avatar
alexandre committed
95 96
            <dt class="score-meta__term score-meta__term--hidden"><%- t('Tags') %></dt>
            <dd>
alexandre's avatar
alexandre committed
97
                <ul>
alexandre's avatar
alexandre committed
98 99
                <% for (var i=0; i < tags.length; i++) { %>
                    <li class="score-meta__tag-item">#<%- tags[i] %></li>
alexandre's avatar
alexandre committed
100 101 102 103
                <% } %>
                </ul>
            </dd>
            <% } %>
alexandre's avatar
alexandre committed
104

alexandre's avatar
alexandre committed
105 106
            <!--
            <% if (genre) { %>
alexandre's avatar
alexandre committed
107 108
            <dt><%- t('Genre') %></dt>
            <dd><%- genre %></dd>
alexandre's avatar
alexandre committed
109
            <% } %> -->
alexandre's avatar
alexandre committed
110

alexandre's avatar
alexandre committed
111
            <% if (language) { %>
alexandre's avatar
alexandre committed
112 113
            <dt class="score-meta__term score-meta__term--hidden"><%- t('Langue') %></dt>
            <dd><%- language %></dd>
gijs's avatar
gijs committed
114
            <% } %>
alexandre's avatar
alexandre committed
115 116 117 118
            <dt class="score-meta__term score-meta__term--inline"><%- t('Publié le') %></dt>
            <dd><%- formatTimestamp(created_at) %></dd>
            <dt class="score-meta__term score-meta__term--inline"><%- t('Modifié le') %></dt>
            <dd><%- formatTimestamp(updated_at) %></dd>
gijs's avatar
gijs committed
119

alexandre's avatar
alexandre committed
120 121
            <!-- <dt class="score-meta-expand-toggle"></dt> -->
        </dl>
122

123
        <div id="permissions"></div>
gijs's avatar
gijs committed
124
    
alexandre's avatar
alexandre committed
125
        <form></form>
gijs's avatar
gijs committed
126
    </section>
alexandre's avatar
alexandre committed
127
</aside>