bornhack-website/src/teams/templates/task_form.html

37 lines
1 KiB
HTML
Raw Normal View History

{% extends 'team_base.html' %}
2017-11-25 12:02:32 +00:00
{% load commonmark %}
{% load bootstrap3 %}
{% block title %}
{% if form.instance.id %}
Edit Task: {{ form.instance.name }}
{% else %}
Create Task
{% endif %}
for {{ team.name }} Team
{% endblock %}
{% block team_content %}
2017-11-25 12:02:32 +00:00
<div class="panel panel-default">
<div class="panel-heading">
<h4>
{% if form.instance.id %}
Edit Task: {{ form.instance.name }}
{% else %}
Create Task
{% endif %}
for {{ team.name }} Team
</h4>
</div>
<div class="panel-body">
<form method="POST">
{% csrf_token %}
{% bootstrap_form form %}
<button type="submit" class="btn btn-primary">{% if form.instance.id %}Save{% else %}Create{% endif %}</button>
</form>
</div>
<div class="panel-footer"><i>This task belongs to the <a href="{% url 'teams:general' team_slug=team.slug camp_slug=team.camp.slug %}">{{ team.name }} Team</a></i></div>
2017-11-25 12:02:32 +00:00
</div>
{% endblock %}