diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py
index 6d2fbbd6..aee4f8d6 100644
--- a/PyRIGS/settings.py
+++ b/PyRIGS/settings.py
@@ -204,7 +204,6 @@ USE_TZ = True
DATETIME_INPUT_FORMATS = ('%Y-%m-%dT%H:%M', '%Y-%m-%dT%H:%M:%S')
# Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
@@ -216,7 +215,7 @@ TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
- os.path.join(BASE_DIR, 'templates'),
+ os.path.join(BASE_DIR, 'templates')
],
'APP_DIRS': True,
'OPTIONS': {
diff --git a/RIGS/templates/event_detail.html b/RIGS/templates/event_detail.html
index 234c46e0..c3a6ddbf 100644
--- a/RIGS/templates/event_detail.html
+++ b/RIGS/templates/event_detail.html
@@ -228,7 +228,7 @@
{{ event.notes|linebreaksbr }}
-
+
{% endif %}
@@ -244,34 +244,17 @@
{% endif %}
{% if not request.is_ajax and perms.RIGS.view_event %}
-
+ {% include 'partials/last_edited.html' with target="event_history" %}
{% endif %}
{% endblock %}
{% if request.is_ajax %}
- {% block barter %}
-
+ {% block footer %}
{% if perms.RIGS.view_event %}
-
-
- {% else %}
-
+ {% include 'partials/last_edited.html' with target="event_history" %}
{% endif %}
-
-
-
+
Open Event Page
{% endblock %}
{% endif %}
diff --git a/RIGS/templates/event_table.html b/RIGS/templates/event_table.html
index 29bbe295..1c390ebf 100644
--- a/RIGS/templates/event_table.html
+++ b/RIGS/templates/event_table.html
@@ -6,8 +6,6 @@
Event Date |
Event Timings |
Event Details |
-
Status |
-
Authorisation |
MIC |
@@ -15,7 +13,7 @@
{% for event in events %}
@@ -65,7 +63,7 @@
{% if event.dry_hire %}
Dry Hire
{% endif %}
-
+
{% if event.is_rig and not event.cancelled %}
@@ -80,15 +78,12 @@
{{ event.description|linebreaksbr }}
{% endif %}
-
-
- |
- {{ event.get_status_display }}
- |
-
-
+ {{ event.get_status_display }}
{% if event.is_rig and perms.RIGS.view_event and event.authorised %}
-
+ Authorised
+ {% endif %}
+ {% if event.is_rig and perms.RIGS.view_event and event.risk_assessment_edit_url %}
+ RA
{% endif %}
|
@@ -112,4 +107,4 @@
{% endfor %}
-
\ No newline at end of file
+
diff --git a/RIGS/templates/index.html b/RIGS/templates/index.html
index 83f613a7..032ec96e 100644
--- a/RIGS/templates/index.html
+++ b/RIGS/templates/index.html
@@ -11,8 +11,7 @@
{% block content %}
Rig Information Gathering System
-Welcome back {{ user.get_full_name }}, there are {{ rig_count }} rigs coming up.
-
+Welcome back {{ user.get_full_name }}, there are {{ rig_count }} rigs coming up.
diff --git a/RIGS/templates/organisation_detail.html b/RIGS/templates/organisation_detail.html
index cc45b7b2..b31bf32f 100644
--- a/RIGS/templates/organisation_detail.html
+++ b/RIGS/templates/organisation_detail.html
@@ -39,7 +39,7 @@
Union Account
{{ object.union_account|yesno|capfirst }}
-
+
@@ -79,11 +79,7 @@
Edit
-
+ {% include 'partials/last_edited.html' with target="organisation_history" %}
{% endif %}
@@ -91,7 +87,7 @@
{% endblock %}
{% if request.is_ajax %}
- {% block barter %}
+ {% block footer %}
-
+ {% include 'partials/last_edited.html' with target="organisation_history" %}
{% endblock %}
-{% endif %}
\ No newline at end of file
+{% endif %}
diff --git a/RIGS/templates/partials/last_edited.html b/RIGS/templates/partials/last_edited.html
new file mode 100644
index 00000000..dadbc109
--- /dev/null
+++ b/RIGS/templates/partials/last_edited.html
@@ -0,0 +1,5 @@
+
diff --git a/RIGS/templates/person_detail.html b/RIGS/templates/person_detail.html
index d1f0f484..c7f757cd 100644
--- a/RIGS/templates/person_detail.html
+++ b/RIGS/templates/person_detail.html
@@ -4,7 +4,7 @@
{% block title %}Person | {{ object.name }}{% endblock %}
{% block content %}
-
+
{% if not request.is_ajax %}
Person | {{ object.name }}
@@ -12,12 +12,12 @@
{% endif %}
-
+
@@ -36,12 +36,12 @@
Notes
{{ object.notes|linebreaksbr }}
-
+
-
+
-
+
-
-
{% if not request.is_ajax %}
-
+ {% include 'partials/last_edited.html' with target="person_history" %}
{% endif %}
-
{% endblock %}
{% if request.is_ajax %}
- {% block barter %}
+ {% block footer %}
-
+ {% include 'partials/last_edited.html' with target="person_history" %}
{% endblock %}
-{% endif %}
\ No newline at end of file
+{% endif %}
diff --git a/RIGS/templates/person_list.html b/RIGS/templates/person_list.html
index 528ccb9f..6d500e31 100644
--- a/RIGS/templates/person_list.html
+++ b/RIGS/templates/person_list.html
@@ -13,7 +13,7 @@
People
{% empty %}
@@ -65,4 +65,4 @@
{% paginator %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/RIGS/templates/venue_detail.html b/RIGS/templates/venue_detail.html
index 0b13e649..81d0793a 100644
--- a/RIGS/templates/venue_detail.html
+++ b/RIGS/templates/venue_detail.html
@@ -39,7 +39,7 @@
Three Phase Available
{{ object.three_phase_available|yesno|capfirst }}
-
+
@@ -65,11 +65,7 @@
Edit
-
+ {% include 'partials/last_edited.html' with target="venue_history" %}
{% endif %}
@@ -78,7 +74,7 @@
{% if request.is_ajax %}
- {% block barter %}
+ {% block footer %}
-
+ {% include 'partials/last_edited.html' with target="venue_history" %}
{% endblock %}
-{% endif %}
\ No newline at end of file
+{% endif %}
diff --git a/RIGS/templates/version_history.html b/RIGS/templates/version_history.html
index bd8c16a3..f61df5d3 100644
--- a/RIGS/templates/version_history.html
+++ b/RIGS/templates/version_history.html
@@ -14,7 +14,7 @@
if($(this).attr('href')){
window.location.href = $(this).attr('href');
}
- });
+ });
})
{% endblock %}
@@ -25,8 +25,8 @@
- {% paginator %}
+ {% paginator %}
- {% paginator %}
+ {% paginator %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/RIGS/views.py b/RIGS/views.py
index 7d0e1a87..0c7c487e 100644
--- a/RIGS/views.py
+++ b/RIGS/views.py
@@ -73,6 +73,7 @@ class CloseModal(generic.TemplateView):
class PersonList(generic.ListView):
+ template_name = 'person_list.html'
model = models.Person
paginate_by = 20
@@ -98,6 +99,7 @@ class PersonList(generic.ListView):
class PersonDetail(generic.DetailView):
+ template_name = 'person_detail.html'
model = models.Person
@@ -136,6 +138,7 @@ class PersonUpdate(generic.UpdateView):
class OrganisationList(generic.ListView):
+ template_name='organisation_list.html'
model = models.Organisation
paginate_by = 20
diff --git a/gulpfile.js b/gulpfile.js
index c2115c1f..e81220b0 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -56,7 +56,7 @@ function browserSyncReload(done) {
function watchFiles() {
gulp.watch("RIGS/static/scss/**/*", sass);
gulp.watch("RIGS/static/js/**/*", scripts);
- gulp.watch(['templates/**/*.html', 'RIGS/templates/**/*.html', 'assets/templates/**/*.html'], browserSyncReload);
+ gulp.watch(['templates/**/*.html', 'RIGS/templates/**/*.html', 'assets/templates/**/*.html', /*TODO'RIGS/.py'*/], browserSyncReload);
}
exports.watch = gulp.parallel(watchFiles, browserSync);
diff --git a/templates/base.html b/templates/base.html
index 02437f25..78c8df6f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -62,7 +62,7 @@
-
+
{% block content-header %}
{% if error %}
{{ error }}
{% endif %}
diff --git a/templates/base_ajax.html b/templates/base_ajax.html
index 79b934d3..ff6abfd8 100644
--- a/templates/base_ajax.html
+++ b/templates/base_ajax.html
@@ -1,8 +1,10 @@
{% block content %}{% endblock %}
diff --git a/templates/base_rigs.html b/templates/base_rigs.html
index 98a152f1..94a57ace 100644
--- a/templates/base_rigs.html
+++ b/templates/base_rigs.html
@@ -37,7 +37,7 @@
{% if perms.RIGS.add_invoice %}
Waiting
{% endif %}
-
Outstanding
+
Outstanding
Archive