diff --git a/inventory/templates/inventory/area_detail.html b/inventory/templates/inventory/area_detail.html index bec4d11..3ee95f5 100644 --- a/inventory/templates/inventory/area_detail.html +++ b/inventory/templates/inventory/area_detail.html @@ -1,25 +1,37 @@ {% extends "base.html" %} +{% load static %} {% block title %}{{ area.container.display_name }} - {{ area.name }}{% endblock %} {% block content %} -

{{ area.container.display_name }} - {{ area.name }}

- - {% if area.area_related.exists %} +

{{ area.container.display_name }} - {{ area.name }} {{ area.description}}

+

Areas

- {% endif %} - - {% if area.box_related.exists %} + +

Create new area...

+

Boxes

- {% endif %} + +

Create new container...

{% endblock %} \ No newline at end of file diff --git a/inventory/templates/inventory/item_detail.html b/inventory/templates/inventory/item_detail.html index 4513e21..953776e 100644 --- a/inventory/templates/inventory/item_detail.html +++ b/inventory/templates/inventory/item_detail.html @@ -1,38 +1,103 @@ {% extends "base.html" %} +{% load static %} {% load formatstring %} {% block title %}{{ item.name }}{% endblock %} {% block content %} -

{{ item.name }}

-

{{ item.description }}

+

{{ item.name }}

+ + + + + + + - + + + {% endif %} - {% if item.distributor %} -
  • Distributor: {% if item.distributor.icon %}{% endif %}{{ item.distributor.name }}
  • - {% endif %} - {% if item.price %} -
  • Price: {{ item.price }} Euro
  • - {% endif %} - {% if item.last_ordered_on %} -
  • Last ordered: {{ item.last_ordered_on }}
  • - {% endif %} - {% if item.distributor_item_no %} -
  • Link: {% formatstring item.distributor.search_link item.distributor_item_no %}
  • - {% endif %} -
  • Created at: {{ item.created_at }}
  • -
  • Last change: {{ item.changed_at }}
  • - - {% if item.documentation.exists %} -

    Datasheets

    - - {% endif %} + {% if item.distributor %} + + + + + {% endif %} + + {% if item.form_factor %} + + + + + {% endif %} + + {% if item.price %} + + + + + {% endif %} + + {% if item.last_ordered_on %} + + + + + {% endif %} + + {% if item.distributor_item_no %} + + + + + {% endif %} + + + {% if item.created_at != item.changed_at %} + + {% endif %} + + {% if item.documentation.exists %} + + + + + {% endif %} + +
    Description{{ item.description }}
    Manufacturer + + {% if item.manufacturer.icon %}{% endif %} + {{ item.manufacturer.name }} + +
    Distributor + + {% if item.distributor.icon %}{% endif %} + {{ item.distributor.name }} + +
    Form factor + {% if item.form_factor.datasheet %} + + {% if item.form_factor.icon %}{% endif %} + {{ item.form_factor.name }} + + {% else %} + {% if item.form_factor.icon %}{% endif %} + {{ item.form_factor.name }} + {% endif %} + ({{ item.form_factor.description }}) +
    Price{{ item.price }} Euro
    Last ordered{{ item.last_ordered_on }}
    Link + {% formatstring item.distributor.search_link item.distributor_item_no %} +
    Created at{{ item.created_at }}
    Last change{{ item.changed_at }}
    Datasheets + +
    + + {% endblock %} \ No newline at end of file diff --git a/inventory/templates/inventory/workshop_detail.html b/inventory/templates/inventory/workshop_detail.html index f690353..cd63715 100644 --- a/inventory/templates/inventory/workshop_detail.html +++ b/inventory/templates/inventory/workshop_detail.html @@ -1,25 +1,39 @@ {% extends "base.html" %} +{% load static %} {% block title %}Workshop {{ workshop.name }}{% endblock %} {% block content %} -

    {{ workshop.name }}

    - - {% if workshop.area_related.exists %} +

    {{ workshop.name }} {{ workshop.description}}

    +

    Areas

    - {% endif %} - - {% if workshop.box_related.exists %} + +

    Create new area...

    +

    Boxes

    - {% endif %} + +

    Create new box...

    + {% endblock %} \ No newline at end of file diff --git a/inventory/templates/inventory/workshop_list.html b/inventory/templates/inventory/workshop_list.html index 5d682bd..85bfa0b 100644 --- a/inventory/templates/inventory/workshop_list.html +++ b/inventory/templates/inventory/workshop_list.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load static %} {% block title %}Workshops{% endblock %} @@ -6,7 +7,13 @@

    Workshops

    + +

    Create new workshop

    + {% endblock %} \ No newline at end of file