Add rig collected by information issue #25

This commit is contained in:
tomtom5152
2015-03-28 17:11:23 +00:00
parent 83ae129d72
commit ff0d703af5
4 changed files with 14 additions and 2 deletions

View File

@@ -89,4 +89,4 @@ class EventForm(forms.ModelForm):
model = models.Event
fields = ['is_rig', 'name', 'venue', 'start_date', 'start_time', 'end_date',
'end_time', 'meet_at', 'access_at', 'description', 'notes', 'mic',
'person', 'organisation', 'dry_hire', 'checked_in_by', 'status']
'person', 'organisation', 'dry_hire', 'checked_in_by', 'status', 'collector']

View File

@@ -246,7 +246,7 @@ class Event(models.Model, RevisionMixin):
payment_method = models.CharField(max_length=255, blank=True, null=True)
payment_received = models.CharField(max_length=255, blank=True, null=True)
purchase_order = models.CharField(max_length=255, blank=True, null=True)
collector = models.CharField(max_length=255, blank=True, null=True)
collector = models.CharField(max_length=255, blank=True, null=True, verbose_name='Collected By')
# Calculated values
"""

View File

@@ -113,6 +113,9 @@
<dt>Checked In By</dt>
<dd>{{ object.checked_in_by.name }}</dd>
{% endif %}
<dt>Collected By</dt>
<dd>{{ object.collector }}</dd>
</dl>
</div>
</div>

View File

@@ -347,6 +347,15 @@
</div>
</div>
{% endif %}
<div class="form-group">
<label for="{{ form.collector.id_for_label }}"
class="col-sm-4 control-label">{{ form.collector.label }}</label>
<div class="col-sm-8">
{% render_field form.collector class+="form-control" %}
</div>
</div>
</div>
</div>
</div>