Browse Source

Show message on empty list of hardware

Jocelyn Delande 9 years ago
parent
commit
90917125ab

+ 5 - 0
coin/static/css/local.css

@@ -196,6 +196,11 @@ table.no-background tr {
 }
 }
 
 
 
 
+table tr.placeholder td {
+	text-align: center;
+	font-style: italic;
+}
+
 /* Footer */
 /* Footer */
 
 
 #footer {
 #footer {

+ 2 - 0
hardware_provisioning/templates/hardware_provisioning/list.html

@@ -28,6 +28,8 @@
             <td>{{ loan.item.mac_address|default:"n/a" }}</td>
             <td>{{ loan.item.mac_address|default:"n/a" }}</td>
             <td>{{ loan.item.serial|default:"n/a" }}</td>
             <td>{{ loan.item.serial|default:"n/a" }}</td>
         </tr>
         </tr>
+        {% empty %}
+        <tr class="placeholder"><td colspan="6">… rien du tout !</td></tr>
         {% endfor %}
         {% endfor %}
     </tbody>
     </tbody>
 </table>
 </table>