]> git.0d.be Git - django-panik-nonstop.git/commitdiff
templates: remove inline styles from tracks metadata edit pages
authorFrédéric Péters <fpeters@0d.be>
Thu, 16 Jul 2020 12:35:52 +0000 (14:35 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 16 Jul 2020 12:35:52 +0000 (14:35 +0200)
nonstop/templates/nonstop/tracks_metadata.html

index 225fd00f1f5ea0f9120f8cc7f8a59459d622e7a3..75e3854638e0c49b8264db2bade63674bc3e5838 100644 (file)
@@ -13,7 +13,7 @@
 {% block content %}
 <form method="post">
 {% csrf_token %}
-<table id="edit-recent">
+<table id="edit-metadata">
 <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="other">Other</th><th class="na">n.a.</th>
   </div>
 </form>
 
-<style>
-table#edit-recent th,
-table#edit-recent td {
-  padding: 0 1ex;
-}
-</style>
-
 <script>
-$('table#edit-recent th').on('click', function() {
+$('table#edit-metadata th').on('click', function() {
   var propvalue = true;
   if ($(this)[0].className == 'sabam') propvalue = false;
   $('tbody').find('.' + $(this)[0].className + ' input').prop('checked', propvalue);