score-form.mtpl 2.44 KB
Newer Older
gijs's avatar
gijs committed
1 2
<!-- Title -->
<label>
Annie's avatar
Annie committed
3
  <span class="label-text"><%- t('Titre') %>:</span>
alexandre's avatar
alexandre committed
4
  <input type="text" name="title" value="<%- title %>" required>
gijs's avatar
gijs committed
5 6
</label>

gijs's avatar
gijs committed
7
<!-- description -->
8
<label>
Annie's avatar
Annie committed
9
  <span class="label-text"><%- t('Présentation') %>: </span>
10
  <textarea name="presentation"><%- presentation %></textarea>
11 12
</label>

gijs's avatar
gijs committed
13
<!-- Setting -->
14
<label>
Annie's avatar
Annie committed
15
  <span class="label-text"><%- t('Mise') %>:</span>
gijs's avatar
gijs committed
16
  <textarea name="stage_set"><%= stage_set %></textarea>
17 18 19 20
</label>

<!-- Performance author -->
<label>
21
  <span class="label-text"><%- t('Auteur de la performance') %>:</span>
22
  <input type="text" name="performance_author" value="<%- performance_author %>" <%- (score_type === 2) ? 'disabled' : '' %>>
23 24
</label>

gijs's avatar
gijs committed
25
<!-- Score author -->
gijs's avatar
gijs committed
26
<label>
Annie's avatar
Annie committed
27
  <span class="label-text"><%- t('Auteur de la partition') %>:</span>
28
  <input type="text" name="score_author" value="<%- score_author %>">
29 30
</label>

gijs's avatar
gijs committed
31
<!-- score_type = models.PositiveSmallIntegerField(default=1, choices=SCORE_TYPE_CHOICES) -->
gijs's avatar
gijs committed
32
<label>
Annie's avatar
Annie committed
33
  <span class="label-text"><%- t('Type') %>:</span>
gijs's avatar
gijs committed
34
  <select name="score_type">
Annie's avatar
Annie committed
35 36 37
      <option value="1" <%- (score_type === 1) ? 'selected' : '' %>><%- t('Transcription') %></option>
      <option value="2" <%- (score_type === 2) ? 'selected' : '' %>><%- t('Prescription') %></option>
      <option value="3" <%- (score_type === 3) ? 'selected' : '' %>><%- t('Traduction') %></option>
gijs's avatar
gijs committed
38
  </select>
39
  <!-- <input type="text" name="score_type" value="<%- score_type %>"> -->
gijs's avatar
gijs committed
40 41
</label>

gijs's avatar
gijs committed
42
<!-- effectif = models.CharField(blank=True, max_length=255) -->
Annie's avatar
Annie committed
43
<label data-name="effectif"><%- t('Effectif') %>:</label>
gijs's avatar
gijs committed
44

45
<!-- Duration -->
gijs's avatar
gijs committed
46
<label>
Annie's avatar
Annie committed
47
  <span class="label-text"><%- t('Durée') %>:</span>
48
  <input type="text" name="duration" value="<%- duration %>">
49
</label>
gijs's avatar
gijs committed
50

gijs's avatar
gijs committed
51
<!-- Tags -->
gijs's avatar
gijs committed
52
<label>
53
  <span class="label-text"><%- t('Tags') %> (<%- t('séparer par une virgule') %>): </span>
54
  <input type="text" name="tags" value="<%- tags %>">
gijs's avatar
gijs committed
55 56 57 58
</label>

<!-- Language -->
<label>
Annie's avatar
Annie committed
59
  <span class="label-text"><%- t('Langue') %>: </span>
60
  <input type="text" name="language" value="<%- (language) ? language : W.utils.getUserLanguage() %>">
61
</label>
gijs's avatar
gijs committed
62

63 64 65
<!-- Permissions -->
<label>
  <input type="checkbox" name="is_public" <% if (is_public) { %>checked<% } %>>
alexandre's avatar
alexandre committed
66
  <span class="label-text" style="display: inline"><%- t('Publiée?') %>: </span>
67 68
</label>

alexandre's avatar
alexandre committed
69
<span class="label-text"><%- t('Partager avec') %>: </span>
70 71
<div id="share_with"></div>

Annie's avatar
Annie committed
72
<button data-name="close"><%- t('Annuler') %></button>
73
<button data-name="submit">OK</button>