From 9844bccd65defb357202cd14a35b802e0358c0b1 Mon Sep 17 00:00:00 2001 From: MOIS3Y Date: Sun, 10 Sep 2023 12:54:54 +0900 Subject: [PATCH] Fix: width ticket page and account update form --- logs_collector/account/forms.py | 1 - .../templates/account/profile_update.html | 4 +- .../collector/templates/collector/ticket.html | 74 +++++++++---------- 3 files changed, 39 insertions(+), 40 deletions(-) diff --git a/logs_collector/account/forms.py b/logs_collector/account/forms.py index 5d7941b..b3e159a 100644 --- a/logs_collector/account/forms.py +++ b/logs_collector/account/forms.py @@ -31,7 +31,6 @@ class UserProfileForm(forms.ModelForm): ), PrependedText('first_name', 'First name:'), PrependedText('last_name', 'Last name:'), - css_class='col-lg-6' ), Submit('submit', 'Save', css_class='btn btn-primary'), ) diff --git a/logs_collector/account/templates/account/profile_update.html b/logs_collector/account/templates/account/profile_update.html index 29f6dcb..acf51dc 100644 --- a/logs_collector/account/templates/account/profile_update.html +++ b/logs_collector/account/templates/account/profile_update.html @@ -7,7 +7,9 @@
Profile

- {% crispy form %} +
+ {% crispy form %} +
{% endblock profile_update %} diff --git a/logs_collector/collector/templates/collector/ticket.html b/logs_collector/collector/templates/collector/ticket.html index 366552a..1c9e763 100644 --- a/logs_collector/collector/templates/collector/ticket.html +++ b/logs_collector/collector/templates/collector/ticket.html @@ -4,46 +4,44 @@ {% block title %} {{ title }} {% endblock title %} {% block main %}
-
- {% csrf_token %} -
-
- {% include 'collector/includes/ticket_info.html' %} -
- {% if ticket.note %} -
-
- Note: + {% csrf_token %} +
+
+ {% include 'collector/includes/ticket_info.html' %} +
+ {% if ticket.note %} +
+
+ Note: +
+
+
+ {{ ticket.note | markdown | safe }}
-
-
- {{ ticket.note | markdown | safe }} -
-
-
- {% endif %} -
- - {% if ticket.archive_set.all %} -
    - {% for archive in ticket.archive_set.all %} - {% include 'collector/includes/ticket_archives.html' %} - {% endfor %} -
+
+
{% endif %} - -
- Edit - -
+
+ + {% if ticket.archive_set.all %} +
    + {% for archive in ticket.archive_set.all %} + {% include 'collector/includes/ticket_archives.html' %} + {% endfor %} +
+ {% endif %} + +
+ Edit +