view MoinMoin/themes/basic/templates/register.html @ 2478:2ead05f02b24

fixes register view as per bootstrap
author sharky93 <rishabhr123@gmail.com>
date Sat, 14 Sep 2013 02:37:11 +0530
parents 7e05a3e8db96
children 81373904efeb
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "forms.html" as forms %}

{% block content %}
<h2>{{ _('Create Account') }}</h2>
<div class="row">
  <div class="col-lg-4">
    
    {{ gen.form.open(form, method="post", action=url_for('frontend.register')) }}
    
    {% if form.errors %}
      <div class="moin-flash moin-flash-error">
      {% for error in form.errors %}
        {{ error }}
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
      {% endfor %}
      </div>
    {% endif %}

    {% for field, fieldtype in [
        ('username', 'text'),
        ('password1', 'password'),
        ('password2', 'password'),
        ('email', 'text'),
        ('openid', 'text'),
        ] %}
          <div class="form-group">
              {{ gen.label(form[field]) }}
              {{ gen.input(form[field], type=fieldtype, class="form-control") }}
          </div>
      {% endfor %}
      {{ forms.render_textcha(gen, form) }}

    <div class="form-group">
        {{ forms.render_submit(form, class='btn btn-primary') }}
    </div>

    {{ gen.form.close() }}
  </div>
</div>
{% endblock %}