cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/templates/users/user_form.html
2013-12-17 16:27:18 +01:00

25 lines
742 B
HTML

{% raw %}{% extends "base.html" %}
{% load crispy_forms_tags %}
{% block title %}User: {{ user.username }}{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>{% block header %}User: {{ user.username }}{% endblock %}</h1>
<form class="form-horizontal" method="post" action="{% url 'users:update' %}">
{% csrf_token %}
{{ form|crispy }}
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Update</button>
</div>
</div>
</form>
</div>
</div>
</div>
{% endblock %}{% endraw %}