summaryrefslogtreecommitdiff
path: root/app/gtd/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/gtd/templates')
-rw-r--r--app/gtd/templates/gtd/outcome_form.html35
-rw-r--r--app/gtd/templates/gtd/outcome_list.html21
-rw-r--r--app/gtd/templates/gtd/project_list.html6
-rw-r--r--app/gtd/templates/gtd/wiredpost_list.html (renamed from app/gtd/templates/gtd/post_list.html)0
-rw-r--r--app/gtd/templates/gtd/wiredpost_table.html (renamed from app/gtd/templates/gtd/post_table.html)8
5 files changed, 63 insertions, 7 deletions
diff --git a/app/gtd/templates/gtd/outcome_form.html b/app/gtd/templates/gtd/outcome_form.html
new file mode 100644
index 0000000..13591e8
--- /dev/null
+++ b/app/gtd/templates/gtd/outcome_form.html
@@ -0,0 +1,35 @@
+{% extends 'base_gtd.html' %}
+
+{% block extrahead %}
+<style>
+form .selector label {
+ position: inherit;
+}
+</style>
+{% endblock %}
+{% block primary %}
+<main role="main" class="archive-wrapper">
+ <div class="post-body">
+ <form action="" method="post" class="comment-form">{% csrf_token %}
+ {% for field in form %}
+ <fieldset>
+ {%if field.name == "project" or field.name == "status" or field.name == 'note_type'%}<span class="selector">{{field.label_tag}}</span>{%else%}{{field.label_tag}}{%endif%}
+ {%if field.name == "body_markdown"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endif%}
+ </fieldset>
+ <small class="alert">{% if field.errors %}{{field.errors}}{% endif %}</small>
+ {%endfor%}
+ <input class="btn" type="submit" name="add_new" value="Save and add another" />
+ <input type="submit" name="save" class="btn" value="Save" />
+ </form>
+ </div>
+</main>
+{% endblock %}
+ {% block js %}
+ {% if is_update %}{%else%}
+<script type="text/javascript">
+let params = new URL(document.location).searchParams;
+document.getElementById('id_title').value = params.get("title");
+document.getElementById('id_body_markdown').value = params.get("description");
+</script>
+{% endif %}
+ {% endblock%}
diff --git a/app/gtd/templates/gtd/outcome_list.html b/app/gtd/templates/gtd/outcome_list.html
new file mode 100644
index 0000000..025cc8f
--- /dev/null
+++ b/app/gtd/templates/gtd/outcome_list.html
@@ -0,0 +1,21 @@
+{% extends 'base_gtd.html' %}
+{% block primary %}
+<main class="post-detail">
+ <div class="post-header"><ul class="flex header-list">
+ <li class="right"><a href="{% url 'gtd:outcome-create' %}" class="btn">New</a></li>
+ </ul>
+ </div>
+ <div class="note-list">{% for object in object_list %}<article>
+ <h2>{{object.title}}<span class="note-edit"><a href="{% url 'gtd:outcome-edit' object.pk %}">edit</a></span></h2>
+ <p>{{object.body_markdown}}</p>
+ <p class="small">Date Goal: {{object.date_goal}}</p>
+ <p class="small">Type: {{object.get_project_type_display}}</p>
+ <p class="small"><a href="{% url 'gtd:outcome-delete' object.pk %}">delete</a></p>
+ </article>
+{% endfor%}</div>
+</main>
+
+
+{% endblock %}
+{% block js %}
+{% endblock%}
diff --git a/app/gtd/templates/gtd/project_list.html b/app/gtd/templates/gtd/project_list.html
index cba8944..24651de 100644
--- a/app/gtd/templates/gtd/project_list.html
+++ b/app/gtd/templates/gtd/project_list.html
@@ -2,10 +2,10 @@
{% block primary %}
<main class="post-detail">
<div class="post-header"><ul class="flex header-list">
- {% for status in note_statuses %}
- <li><a class="btn" href="{% url 'gtd:note-list-status' status.1|lower%}">{{status.1}}</a></li>
+ {% for object in project_types %}
+ <li><a class="btn" href="{% url 'gtd:project-list-type' object.1|lower%}">{%if object.1 == 'Lbh'%}{{object.1|upper}}{%else%}{{object.1}}{%endif%}</a></li>
{% endfor %}
- <li class="right"><a href="{% url 'gtd:note-create' %}" class="btn">New Note</a></li>
+ <li class="right"><a href="{% url 'gtd:project-create' %}" class="btn">New</a></li>
</ul>
</div>
<div class="note-list">{% for object in object_list %}<article>
diff --git a/app/gtd/templates/gtd/post_list.html b/app/gtd/templates/gtd/wiredpost_list.html
index 1b56106..1b56106 100644
--- a/app/gtd/templates/gtd/post_list.html
+++ b/app/gtd/templates/gtd/wiredpost_list.html
diff --git a/app/gtd/templates/gtd/post_table.html b/app/gtd/templates/gtd/wiredpost_table.html
index c9eb717..92eac7e 100644
--- a/app/gtd/templates/gtd/post_table.html
+++ b/app/gtd/templates/gtd/wiredpost_table.html
@@ -40,7 +40,7 @@ Date last pub
<tbody>{% for object in object_list %}
<tr>
<td class="field-title">
- <a href="{% url 'gtd:post-detail' object.id %}">{{object.title}}</a>
+ <a href="{% url 'gtd:wiredpost-detail' object.id %}">{{object.title}}</a>
</td>
<td class="field-admin_url">
<a target="_blank" href="{{object.url}}">
@@ -50,7 +50,7 @@ Date last pub
<td class="field-admin_url">{% if object.edit_url %}
<a target="_blank" href="{{object.edit_url}}">
edit
- </a>{%else%}<a href="{% url 'gtd:post-edit' object.pk %}">add</a>{%endif%}
+ </a>{%else%}<a href="{% url 'gtd:wiredpost-edit' object.pk %}">add</a>{%endif%}
</td>
<td class="field-date_last_pub nowrap">{{object.date_last_pub}}</td>
<td class="field-post_type"><span class="hide">{{object.post_type}}</span>{{object.get_post_type_display}}</td>
@@ -60,13 +60,13 @@ Date last pub
<span class="hide">0</span><img src="/static/admin/img/icon-no.svg" alt="False">{%endif%}
</td>
<td class="field-days_overdue">{{object.days_overdue}}</td>
- <td class="field-days_overdue"><a href="{% url 'gtd:post-edit' object.pk %}">edit</a></td></tr>
+ <td class="field-days_overdue"><a href="{% url 'gtd:wiredpost-edit' object.pk %}">edit</a></td></tr>
</tr>
{% endfor %}
{% if reviews %}{% for object in reviews %}
<tr>
<td class="field-title">
- <a href="/post/{{object.id}}/notes">{{object.title}}</a>
+ <a href="{% url 'gtd:wiredpost_detail' object.id">{{object.title}}</a>
</td>
<td class="field-admin_url">
<a target="_blank" href="{{object.url}}">