diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py
index 6d2fbbd6..b4b0440d 100644
--- a/PyRIGS/settings.py
+++ b/PyRIGS/settings.py
@@ -51,6 +51,7 @@ if DEBUG:
# Application definition
INSTALLED_APPS = (
+ 'django_gulp',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
diff --git a/RIGS/finance.py b/RIGS/finance.py
index 061c81a8..38d8b883 100644
--- a/RIGS/finance.py
+++ b/RIGS/finance.py
@@ -21,7 +21,7 @@ forms.DateField.widget = forms.DateInput(attrs={'type': 'date'})
class InvoiceIndex(generic.ListView):
model = models.Invoice
- template_name = 'RIGS/invoice_list_active.html'
+ template_name = 'invoice_list_active.html'
def get_context_data(self, **kwargs):
context = super(InvoiceIndex, self).get_context_data(**kwargs)
@@ -57,7 +57,7 @@ class InvoicePrint(generic.View):
def get(self, request, pk):
invoice = get_object_or_404(models.Invoice, pk=pk)
object = invoice.event
- template = get_template('RIGS/event_print.xml')
+ template = get_template('event_print.xml')
context = {
'object': object,
@@ -120,7 +120,7 @@ class InvoiceDelete(generic.DeleteView):
class InvoiceArchive(generic.ListView):
model = models.Invoice
- template_name = 'RIGS/invoice_list_archive.html'
+ template_name = 'invoice_list_archive.html'
paginate_by = 25
def get_queryset(self):
@@ -155,7 +155,7 @@ class InvoiceArchive(generic.ListView):
class InvoiceWaiting(generic.ListView):
model = models.Event
paginate_by = 25
- template_name = 'RIGS/event_invoice.html'
+ template_name = 'event_invoice.html'
def get_context_data(self, **kwargs):
context = super(InvoiceWaiting, self).get_context_data(**kwargs)
diff --git a/RIGS/rigboard.py b/RIGS/rigboard.py
index 6aeff551..ab276223 100644
--- a/RIGS/rigboard.py
+++ b/RIGS/rigboard.py
@@ -228,7 +228,7 @@ class EventPrint(generic.View):
class EventArchive(generic.ListView):
model = models.Event
paginate_by = 25
- template_name = "RIGS/event_archive.html"
+ template_name = "event_archive.html"
def get_context_data(self, **kwargs):
# get super context
@@ -396,12 +396,12 @@ class EventAuthorisationRequest(generic.FormView, generic.detail.SingleObjectMix
msg = EmailMultiAlternatives(
"N%05d | %s - Event Authorisation Request" % (self.object.pk, self.object.name),
- get_template("RIGS/eventauthorisation_client_request.txt").render(context),
+ get_template("eventauthorisation_client_request.txt").render(context),
to=[email],
reply_to=[self.request.user.email],
)
css = staticfiles_storage.path('css/email.css')
- html = premailer.Premailer(get_template("RIGS/eventauthorisation_client_request.html").render(context),
+ html = premailer.Premailer(get_template("eventauthorisation_client_request.html").render(context),
external_styles=css).transform()
msg.attach_alternative(html, 'text/html')
@@ -411,7 +411,7 @@ class EventAuthorisationRequest(generic.FormView, generic.detail.SingleObjectMix
class EventAuthoriseRequestEmailPreview(generic.DetailView):
- template_name = "RIGS/eventauthorisation_client_request.html"
+ template_name = "eventauthorisation_client_request.html"
model = models.Event
def render_to_response(self, context, **response_kwargs):
diff --git a/RIGS/templates/RIGS/activity_feed.html b/RIGS/templates/activity_feed.html
similarity index 79%
rename from RIGS/templates/RIGS/activity_feed.html
rename to RIGS/templates/activity_feed.html
index 78d5f9b0..31658c5a 100644
--- a/RIGS/templates/RIGS/activity_feed.html
+++ b/RIGS/templates/activity_feed.html
@@ -48,19 +48,18 @@
{% endblock %}
-
-
-
Recent Changes
-
-
-
-
-
+
+
+
Recent Changes
+
+
+
+
diff --git a/RIGS/templates/RIGS/activity_feed_data.html b/RIGS/templates/activity_feed_data.html
similarity index 89%
rename from RIGS/templates/RIGS/activity_feed_data.html
rename to RIGS/templates/activity_feed_data.html
index cff6c323..f6f590e6 100644
--- a/RIGS/templates/RIGS/activity_feed_data.html
+++ b/RIGS/templates/activity_feed_data.html
@@ -5,7 +5,7 @@
{% load to_class_name from filters %}
{% block content %}
-
+
{% for version in object_list %}
@@ -36,10 +36,10 @@
{% if version.changes.old == None %}
Created
{% else %}
- Changed {% include 'RIGS/version_changes.html' %} in
+ Changed {% include 'version_changes.html' %} in
{% endif %}
-
- {% include 'RIGS/object_button.html' with object=version.changes.new %}
+
+ {% include 'object_button.html' with object=version.changes.new %}
{% if version.revision.comment %}
({{ version.revision.comment }})
{% endif %}
@@ -50,5 +50,5 @@
-
-{% endblock %}
\ No newline at end of file
+
+{% endblock %}
diff --git a/RIGS/templates/RIGS/activity_table.html b/RIGS/templates/activity_table.html
similarity index 97%
rename from RIGS/templates/RIGS/activity_table.html
rename to RIGS/templates/activity_table.html
index f9addd87..3873f9ba 100644
--- a/RIGS/templates/RIGS/activity_table.html
+++ b/RIGS/templates/activity_table.html
@@ -74,7 +74,7 @@
{% if version.changes.old == None %}
{{version.changes.new|to_class_name}} Created
{% else %}
- {% include 'RIGS/version_changes.html' %}
+ {% include 'version_changes.html' %}
{% endif %}
{{ version.changes.revision.comment }} |
diff --git a/RIGS/templates/RIGS/admin_associate_merge.html b/RIGS/templates/admin_associate_merge.html
similarity index 100%
rename from RIGS/templates/RIGS/admin_associate_merge.html
rename to RIGS/templates/admin_associate_merge.html
diff --git a/RIGS/templates/RIGS/admin_awaiting_approval.html b/RIGS/templates/admin_awaiting_approval.html
similarity index 100%
rename from RIGS/templates/RIGS/admin_awaiting_approval.html
rename to RIGS/templates/admin_awaiting_approval.html
diff --git a/RIGS/templates/RIGS/admin_awaiting_approval.txt b/RIGS/templates/admin_awaiting_approval.txt
similarity index 100%
rename from RIGS/templates/RIGS/admin_awaiting_approval.txt
rename to RIGS/templates/admin_awaiting_approval.txt
diff --git a/RIGS/templates/RIGS/calendar.html b/RIGS/templates/calendar.html
similarity index 100%
rename from RIGS/templates/RIGS/calendar.html
rename to RIGS/templates/calendar.html
diff --git a/RIGS/templates/RIGS/client_eventdetails.html b/RIGS/templates/client_eventdetails.html
similarity index 84%
rename from RIGS/templates/RIGS/client_eventdetails.html
rename to RIGS/templates/client_eventdetails.html
index 4f3810f8..e56bef3c 100644
--- a/RIGS/templates/RIGS/client_eventdetails.html
+++ b/RIGS/templates/client_eventdetails.html
@@ -1,8 +1,8 @@
-
-
Contact Details
-
+
{% if event.organisation %}
-
-
Organisation
-
+
+
Organisation
+
- Organisation
-
@@ -40,9 +40,9 @@
-
-
Event Info
-
+
+
Event Info
+
- Event Venue
-
diff --git a/RIGS/templates/RIGS/event_archive.html b/RIGS/templates/event_archive.html
similarity index 97%
rename from RIGS/templates/RIGS/event_archive.html
rename to RIGS/templates/event_archive.html
index 18459073..0efa1614 100644
--- a/RIGS/templates/RIGS/event_archive.html
+++ b/RIGS/templates/event_archive.html
@@ -45,7 +45,7 @@
{% with object_list as events %}
- {% include 'RIGS/event_table.html' %}
+ {% include 'event_table.html' %}
{% endwith %}
diff --git a/RIGS/templates/RIGS/event_detail.html b/RIGS/templates/event_detail.html
similarity index 90%
rename from RIGS/templates/RIGS/event_detail.html
rename to RIGS/templates/event_detail.html
index 10a947fe..cd5bf530 100644
--- a/RIGS/templates/RIGS/event_detail.html
+++ b/RIGS/templates/event_detail.html
@@ -12,7 +12,7 @@
{% if perms.RIGS.view_event %}
- {% include 'RIGS/event_detail_buttons.html' %}
+ {% include 'event_detail_buttons.html' %}
{% endif %}
@@ -20,9 +20,9 @@
{% if object.is_rig and perms.RIGS.view_event %}
{# only need contact details for a rig #}
-
-
Contact Details
-
+
{% if event.organisation %}
-
-
Organisation
-
+
+
Organisation
+
- Organisation
-
@@ -75,9 +75,9 @@
{% endif %}
-
-
Event Info
-
+
+
Event Info
+
- Event Venue
-
@@ -160,17 +160,17 @@
{% if event.is_rig and event.internal and perms.RIGS.view_event %}
-
event.auth_request_at %}
- panel-warning
+ card-warning
{% elif event.auth_request_to %}
- panel-info
+ card-info
{% endif %}
">
-
Client Authorisation
-
+
Client Authorisation
+
- Authorisation Request
- {{ object.auth_request_to|yesno:"Yes,No" }}
@@ -216,27 +216,27 @@
{% endif %}
{% if not request.is_ajax and perms.RIGS.view_event %}
- {% include 'RIGS/event_detail_buttons.html' %}
+ {% include 'event_detail_buttons.html' %}
{% endif %}
{% if event.is_rig %}
-
-
Event Details
-
+
+
Event Details
+
{% if perms.RIGS.view_event %}
Notes
{{ event.notes|linebreaksbr }}
{% endif %}
- {% include 'RIGS/item_table.html' %}
+ {% include 'item_table.html' %}
{% if not request.is_ajax and perms.RIGS.view_event %}
- {% include 'RIGS/event_detail_buttons.html' %}
+ {% include 'event_detail_buttons.html' %}
{% endif %}
{% endif %}
@@ -253,7 +253,7 @@
{% endblock %}
{% if request.is_ajax %}
- {% block footer %}
+ {% block barter %}
{% if perms.RIGS.view_event %}
diff --git a/RIGS/templates/RIGS/event_detail_buttons.html b/RIGS/templates/event_detail_buttons.html
similarity index 100%
rename from RIGS/templates/RIGS/event_detail_buttons.html
rename to RIGS/templates/event_detail_buttons.html
diff --git a/RIGS/templates/RIGS/event_embed.html b/RIGS/templates/event_embed.html
similarity index 100%
rename from RIGS/templates/RIGS/event_embed.html
rename to RIGS/templates/event_embed.html
diff --git a/RIGS/templates/RIGS/event_form.html b/RIGS/templates/event_form.html
similarity index 96%
rename from RIGS/templates/RIGS/event_form.html
rename to RIGS/templates/event_form.html
index 954ebdbd..a1bc4cba 100644
--- a/RIGS/templates/RIGS/event_form.html
+++ b/RIGS/templates/event_form.html
@@ -166,9 +166,9 @@
{# Contact details #}