microblog/app/templates/edit.html

36 lines
1.5 KiB
HTML
Raw Normal View History

2012-12-16 08:31:21 +00:00
<!-- extend base layout -->
{% extends "base.html" %}
{% block content %}
<h1>{{ _('Edit Your Profile') }}</h1>
{% include 'flash.html' %}
<div class="well">
<form class="form-horizontal" action="" method="post" name="edit">
{{ form.hidden_tag() }}
<div class="control-group{% if form.nickname.errors %} error{% endif %}">
<label class="control-label" for="nickname">{{ _('Your nickname:') }}</label>
<div class="controls">
{{ form.nickname(maxlength=64, class="span4") }}
{% for error in form.nickname.errors %}
<span class="help-inline">[{{ error }}]</span><br>
{% endfor %}
</div>
2012-12-16 08:40:47 +00:00
</div>
<div class="control-group{% if form.about_me.errors %} error{% endif %}">
<label class="control-label" for="about_me">{{ _('About yourself:') }}</label>
<div class="controls">
{{ form.about_me(cols=64, rows=4, class="span4") }}
{% for error in form.about_me.errors %}
<span class="help-inline">[{{ error }}]</span><br>
{% endfor %}
</div>
2012-12-16 08:40:47 +00:00
</div>
<div class="control-group">
<div class="controls">
<input class="btn btn-primary" type="submit" value="{{ _('Save Changes') }}">
</div>
2012-12-16 08:40:47 +00:00
</div>
</form>
</div>
2012-12-16 08:31:21 +00:00
{% endblock %}