]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/note_detail.html
add mini-live edit, for quick fixes
[chloro.git] / chloro / phyll / templates / phyll / note_detail.html
index 240929be09603a8ab27fc792929111c373689a40..d0b9bc36c34ca7ee0be720c440362d06a3cce3bc 100644 (file)
@@ -7,7 +7,8 @@
 {% block body %}
 <div>
 <h2>{{ object.title }}</h2>
 {% block body %}
 <div>
 <h2>{{ object.title }}</h2>
-<div>{{ object.text|safe }}</div>
+<div {% if request.user.is_staff %}contenteditable="true"{% endif %}>{{ object.text|safe }}</div>
+{% if request.user.is_staff %}<button id="save">{% trans "Save" %}</button>{% endif %}
 
 <div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
 </div>
 
 <div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
 </div>