aboutsummaryrefslogtreecommitdiffstats
path: root/notes/templates
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-02-01 09:49:20 +0200
committerFilipp Lepalaan <f@0x00.co>2013-02-01 09:49:20 +0200
commit2e9cd65e869b8bd31e6e6ba66b52705c023af5ec (patch)
treefda1874e6338022ee5666330249650fe41193cf1 /notes/templates
parentc0121b9b7f5041f6434a2e2dd24d3c68ed84b582 (diff)
downloadopus-2e9cd65e869b8bd31e6e6ba66b52705c023af5ec.tar.gz
opus-2e9cd65e869b8bd31e6e6ba66b52705c023af5ec.tar.bz2
opus-2e9cd65e869b8bd31e6e6ba66b52705c023af5ec.zip
Some improvementsHEADmaster
Diffstat (limited to 'notes/templates')
-rw-r--r--notes/templates/edit.html13
-rw-r--r--notes/templates/view.html10
2 files changed, 18 insertions, 5 deletions
diff --git a/notes/templates/edit.html b/notes/templates/edit.html
index 6d2ec1e..51c1e7d 100644
--- a/notes/templates/edit.html
+++ b/notes/templates/edit.html
@@ -3,14 +3,19 @@
{% block content %}
<div data-role="page">
<div data-role="header">
- <a href="/notes/" data-icon="arrow-l">Notes</a>
- <h1>New Note</h1>
- <a href="/notes/" id="done">Done</a>
+ <a href="/notes/" data-icon="arrow-l" data-ajax="false">Notes</a>
+ <h1>{{ note.title }}</h1>
+ <a href="#" id="done">Done</a>
</div>
<div data-role="content">
- <form action="" method="post" id="noteForm" enctype="multipart/form-data">
+ <form action="" method="post" id="noteForm" enctype="multipart/form-data" data-ajax="false">
{% csrf_token %}
{{ form }}
+ <ul data-role="listview" data-inset="true">
+ {% for a in note.attachment_set.all %}
+ <li><a href="/notes/{{ note.id }}/files/{{ a.id }}/delete/">{{ a.get_name }}</a></li>
+ {% endfor %}
+ </ul>
<button type="submit" data-theme="b">Save</button>
{% if form.is_bound %}
<a href="delete/" data-role="button">Delete</a>
diff --git a/notes/templates/view.html b/notes/templates/view.html
index a6d3473..fa2a59d 100644
--- a/notes/templates/view.html
+++ b/notes/templates/view.html
@@ -6,10 +6,18 @@
<div data-role="header">
<a href="/notes/" data-icon="arrow-l">Notes</a>
<h1>{{ note.title }}</h1>
- <a href="{{ note.get_absolute_url }}edit/">Edit</a>
+ <a href="{{ note.get_absolute_url }}edit/" data-ajax="false">Edit</a>
</div>
<div data-role="content">
<p>{{ version.content|restructuredtext }}</p>
+ <ul data-role="listview" data-inset="true">
+ {% for a in note.attachment_set.all %}
+ <li><a href="/notes/{{ note.id }}/file/{{ a.id }}/">{{ a.get_name }}<span class="ui-li-aside ui-li-desc">{{ a.content.size|filesizeformat }}</span></a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div data-role="footer" class="ui-bar" data-position="fixed" data-theme="b">
+ <a href="delete" data-icon="delete" data-role="button">Delete</a>
</div>
</div>
{% endblock content %}