2018-07-22 21:18:50 +00:00
|
|
|
{% 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 %}
|
|
|
|
|
2018-07-22 21:18:50 +00:00
|
|
|
{% 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>
|
2018-07-22 21:18:50 +00:00
|
|
|
<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 %}
|
|
|
|
|