aboutsummaryrefslogtreecommitdiffstats
path: root/timer/templates/labels.html
diff options
context:
space:
mode:
Diffstat (limited to 'timer/templates/labels.html')
-rw-r--r--timer/templates/labels.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/timer/templates/labels.html b/timer/templates/labels.html
new file mode 100644
index 0000000..325f5e7
--- /dev/null
+++ b/timer/templates/labels.html
@@ -0,0 +1,31 @@
+{% extends "timer.html" %}
+
+{% block content %}
+<div data-role="page">
+ <div data-role="header">
+ <h1>Labels</h1>
+ <a href="#labelPopup" data-icon="plus" data-rel="popup" data-position-to="window">Add</a>
+ </div>
+ <div data-role="content">
+ <ul data-role="listview" id="labelList">
+ {% include "label_list.html" %}
+ </ul>
+ </div>
+ <div data-role="popup" id="labelPopup" class="ui-content">
+ <form method="post" action="/timer/labels/new/">
+ {% csrf_token %}
+ <input type="text" name="title"/>
+ <select name="color">
+ <option>Red</option>
+ <option>Orange</option>
+ <option>Yellow</option>
+ <option>Green</option>
+ <option>Blue</option>
+ <option>Purple</option>
+ <option>Brown</option>
+ </select>
+ <button type="submit">Save</button>
+ </form>
+ </div>
+</div>
+{% endblock content %}