changeset 2510:ac8ede199744

Uses an input box instead of a textarea for rename, delete, destroy
author sharky93 <rishabhr123@gmail.com>
date Mon, 23 Sep 2013 11:25:10 +0530
parents 995f179561a5
children e2cbfdfd85e7
files MoinMoin/themes/basic/templates/delete.html MoinMoin/themes/basic/templates/destroy.html MoinMoin/themes/basic/templates/rename.html
diffstat 3 files changed, 11 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/delete.html	Mon Sep 23 11:15:04 2013 +0530
+++ b/MoinMoin/themes/basic/templates/delete.html	Mon Sep 23 11:25:10 2013 +0530
@@ -9,12 +9,11 @@
 	<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) }}
+        	{{ forms.render_textcha(gen, form) }}
+        	{{ gen.input(form['comment'], type="text", class="form-control") }}
+    	</div>
 		
 		<div class="form-group">
 			{{ forms.render_submit(form, class='btn btn-primary') }}
--- a/MoinMoin/themes/basic/templates/destroy.html	Mon Sep 23 11:15:04 2013 +0530
+++ b/MoinMoin/themes/basic/templates/destroy.html	Mon Sep 23 11:25:10 2013 +0530
@@ -11,11 +11,11 @@
 
       {{ 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') }}
+          {{ forms.render_textcha(gen, form) }}
+          {{ gen.input(form['comment'], type="text", class="form-control") }}
       </div>
-      {{ forms.render_textcha(gen, form) }}
 
       <div class="form-group">
         {{ forms.render_submit(form, class='btn btn-primary') }}
--- a/MoinMoin/themes/basic/templates/rename.html	Mon Sep 23 11:15:04 2013 +0530
+++ b/MoinMoin/themes/basic/templates/rename.html	Mon Sep 23 11:25:10 2013 +0530
@@ -14,12 +14,10 @@
 	    	{{ 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_textcha(gen, form) }}
+        	{{ gen.input(form['comment'], type="text", class="form-control") }}
+    	</div>
 
 		<div class="form-group">
 			{{ forms.render_submit(form, class='btn btn-primary') }}