2018-07-22 21:18:50 +00:00
{% extends 'team_base.html' %}
2018-05-04 22:19:24 +00:00
{% load commonmark %}
{% load bootstrap3 %}
{% block title %}
2018-05-06 19:55:50 +00:00
{% if object %}
Editing "{{ object.headline }}"
2018-08-04 11:45:52 +00:00
in "{{ form.instance.category.headline }}"
2018-05-04 22:19:24 +00:00
{% else %}
Create Info item
2018-08-04 11:45:52 +00:00
in "{{ category.headline }}"
2018-05-04 22:19:24 +00:00
{% endif %}
{% endblock %}
2018-07-22 21:18:50 +00:00
{% block team_content %}
2018-05-04 22:19:24 +00:00
< div class = "panel panel-default" >
< div class = "panel-heading" >
< h4 >
2018-05-06 19:55:50 +00:00
{% if object %}
Editing "{{ object.headline }}"
2018-08-04 11:45:52 +00:00
in "{{ object.category.headline }}"
2018-05-04 22:19:24 +00:00
{% else %}
Create Info Item
2018-08-04 11:45:52 +00:00
in "{{ category.headline }}"
2018-05-04 22:19:24 +00:00
{% endif %}
< / h4 >
< / div >
< div class = "panel-body" >
< form method = "POST" >
{% csrf_token %}
{% bootstrap_form form %}
2018-05-06 19:55:50 +00:00
< button type = "submit" class = "btn btn-primary" > {% if object.id %}Save{% else %}Create{% endif %}< / button >
{% if object %}
< a href = "{% url 'teams:info_item_delete' camp_slug=camp.slug team_slug=object.category.team.slug category_anchor=object.category.anchor item_anchor=object.anchor %}"
class="btn btn-danger">
< i class = "fa fa-remove" > < / i > Delete
< / a >
{% endif %}
2018-05-04 22:19:24 +00:00
< / form >
< / div >
2018-07-22 21:18:50 +00:00
< div class = "panel-footer" > < i > This info item belongs to the < a href = "{% url 'teams:general' team_slug=team.slug camp_slug=team.camp.slug %}" > {{ team.name }} Team< / a > < / i > < / div >
2018-05-04 22:19:24 +00:00
< / div >
{% endblock %}