diff --git a/RIGS/templates/event_table.html b/RIGS/templates/event_table.html index e6485b2d..dac0c2af 100644 --- a/RIGS/templates/event_table.html +++ b/RIGS/templates/event_table.html @@ -1,5 +1,5 @@
- +
diff --git a/RIGS/templates/index.html b/RIGS/templates/index.html index 68ccdc10..c446e1ba 100644 --- a/RIGS/templates/index.html +++ b/RIGS/templates/index.html @@ -2,9 +2,9 @@ {% block title %}RIGS{% endblock %} {% block content %} -

Rig Information Gathering System

-

Welcome back {{ user.get_full_name }}, there are {{ rig_count }} rigs coming up.

+

Rig Information Gathering System

+

Welcome back {{ user.get_full_name }}, there are {{ rig_count }} rigs coming up.

diff --git a/RIGS/templates/organisation_list.html b/RIGS/templates/organisation_list.html index 9af25105..ca7290e7 100644 --- a/RIGS/templates/organisation_list.html +++ b/RIGS/templates/organisation_list.html @@ -4,10 +4,8 @@ {% block title %}Organisations{% endblock %} {% block content %} -
-
-

Organisations

-
-
- {% include 'partials/generic_list.html' with edit="organisation_update" detail="organisation_detail" create="organisation_create" union_account=True %} +
+

Organisations

+
+{% include 'partials/generic_list.html' with edit="organisation_update" detail="organisation_detail" create="organisation_create" union_account=True %} {% endblock %} diff --git a/RIGS/templates/person_detail.html b/RIGS/templates/person_detail.html index c7f757cd..6df87e34 100644 --- a/RIGS/templates/person_detail.html +++ b/RIGS/templates/person_detail.html @@ -18,52 +18,47 @@
{% endif %}
-
-
Person Details
+
+
Person Details
-
-
Name
+
+
Name
{{ object.name }}
-
Phone
+
Phone
{{ object.phone }}
-
Email
+
Email
{{ object.email }}
-
Address
+
Address
{{ object.address|linebreaksbr }}
-
Notes
-
{{ object.notes|linebreaksbr }}
+
Notes
+
{{ object.notes|linebreaksbr }}
-
-
+
Associated Organisations
-
-
- {% for organisation,count in object.organisations %} - {{ organisation.pk|stringformat:"05d" }} | {{ organisation.name }} {{count}} - {% endfor %} -
-
+
-
+
Associated Events
-
- {% with object.latest_events as events %} - {% include 'event_table.html' %} - {% endwith %} -
+ {% with object.latest_events as events %} + {% include 'event_table.html' %} + {% endwith %}
@@ -82,16 +77,16 @@ {% if request.is_ajax %} {% block footer %} -
-
- - {% include 'partials/last_edited.html' with target="person_history" %} +
+
+ + {% include 'partials/last_edited.html' with target="person_history" %}
+
{% endblock %} {% endif %} diff --git a/RIGS/templates/person_list.html b/RIGS/templates/person_list.html index 296dfb47..56667863 100644 --- a/RIGS/templates/person_list.html +++ b/RIGS/templates/person_list.html @@ -1,16 +1,10 @@ {% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %} -{% load widget_tweaks %} -{% load paginator from filters %} -{% load url_replace from filters %} -{% load orderby from filters %} {% block title %}People{% endblock %} {% block content %} -
-
-

People

-
-
- {% include 'partials/generic_list.html' with edit="person_update" detail="person_detail" create="person_create" %} +
+

People

+
+{% include 'partials/generic_list.html' with edit="person_update" detail="person_detail" create="person_create" %} {% endblock %} diff --git a/RIGS/templates/rigboard.html b/RIGS/templates/rigboard.html index c6d8c087..0515f866 100644 --- a/RIGS/templates/rigboard.html +++ b/RIGS/templates/rigboard.html @@ -3,14 +3,14 @@ {% block title %}Rigboard{% endblock %} {% block content %} -

Rigboard

- {% if perms.RIGS.add_event %} - New - {% endif %} -
- {% include 'event_table.html' %} -
-
- {% include 'event_table_mobile.html' %} -
+

Rigboard

