You've been added as a crew chief to the event {{ ccinstance.event.event_name }}.
- You have signed up to be crew chief for {{ ccinstance.category }},
- with your setup starting on {{ ccinstance.setup_start }} in the {{ ccinstance.setup_location }}.
Please note that the attached Workorder PDF contains all services relating to the event, not just your assigned service.
@@ -24,7 +24,9 @@ {{ ccinstance.event.location }}Start: {{ ccinstance.event.datetime_start }}
End: {{ ccinstance.event.datetime_end }}
+ {% if ccinstance.setup_start %} Setup start: {{ ccinstance.setup_start }}
+ {% endif %} Setup complete: {{ ccinstance.event.datetime_setup_complete }}
See full details of this event here.
diff --git a/site_tmpl/emails/email_ccadd.txt b/site_tmpl/emails/email_ccadd.txt index 79d68c2c..9c4d1d14 100644 --- a/site_tmpl/emails/email_ccadd.txt +++ b/site_tmpl/emails/email_ccadd.txt @@ -3,7 +3,7 @@ {{ subject }} You've been added as a crew chief to the event {{ ccinstance.event.event_name }}. -You have signed up to be crew chief for {{ ccinstance.category }}, with your setup starting on {{ ccinstance.setup_start }} in the {{ ccinstance.setup_location }}. +You have signed up to be crew chief for {{ ccinstance.category }}{% if ccinstance.setup_start %}, with your setup starting on {{ ccinstance.setup_start }} in the {{ ccinstance.setup_location }}{% endif %}. Please note that the attached Workorder PDF contains all services relating to the event, not just your assigned service. diff --git a/site_tmpl/events_public.html b/site_tmpl/events_public.html index 9c0c72a3..96685cd5 100644 --- a/site_tmpl/events_public.html +++ b/site_tmpl/events_public.html @@ -155,12 +155,16 @@Ongoing and Future Events
+ {% endif %} {% endfor %}
+ {% endif %} {% endfor %}
Crew Chiefs for "{{ event }}"
{{ formset.management_form }}| Setup Location | -Setup Time | +Crew Chief | + {#Setup Location | #} + {#Setup Time | #} {% if oldevent %}Service | {% else %}Category | {% endif %} -Crew Chief | +Position | Delete? | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {% for e in form.setup_location.errors %} {{ e }} {% endfor %} | -{% for e in form.setup_start.errors %} {{ e }} {% endfor %} | +{% for e in form.crew_chief.errors %} {{ e }} {% endfor %} + {# | {% for e in form.setup_location.errors %} {{ e }} {% endfor %} | #} + {#{% for e in form.setup_start.errors %} {{ e }} {% endfor %} | #} {% if oldevent %}{% for e in form.service.errors %} {{ e }} {% endfor %} | {% else %}{% for e in form.category.errors %} {{ e }} {% endfor %} | {% endif %} -{% for e in form.crew_chief.errors %} {{ e }} {% endfor %} | +{% for e in form.position.errors %} {{ e }} {% endfor %} | {% for e in form.DELETE.errors %} {{ e }} {% endfor %} | ||||
| {{ form.id }}{{ form.setup_location }} | -{{ form.setup_start }} | +{{ form.id }}{{ form.crew_chief }} | + {#{{ form.id }}{{ form.setup_location }} | #} + {#{{ form.setup_start }} | #} {% if oldevent %}{{ form.service }} | {% else %}{{ form.category }} | {% endif %} -{{ form.crew_chief }} | +{{ form.position }} | {{ form.DELETE }} | ${{ service_instance.cost }} | {% endfor %} + {% endif %} + {% if event.extrainstance_set.exists %} {% for extra_instance in event.extrainstance_set.all %}|||
| {{ extra_instance }} x{{ extra_instance.quant }} | diff --git a/site_tmpl/uglydetail.html b/site_tmpl/uglydetail.html index 51e3d59d..5509b0b0 100644 --- a/site_tmpl/uglydetail.html +++ b/site_tmpl/uglydetail.html @@ -556,23 +556,31 @@
| Name | -Setup Location | -Setup Time | + {% if has_cc_setup_times_or_locations %} +Setup Location | +Setup Time | + {% endif %}Category | +Position |
|---|---|---|---|---|---|---|
| {{ cc.crew_chief.get_full_name }} | + {% if has_cc_setup_times_or_locations %} ++ {{ cc.setup_location }} + | ++ {{ cc.setup_start }} + | + {% endif %}- {{ cc.setup_location }} - | -- {{ cc.setup_start }} + {{ cc.category }} | - {{ cc.category }} + {{ cc.position }} | {% endfor %}
Crew
{% permission request.user has 'events.view_event_reports' of event %}Reports
{% for report in event.ccreport_set.all %}Report by {{report.crew_chief }}
@@ -608,14 +614,12 @@Report by {{report.crew_chief }}
{% if report.created_on != report.updated_on %} Last Updated: {{ report.updated_on }} {% endif %} - {% if not event.closed %} - {% permission request.user has 'events.change_ccreport' of report %} - [Edit] - {% endpermission %} - {% permission request.user has 'events.delete_ccreport' of report %} - [Delete] - {% endpermission %} - {% endif %} + {% permission request.user has 'events.change_ccreport' of report %} + [Edit] + {% endpermission %} + {% permission request.user has 'events.delete_ccreport' of report %} + [Delete] + {% endpermission %}diff --git a/slack/views.py b/slack/views.py index 163eb770..53097d50 100644 --- a/slack/views.py +++ b/slack/views.py @@ -677,9 +677,9 @@ def cc_add_notification(cci): "type": "section", "text": { "type": "mrkdwn", - "text": "You've been added as a crew chief to the event *%s*. Your setup is currently scheduled for " + "text": "You've been added as a crew chief to the event *%s*." + "Your setup is currently scheduled for " "*%s* in the *%s*." % (cci.event.event_name, cci.setup_start.strftime('%b %-d, %Y at %-I:%M %p'), - cci.setup_location.name.strip()) + cci.setup_location.name.strip()) if cci.setup_start and cci.setup_location else "" } }, {