summaryrefslogtreecommitdiff
path: root/app/notes/templates/note_list.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2025-04-07 16:10:26 -0500
committerluxagraf <sng@luxagraf.net>2025-04-07 16:10:26 -0500
commit7d55fc9935cd90343f7a9bfee602ef654f0afdb0 (patch)
tree992f3c88040d22db78f6b4c2082c796214e0c55d /app/notes/templates/note_list.html
parente3fc13086e361832bb14d6c6cedd8da6fe75bbd1 (diff)
notes: added new top level notes app to combine gtd and links
Diffstat (limited to 'app/notes/templates/note_list.html')
-rw-r--r--app/notes/templates/note_list.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/notes/templates/note_list.html b/app/notes/templates/note_list.html
new file mode 100644
index 0000000..bd16cc0
--- /dev/null
+++ b/app/notes/templates/note_list.html
@@ -0,0 +1,31 @@
+{% extends 'base_notes.html' %}
+{% block primary %}
+<main class="post-detail">
+ <div class="post-header"><ul class="flex header-list">
+ <li><a class="btn" href="{% url 'notes:note-list' %}">All</a></li>
+ {% for object in note_types %}
+ <li><a class="btn" href="{% url 'gtd:note-list-status' object.label|lower%}">{{object.label}}</a></li>
+ {% endfor %}
+ <li class="right"><a href="{% url 'notes:note-create' %}" class="btn">New Note</a></li>
+ </ul>
+
+<select class="form-control" style="margin-top: 2%;" onchange="go_from_select(this.options[this.selectedIndex].value)">
+ <option value="">All Projects</option>{% for object in tags %}
+ <option {% if object.Tag == project %}selected="selected" {%endif%}value="?tag={{object}}">{{object}}</option>{%endfor%}
+</select>
+ </div>
+ <div class="note-list">{% for object in object_list %}<article>
+ <h2>{% if object.url %}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%} <span class="note-edit"><a href="{%url 'gtd:note-edit' object.pk%}">edit</a></span></h2>
+ <p>{{object.body_markdown}}</p>
+ {% if object.project %}<p class="small">For: <a href="{% url 'gtd:project-detail' object.project.id %}">{{object.project}}</a></p>{%endif%}
+ <p class="small">Status: {{object.get_status_display}}</p>
+ <p class="small"><a href="{% url 'gtd:note-delete' object.pk %}">delete</a></p>
+ </article>
+{% endfor%}</div>
+</main>
+
+
+{% endblock %}
+{% block js %}
+<script type="text/javascript">var go_from_select = function(opt) { window.location = window.location.pathname + opt };</script>
+{% endblock%}