+{% if perms.RIGS.add_event %} +New +{% endif %} +
+ {% include 'event_table.html' %} +
+
+ {% include 'event_table_mobile.html' %} +
{% endblock %} diff --git a/RIGS/templates/venue_list.html b/RIGS/templates/venue_list.html index 6554540c..088248ef 100644 --- a/RIGS/templates/venue_list.html +++ b/RIGS/templates/venue_list.html @@ -1,16 +1,10 @@ {% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %} -{% load widget_tweaks %} -{% load paginator from filters %} -{% load url_replace from filters %} -{% load orderby from filters %} {% block title %}Venues{% endblock %} {% block content %} -
-
-

Venues

-
-
- {% include 'partials/generic_list.html' with edit="venue_update" detail="venue_detail" create="venue_create" %} +
+

Venues

+
+{% include 'partials/generic_list.html' with edit="venue_update" detail="venue_detail" create="venue_create" %} {% endblock %} diff --git a/RIGS/urls.py b/RIGS/urls.py index 55d0cd79..d63b706c 100644 --- a/RIGS/urls.py +++ b/RIGS/urls.py @@ -106,7 +106,7 @@ urlpatterns = [ path('invoice//delete/', permission_required_with_403('RIGS.change_invoice')(finance.InvoiceDelete.as_view()), name='invoice_delete'), path('invoice/(/history/', permission_required_with_403('RIGS.view_invoice')(versioning.VersionHistory.as_view()), - name='invoice_history', kwargs={'model': models.Invoice}), + name='invoice_history', kwargs={'model': models.Invoice}), path('payment/create/', permission_required_with_403('RIGS.add_payment')(finance.PaymentCreate.as_view()), name='payment_create'), diff --git a/RIGS/views.py b/RIGS/views.py index e92fffa1..85700150 100644 --- a/RIGS/views.py +++ b/RIGS/views.py @@ -104,6 +104,7 @@ class PersonDetail(generic.DetailView): class PersonCreate(generic.CreateView): + template_name = 'person_form.html' model = models.Person fields = ['name', 'phone', 'email', 'address', 'notes'] @@ -121,6 +122,7 @@ class PersonCreate(generic.CreateView): class PersonUpdate(generic.UpdateView): + template_name = 'person_form.html' model = models.Person fields = ['name', 'phone', 'email', 'address', 'notes'] diff --git a/assets/templates/supplier_list.html b/assets/templates/supplier_list.html index e7826c4f..d0241761 100644 --- a/assets/templates/supplier_list.html +++ b/assets/templates/supplier_list.html @@ -4,11 +4,8 @@ {% load widget_tweaks %} {% block content %} - -
#
- - - - - - - {% if union_account %} {#TODO#} - - {% endif %} - - - - - {% for object in object_list %} - - - - - - - {% if union_account %} - - {% endif %} - - - {% empty %} +
+
+
#Name - EmailPhoneNotesUnion AccountQuick Links
{{ object.pk }}{{ object.name }}{{ object.email }}{% if object.phone %}{%endif%}{{ object.phone }}{% if object.phone %}{%endif%}{{ object.notes|yesno|capfirst }}{{ object.union_account|yesno|capfirst }} - - - - -
+ + + + + + + {% if union_account %} {#TODO#} + + {% endif %} + + + + + {% for object in object_list %} + + + + + + + {% if union_account %} + + {% endif %} + + + {% empty %} - {% endfor %} - -
#Name + EmailPhoneNotesUnion AccountQuick Links
{{ object.pk }}{{ object.name }}{{ object.email }}{% if object.phone %}{%endif%}{{ object.phone }}{% if object.phone %}{%endif%}{{ object.notes|yesno|capfirst }}{{ object.union_account|yesno|capfirst }} + +
Nothing found
+ {% endfor %} + + +
{% if is_paginated %} -
- {% paginator %} -
+
+ {% paginator %} +
{% endif %} diff --git a/templates/partials/last_edited.html b/templates/partials/last_edited.html deleted file mode 100644 index dadbc109..00000000 --- a/templates/partials/last_edited.html +++ /dev/null @@ -1,5 +0,0 @@ -
- - Last edited {{ object.last_edited_at|default:'never' }} by {{ object.last_edited_by.name|default:'System' }} - -
diff --git a/versioning/templates/partials/last_edited.html b/versioning/templates/partials/last_edited.html new file mode 100644 index 00000000..91d6e0b3 --- /dev/null +++ b/versioning/templates/partials/last_edited.html @@ -0,0 +1,5 @@ +
+ + Last edited {{ object.last_edited_at|default:'never' }} by {{ object.last_edited_by.name|default:'System' }} + +