changeset 2434:a2faaed87cf6

alignment fixes to the login view
author sharky93 <rishabhr123@gmail.com>
date Wed, 28 Aug 2013 01:44:19 +0530
parents 3fc501bfd78d
children 2188b5fe3b89
files MoinMoin/themes/basic/templates/login.html
diffstat 1 files changed, 38 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/login.html	Wed Aug 28 01:33:14 2013 +0530
+++ b/MoinMoin/themes/basic/templates/login.html	Wed Aug 28 01:44:19 2013 +0530
@@ -2,47 +2,49 @@
 {% import "forms.html" as forms %}
 
 {% block content %}
-<div class="col-lg-4">
-	{{ forms.render_errors(form) }}
-
-	{% if 'username' in login_inputs or 'password' in login_inputs %}
-		<h2>{{ _('Moin login') }}</h2>
-		{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
-
-		  {% if 'username' in login_inputs %}
-		    <div class="form-group">
-		    	{{ gen.label(form['username']) }}
-		    	{{ gen.input(form['username'], type="text", class="form-control") }}
-		    </div>
-		  {% endif %}
-		  {% if 'password' in login_inputs %}
-		    <div class="form-group">
-		    	{{ gen.label(form['password']) }}
-		    	{{ gen.input(form['password'], type="password", class="form-control") }}
-		    </div>
-		  {% endif %}
+<h2>{{ _('Moin Login') }}</h2>
+<div class="row">
+	<div class="col-lg-4">
+		{{ forms.render_errors(form) }}
 
-		{{ forms.render(form['submit']) }}
-
-		<div class="form-group">
-		    {{ forms.render_submit(form, class='btn btn-primary') }}
-		</div>
-		{{ gen.form.close() }}
-	{% endif %}
+		{% if 'username' in login_inputs or 'password' in login_inputs %}
+			{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
 
-	{% if 'openid' in login_inputs %}
-	<h2>{{ _('OpenID login') }}</h2>
-
-		{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
+			  {% if 'username' in login_inputs %}
+			    <div class="form-group">
+			    	{{ gen.label(form['username']) }}
+			    	{{ gen.input(form['username'], type="text", class="form-control") }}
+			    </div>
+			  {% endif %}
+			  {% if 'password' in login_inputs %}
+			    <div class="form-group">
+			    	{{ gen.label(form['password']) }}
+			    	{{ gen.input(form['password'], type="password", class="form-control") }}
+			    </div>
+			  {% endif %}
 
-		  {{ forms.render(form['openid']) }}
+			{{ forms.render(form['submit']) }}
 
-		{{ forms.render(form['submit']) }}
-		<div class="form-group">
-		    {{ forms.render_submit(form, class='btn btn-primary') }}
-		</div>
-		{{ gen.form.close() }}
+			<div class="form-group">
+			    {{ forms.render_submit(form, class='btn btn-primary') }}
+			</div>
+			{{ gen.form.close() }}
 		{% endif %}
 
+		{% if 'openid' in login_inputs %}
+		<h2>{{ _('OpenID Login') }}</h2>
+
+			{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
+
+			  {{ forms.render(form['openid']) }}
+
+			{{ forms.render(form['submit']) }}
+			<div class="form-group">
+			    {{ forms.render_submit(form, class='btn btn-primary') }}
+			</div>
+			{{ gen.form.close() }}
+			{% endif %}
+
+	</div>
 </div>
 {% endblock %}