Stop using javascript for selection in list
authorMagnus Hagander <magnus@hagander.net>
Mon, 26 Feb 2018 16:09:54 +0000 (17:09 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 26 Feb 2018 16:09:54 +0000 (17:09 +0100)
As pointed out by Vik, that makes for too many issues (and downright
bugs...) when trying to copy/paste things. Instead, use an icon to view.

template/confreg/admin_registration_list.html

index 847b9432a6bbd261894839009a6a6502cab39221..66f5e58fb17be01b31279f6751c91ffba518e6fa 100644 (file)
@@ -3,12 +3,12 @@
 {%block title%}Conference registrations{%endblock%}
 {%block extrahead%}
 <style>
-tr.tblrow {
-   cursor: pointer;
-}
 tr.warning {
    font-style: italic;
 }
+a.nocolor {
+   color:black;
+}
 </style>
 {%endblock%}
 
@@ -23,8 +23,8 @@ tr.warning {
   <th><a href="?sort={%if sortkey == "date" %}-{%endif%}date">Confirmed</a></th>
  </tr>
 {%for r in regs%}
- <tr onclick="document.location.href='{{r.id}}/';" class="tblrow{%if not r.payconfirmedat%} warning{%endif%}">
-  <td>{{r.lastname}}</td>
+ <tr {%if not r.payconfirmedat%}class="warning"{%endif%}>
+  <td><a class="nocolor" href="{{r.id}}/"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a> {{r.lastname}}</td>
   <td>{{r.firstname}}</td>
   <td>{{r.company}}</td>
   <td>{{r.regtype.regtype}}</td>