changeset 2437:a6b7ef039d80

adds destroy actionview
author sharky93 <rishabhr123@gmail.com>
date Wed, 28 Aug 2013 02:43:45 +0530
parents 1f7fb971d51a
children a8e9f6e75096
files MoinMoin/themes/basic/templates/destroy.html
diffstat 1 files changed, 46 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/templates/destroy.html	Wed Aug 28 02:43:45 2013 +0530
@@ -0,0 +1,46 @@
+{% import "forms.html" as forms %}
+{% extends theme("show.html") %}
+
+{% set title = _("DESTROY COMPLETE ITEM '%(item_name)s'", item_name=item.name) %}
+
+{% block content %}
+{% if rev_id == None %}
+  <h2>{{ title }}</h2>
+  <div class="row">
+    <div class="col-lg-5">
+
+      {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name)) }}
+      {{ forms.render_errors(form) }}
+      <div class="form-group">
+        {{ gen.label(form['comment']) }}
+        {{ gen.textarea(form['comment'], rows='1', class='form-control') }}
+      </div>
+      {{ forms.render_textcha(gen, form) }}
+
+      <div class="form-group">
+        {{ forms.render_submit(form, class='btn btn-primary') }}
+      </div>
+      {{ gen.form.close() }}
+    </div>
+  </div>
+{% else %}
+  <h2>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h2>
+  <div class="row">
+    <div class="col-lg-5">
+      {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name, rev=rev_id)) }}
+      {{ forms.render_errors(form) }}
+      
+      <div class="form-group">
+        {{ gen.label(form['comment']) }}
+        {{ gen.textarea(form['comment'], rows='1', class='form-control') }}
+      </div>
+      {{ forms.render_textcha(gen, form) }}
+      
+      <div class="form-group">
+        {{ forms.render_submit(form, class='btn btn-primary') }}
+      </div>
+      {{ gen.form.close() }}
+    </div>
+  </div>
+{% endif %}
+{% endblock %}