aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-13 19:02:42 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-13 19:02:42 +0100
commit83b6a697e7b5a8f36ccd20e136f5500eb7b23ce1 (patch)
tree163d092956e878cf804259cd0b152ba8d8c52472 /ctrack
parentf1bcac0499c5e6202b3ddd0661052d14b5b53f87 (diff)
minor fixes
Diffstat (limited to 'ctrack')
-rw-r--r--ctrack/caf/templates/caf/applicable_system_create_from_caf.html2
-rw-r--r--ctrack/register/models.py2
-rw-r--r--ctrack/register/templates/single_datetime_event_create.html3
-rw-r--r--ctrack/register/views.py2
4 files changed, 3 insertions, 6 deletions
diff --git a/ctrack/caf/templates/caf/applicable_system_create_from_caf.html b/ctrack/caf/templates/caf/applicable_system_create_from_caf.html
index 0c39fb6..2b2d6b1 100644
--- a/ctrack/caf/templates/caf/applicable_system_create_from_caf.html
+++ b/ctrack/caf/templates/caf/applicable_system_create_from_caf.html
@@ -13,7 +13,7 @@
<h4>Add a new system to {{ caf }}</h4>
</div>
</div>
- <div class="row">
+ <div class="row justify-content-center">
<div class="col-md-7 pt-2 border bg-light">
{% crispy form %}
</div>
diff --git a/ctrack/register/models.py b/ctrack/register/models.py
index 005ccad..2729fa5 100644
--- a/ctrack/register/models.py
+++ b/ctrack/register/models.py
@@ -94,7 +94,7 @@ class ThirdPartyEventMixin(models.Model):
class SingleDateTimeEventMixin(models.Model):
- datetime = models.DateTimeField(blank=False, verbose_name="Date/Time")
+ datetime = models.DateTimeField(blank=False, verbose_name="Date/Time", help_text="DD/MM/YY HH:MM format please!")
class Meta:
abstract = True
diff --git a/ctrack/register/templates/single_datetime_event_create.html b/ctrack/register/templates/single_datetime_event_create.html
index c4ec263..3494792 100644
--- a/ctrack/register/templates/single_datetime_event_create.html
+++ b/ctrack/register/templates/single_datetime_event_create.html
@@ -8,9 +8,6 @@
{% endblock %}
-
-
-
{% block content %}
<div class="container">
<div class="row justify-content-center">
diff --git a/ctrack/register/views.py b/ctrack/register/views.py
index a7a6c26..9ec96e8 100644
--- a/ctrack/register/views.py
+++ b/ctrack/register/views.py
@@ -75,7 +75,7 @@ class EngagementEventCreateFromCaf(LoginRequiredMixin, FormView):
class SingleDateTimeEventCreate(LoginRequiredMixin, FormView):
template_name = "single_datetime_event_create.html"
form_class = AddMeetingForm
- success_url = "/"
+ success_url = reverse_lazy("organisations:list")
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()