]> git.0d.be Git - django-panik-nonstop.git/commitdiff
add other and n.a. values for track language
authorFrédéric Péters <fpeters@0d.be>
Thu, 16 Jul 2020 11:53:33 +0000 (13:53 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 16 Jul 2020 11:53:33 +0000 (13:53 +0200)
nonstop/models.py
nonstop/templates/nonstop/recent_tracks.html

index 2310a81c7b9d14b337fcdcf920e581c31447c882..731500b2dc4e0a87bd8e152d955edfe7e7c023eb 100644 (file)
@@ -51,7 +51,9 @@ class Album(models.Model):
 LANGUAGES = [
     ('en', _('English')),
     ('fr', _('French')),
-    ('nl', _('Dutch'))
+    ('nl', _('Dutch')),
+    ('other', _('Other')),
+    ('na', _('Not applicable')),
 ]
 
 class Track(models.Model):
index 87dec1497749afe2bfc417161a9baed229aa6bae..34ecfbf9a2e6f954064a91cb1a5cee04b32db0eb 100644 (file)
@@ -16,7 +16,7 @@
 <table id="edit-recent">
 <thead>
  <tr><th>{% trans "Title" %}</th><th>{% trans "Artist" %}</th>
-     <th class="en">EN</th><th class="fr">FR</th><th class="nl">NL</th>
+     <th class="en">EN</th><th class="fr">FR</th><th class="nl">NL</th><th class="other">Other</th><th class="na">n.a.</th>
      <th class="instru">Instru</th><th class="sabam">Sabam</th><th class="cfwb">CFWB</th></tr>
 </thead>
 <tbody>
@@ -26,6 +26,8 @@
  <td class="en"><input type="radio" name="lang-{{track.id}}" value="en" {% if track.language == "en" %}checked{% endif %}></td>
  <td class="fr"><input type="radio" name="lang-{{track.id}}" value="fr" {% if track.language == "fr" %}checked{% endif %}></td>
  <td class="nl"><input type="radio" name="lang-{{track.id}}" value="nl" {% if track.language == "nl" %}checked{% endif %}></td>
+ <td class="other"><input type="radio" name="lang-{{track.id}}" value="other" {% if track.language == "other" %}checked{% endif %}></td>
+ <td class="na"><input type="radio" name="lang-{{track.id}}" value="na" {% if track.language == "na" %}checked{% endif %}></td>
  <td class="instru"><input type="checkbox" name="instru-{{track.id}}" {% if track.instru %}checked{% endif %}></td>
  <td class="sabam"><input type="checkbox" name="sabam-{{track.id}}" {% if track.sabam %}checked{% endif %}></td>
  <td class="cfwb"><input type="checkbox" name="cfwb-{{track.id}}" {% if track.cfwb %}checked{% endif %}></td>