Tidy up after a long absence
This commit is contained in:
parent
3931d2ccbd
commit
fea7c0eeb9
28 changed files with 2444 additions and 376 deletions
21
gurps_character/templates/campaigns/details.html
Normal file
21
gurps_character/templates/campaigns/details.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>{{ campaign.name }}</h1>
|
||||
|
||||
<h2>Players</h2>
|
||||
|
||||
<ul>
|
||||
{% for player in campaign.campaignplayer_set.all %}
|
||||
<li><a href="#">{{ player }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<h2>Characters</h2>
|
||||
<ul>
|
||||
{% for character in campaign.gurpscharacter_set.all %}
|
||||
<a href="#">{{ character.name }} </a>[ <a href="#"> {{ character.player.user.get_full_name }} </a>]
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
18
gurps_character/templates/campaigns/list.html
Normal file
18
gurps_character/templates/campaigns/list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for campaign in campaign %}
|
||||
<li>
|
||||
<a href="{% url 'details' character.uuid %}">{{ character.name }}</a>
|
||||
<a href="{% url 'download' character.uuid %}">Download</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<a href="{% url 'upload' %}">Upload new character</a>
|
||||
<form method="POST" enctype="multipart/form-data" action="{% url 'index' %}">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<input type="submit" value="Upload">
|
||||
</form>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue