Merge pull request #155 from orbitroom/master

Added TCU Structure to Timer Board
This commit is contained in:
Adarnof 2016-01-02 00:38:56 -05:00
commit 96aa5ede71
2 changed files with 12 additions and 2 deletions

View File

@ -94,6 +94,11 @@
Station
</div>
{% endifequal %}
{% ifequal closest_timer.structure "TCU" %}
<div class="label label-danger">
TCU
</div>
{% endifequal %}
{% ifequal closest_timer.structure "Other" %}
<div class="label label-default">
Other
@ -188,6 +193,11 @@
<div class="label label-danger">
Station
</div>
{% endifequal %}
{% ifequal timer.structure "TCU" %}
<div class="label label-danger">
TCU
</div>
{% endifequal %}
{% ifequal timer.structure "Other" %}
<div class="label label-default">

View File

@ -5,7 +5,7 @@ from django.core.validators import MaxValueValidator, MinValueValidator
class TimerForm(forms.Form):
structure_choices = [('POCO', 'POCO'), ('I-HUB', 'I-HUB'), ('POS[S]', 'POS[S]'),
('POS[M]', 'POS[M]'), ('POS[L]', 'POS[L]'), ('Station', 'Station'), ('Other', 'Other')]
('POS[M]', 'POS[M]'), ('POS[L]', 'POS[L]'), ('Station', 'Station'), ('TCU', 'TCU'), ('Other', 'Other')]
objective_choices = [('Friendly', 'Friendly'), ('Hostile', 'Hostile'), ('Neutral', 'Neutral')]
details = forms.CharField(max_length=254, required=True, label='Details')