changeset 2438:a8e9f6e75096

adds delete action view
author sharky93 <rishabhr123@gmail.com>
date Wed, 28 Aug 2013 02:46:28 +0530
parents a6b7ef039d80
children 14c6e645de70
files MoinMoin/themes/basic/templates/delete.html
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/templates/delete.html	Wed Aug 28 02:46:28 2013 +0530
@@ -0,0 +1,25 @@
+{% import "forms.html" as forms %}
+{% extends theme("show.html") %}
+
+{% set title = _("Delete '%(item_name)s'", item_name=item.name) %}
+
+{% block content %}
+<h2>{{ title }}</h2>
+<div class="row">
+	<div class="col-lg-5">
+		{{ gen.form.open(form, method="post", action=url_for('frontend.delete_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>
+{% endblock %}