mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Add templates to add a member.
This commit is contained in:
parent
fcf33e9fdb
commit
0fc95cefb4
3 changed files with 15 additions and 1 deletions
4
budget/templates/add_member.html
Normal file
4
budget/templates/add_member.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
{% include "member_form.html" %}
|
||||
{% endblock %}
|
|
@ -15,7 +15,7 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% set form=member_form %}
|
||||
{#% include "member_form.html" %#}
|
||||
{% include "member_form.html" %}
|
||||
</div>
|
||||
<div id="content" class="span-18 last">
|
||||
{% if bills.count() > 0 %}
|
||||
|
|
10
budget/templates/member_form.html
Normal file
10
budget/templates/member_form.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% for errors in form.errors.values() %}
|
||||
{% for error in errors %}
|
||||
<p class="error">{{error}}</p>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
<form action="{{ url_for("add_member", project_id=project.id) }}" method="post">
|
||||
{{ form.hidden_tag() }}
|
||||
<p>{{ form.name.label }}<br /> {{ form.name }}</p>
|
||||
<p>{{ form.submit }}</p>
|
||||
</form>
|
Loading…
Reference in a new issue