mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Added missing fields to event form and detail
This commit is contained in:
@@ -84,4 +84,4 @@ class EventForm(forms.ModelForm):
|
|||||||
model = models.Event
|
model = models.Event
|
||||||
fields = ['is_rig', 'name', 'venue', 'start_date', 'start_time', 'end_date',
|
fields = ['is_rig', 'name', 'venue', 'start_date', 'start_time', 'end_date',
|
||||||
'end_time', 'meet_at', 'access_at', 'description', 'notes', 'mic',
|
'end_time', 'meet_at', 'access_at', 'description', 'notes', 'mic',
|
||||||
'person', 'organisation', 'dry_hire', 'based_on', 'checked_in_by']
|
'person', 'organisation', 'dry_hire', 'based_on', 'checked_in_by', 'status']
|
||||||
@@ -67,6 +67,9 @@
|
|||||||
<dt>Event MIC</dt>
|
<dt>Event MIC</dt>
|
||||||
<dd>{{ event.mic.name }}</dd>
|
<dd>{{ event.mic.name }}</dd>
|
||||||
|
|
||||||
|
<dt>Status</dt>
|
||||||
|
<dd>{{ event.get_status_display }}</dd>
|
||||||
|
|
||||||
<dd> </dd>
|
<dd> </dd>
|
||||||
|
|
||||||
{% if event.is_rig %}
|
{% if event.is_rig %}
|
||||||
@@ -101,6 +104,11 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
{% if event.dry_hire %}
|
||||||
|
<dt>Checked In By</dt>
|
||||||
|
<dd>{{ object.checked_in_by.name }}</dd>
|
||||||
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from django.core.exceptions import PermissionDenied
|
||||||
from django.http.response import HttpResponseRedirect
|
from django.http.response import HttpResponseRedirect
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
from django.core.urlresolvers import reverse_lazy
|
from django.core.urlresolvers import reverse_lazy
|
||||||
|
|||||||
Reference in New Issue
Block a user