changeset 2436:1f7fb971d51a

adds rename view
author sharky93 <rishabhr123@gmail.com>
date Wed, 28 Aug 2013 02:36:30 +0530
parents 2188b5fe3b89
children a6b7ef039d80
files MoinMoin/themes/basic/templates/rename.html
diffstat 1 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/templates/rename.html	Wed Aug 28 02:36:30 2013 +0530
@@ -0,0 +1,30 @@
+{% import "forms.html" as forms %}
+{% extends theme("show.html") %}
+
+{% set title = _("Rename '%(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.rename_item', item_name=item.name)) }}
+  		{{ forms.render_errors(form) }}
+  		<div class="form-group">
+	    	{{ gen.label(form['target']) }}
+	    	{{ gen.input(form['target'], type="text", class="form-control") }}
+	    </div>
+
+  		<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 %}