diff --git a/templates/partials/form_field.html b/templates/partials/form_field.html new file mode 100644 index 0000000..80952a2 --- /dev/null +++ b/templates/partials/form_field.html @@ -0,0 +1,30 @@ +{% load form_helpers %} +
+ + {% with wt=field|field_type %} + {% if wt == "CheckboxInput" or wt == "CheckboxSelectMultiple" %} + + {% elif wt == "Select" or wt == "NullBooleanSelect" or wt == "SelectMultiple" %} + {{ field|add_class:"select select-bordered w-full" }} + {% elif wt == "Textarea" %} + {{ field|add_class:"textarea textarea-bordered w-full" }} + {% else %} + {{ field|add_class:"input input-bordered w-full" }} + {% endif %} + {% endwith %} + {% if field.errors %} + + {% endif %} + {% if field.help_text %} + + {% endif %} +
diff --git a/templates/partials/kanban/card.html b/templates/partials/kanban/card.html index 73a9cde..cd99924 100644 --- a/templates/partials/kanban/card.html +++ b/templates/partials/kanban/card.html @@ -2,33 +2,34 @@ id="card-{{ card.pk }}">
-

{{ card.title }}

-
- + - + {{ card.title }} -
- {% csrf_token %} - -
+
+ {% if card.priority == 'urgent' %} + Urgent + {% elif card.priority == 'high' %} + High + {% elif card.priority == 'medium' %} + Med + {% elif card.priority == 'low' %} + Low + {% endif %} + {% if card.assignee %} + {{ card.assignee.username }} + {% endif %} +
+
+
+
- {% if card.description %} -

{{ card.description }}

- {% endif %} - {% if card.due_date %} -
- - {{ card.due_date }} -
- {% endif %}
diff --git a/templates/partials/kanban/comment.html b/templates/partials/kanban/comment.html new file mode 100644 index 0000000..f87f47a --- /dev/null +++ b/templates/partials/kanban/comment.html @@ -0,0 +1,43 @@ +{% load form_helpers %} +
+
+
+
{{ comment.author.username|first|upper }}
+
+
+ {{ comment.author.username }} + {{ comment.created_at|timesince }} ago +
+
+ {{ comment.body|render_markdown }} +
+ {% if not comment.parent %} + + + {% endif %} + {% if comment.replies.all %} +
+ {% for reply in comment.replies.all %} + {% include "partials/kanban/comment.html" with comment=reply %} + {% endfor %} +
+ {% endif %} +
+
+
+
diff --git a/templates/partials/tickets/comment_list.html b/templates/partials/tickets/comment_list.html new file mode 100644 index 0000000..5b15ce5 --- /dev/null +++ b/templates/partials/tickets/comment_list.html @@ -0,0 +1,14 @@ +{% for comment in comments %} +
+
{{ comment.author.username|first|upper }}
+
+
+ {{ comment.author.username }} + {{ comment.created_at|timesince }} ago +
+

{{ comment.body }}

+
+
+{% empty %} +

No comments yet.

+{% endfor %} \ No newline at end of file