guild-journal/guild/templates/guild/adventure_detail.html

60 lines
1.7 KiB
HTML

{% extends 'base.html' %}
{% load guild_extras %}
{% block content %}
<div class="row">
<div class="column column-75">
<h1>Adventure: {{ adventure.name }}</h1>
</div>
<div class="column">
<a class="button button-outline" href="{% url 'guild:adventure_update' adventure.id %}">Edit</a>
</div>
<div class="column">
<a class="button button-clear" href="{% url 'guild:adventure_delete' adventure.id %}">Delete</a>
</div>
</div>
<p>{{adventure.description|md|safe}}</p>
<div class="row">
<div class="column column-75">
<h2>Sessions</h2>
</div>
<div class="column">
<a class="button" style="float:right" href="{% url 'guild:create_playsession' adventure.id %}">Add new Session</a>
</div>
</div>
{% if not adventure.playsession_set.count %}
<p>No sessions yet.</p>
{% else %}
{% for playsession in adventure.playsession_set.all %}
<div class="row section-line">
<h3 class="column column-75 section-item">{{ playsession.date }}</h3>
<a class="column button button-outline section-item" href="{% url 'guild:playsession_update' adventure.id playsession.id %}">Edit</a>
<a class="column button button-clear section-item" href="{% url 'guild:playsession_delete' adventure.id playsession.id %}">Delete</a>
</div>
<h4>Characters</h4>
<ul>
{% for character in playsession.characters.all %}
<li>{{character.name}}</li>
{% endfor %}
</ul>
<h4>Summary</h4>
<p>{{playsession.summary|md|safe}}</p>
<hr>
{% endfor %}
{% endif %}
{% endblock content %}