2018-05-04 22:19:24 +00:00
{% extends 'base.html' %}
{% load commonmark %}
{% load bootstrap3 %}
{% block title %}
2018-05-06 19:55:50 +00:00
{% if object %}
Editing "{{ object.headline }}"
2018-05-04 22:19:24 +00:00
{% else %}
Create Info item
{% endif %}
2018-05-06 19:55:50 +00:00
in "{{ form.instance.category.headline }}"
2018-05-04 22:19:24 +00:00
{% endblock %}
{% block content %}
< div class = "panel panel-default" >
< div class = "panel-heading" >
< h4 >
2018-05-06 19:55:50 +00:00
{% if object %}
Editing "{{ object.headline }}"
2018-05-04 22:19:24 +00:00
{% else %}
Create Info Item
{% endif %}
2018-05-06 19:55:50 +00:00
in "{{ object.category.headline }}"
2018-05-04 22:19:24 +00:00
< / 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 >
< div class = "panel-footer" > < i > This info item belongs to the < a href = "{% url 'teams:detail' team_slug=team.slug camp_slug=team.camp.slug %}" > {{ team.name }} Team< / a > < / i > < / div >
< / div >
{% endblock %}