diff --git a/app/templates/admin/labels/index.html b/app/templates/admin/labels/index.html index f0d5380..c3c45a4 100644 --- a/app/templates/admin/labels/index.html +++ b/app/templates/admin/labels/index.html @@ -1,64 +1,55 @@ {% extends "base.html" %} +{% block title %}My Labels - Admin{% endblock %} -{% block title %}Parts Labels - Admin{% endblock %} +{% block extra_css %} + +{% endblock %} {% block content %} -
-
-

Parts Drawer Labels

-

{{ total_labels }} label{{ '' if total_labels == 1 else 's' }} defined

-
-
- - New Label - - - Categories - - - Settings - - - Back - -
-
+
+{% set section = 'labels' %} +{% set bar_sub = total_labels ~ ' label' ~ ('' if total_labels == 1 else 's') ~ ' defined' %} +{% set crumbs = [{'name': 'My Labels'}] + ([{'name': active_category.full_name}] if active_category else []) %} +{% include 'admin/labels/_nav.html' %} {% if not rebrickable_ready %} -
- - No Rebrickable API key yet, so part lookup is off. You can still add labels by hand and upload your own images. - Add a key — it's free. +
+
+ No API key + Part lookup and photos are off. You can still add labels by hand and upload your own + images, and the part catalogue works + without a key. Add a key — it's free. +
{% endif %} -
- -
-
-
- Categories - All +
+ +
+
+
+ My Categories + All
- @@ -66,29 +57,31 @@
-
-
-
+
+
+ {% if active_category %}{% endif %} -
- - -
-
- +
+ +
+ + + Add from catalogue +
{% if rebrickable_ready %} -
-
- -
- - +
+
Quick lookup on Rebrickable
+
+
+ +
@@ -96,107 +89,101 @@ {% endif %}
-
-
-
- - -
-
- Select all on page + + + - - {% if active_category %} - Print whole category - {% endif %} -
+ +
- -
- - +
+
+ - - - - - - + + + + + + + {% for label in labels %} - + + + - - + {% else %} - {% endfor %}
ImagePartCategoryDrawerImgPart no.NameCategoryDrawer
{% if label.get_image() %} - - {% else %} - + {% endif %} {{ label.part_numbers_text }} + {{ label.name }} + {% if label.dimensions %}{{ label.dimensions }}{% endif %} + {% if label.colour_name %}{{ label.colour_name }}{% endif %} + - {{ label.display_title }} - {% if label.part_numbers_text %} -
{{ label.part_numbers_text }}
- {% endif %} - {% if label.colour_name %} - {{ label.colour_name }} - {% endif %} -
{% if label.category %} -   + {{ label.category.full_name }} - {% else %} - Uncategorised - {% endif %} + {% else %}Uncategorised{% endif %} {{ label.location or '-' }}{{ label.location or '' }} - - - - - - + +
+
No labels here yet. - Add the first one. + Pick some from the catalogue + or add one by hand.
+ + {% if pagination.pages > 1 %} +
+ « Prev + Page {{ pagination.page }} of {{ pagination.pages }} + Next » +
+ {% endif %}
- {% if pagination.pages > 1 %} - + {% if active_category %} + {% endif %}
+
-
@@ -206,7 +193,7 @@ {% block extra_js %}