Permalink
Browse files

New design - 2 area pages needed fixing.

  • Loading branch information...
jarofgreen committed Nov 4, 2016
1 parent 14781b6 commit adfd8e96f70e08d2e2cce40b7de7cdacd6e49222
@@ -18,35 +18,39 @@
{% block innerContent %}
{% if currentUserActions.has("org.openacalendar","eventNew") %}
<p>Is this an event?</p>
<form method="get" action="/event/new?area={{ area.slug }}">
<div class="bigSubmitActionWrapper"><input type="submit" value="New Event" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
</form>
{% endif %}
{% if currentUserActions.has("org.openacalendar","actionAreaNew") %}
<P>Is this an area with several venues?</P>
{% include 'site/common/areaList.html.twig' with { 'areasToList':childAreas} %}
<form method="get" action="/area/{{ area.slugForUrl }}/newArea">
<div class="bigSubmitActionWrapper"><input type="submit" value="New Area" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
</form>
{% endif %}
{% if currentUserActions.has("org.openacalendar","venueNew") %}
<p>Is this a distinct venues with events?</P>
<form method="get" action="/venue/new/">
<input type="hidden" name="area_id" value="{{ area.slug }}">
<div class="bigSubmitActionWrapper"><input type="submit" value="New Venue" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
</form>
{% endif %}
<div class="contentMain">
{% if currentUserActions.has("org.openacalendar","eventNew") %}
<p>Is this an event?</p>
<form method="get" action="/event/new?area={{ area.slug }}">
<div class="bigSubmitActionWrapper"><input type="submit" value="New Event" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
</form>
{% endif %}
{% if currentUserActions.has("org.openacalendar","actionAreaNew") %}
<P>Is this an area with several venues?</P>
{% include 'site/common/areaList.html.twig' with { 'areasToList':childAreas} %}
<form method="get" action="/area/{{ area.slugForUrl }}/newArea">
<div class="bigSubmitActionWrapper"><input type="submit" value="New Area" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
</form>
{% endif %}
{% if currentUserActions.has("org.openacalendar","venueNew") %}
<p>Is this a distinct venues with events?</P>
<form method="get" action="/venue/new/">
<input type="hidden" name="area_id" value="{{ area.slug }}">
<div class="bigSubmitActionWrapper"><input type="submit" value="New Venue" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
</form>
{% endif %}
</div>
{% endblock %}
@@ -17,18 +17,22 @@
{% block innerContent %}
<form action="#" method="post" class="styled">
<div class="contentMain">
{{ form_errors(form) }}
<form action="#" method="post" class="styled">
{{ form_row(form.title) }}
{{ form_row(form.description) }}
{{ form_rest(form) }}
{{ form_errors(form) }}
<div class="bigSubmitActionWrapper"><input type="submit" value="Save" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
{{ form_row(form.title) }}
{{ form_row(form.description) }}
{{ form_rest(form) }}
</form>
<div class="bigSubmitActionWrapper"><input type="submit" value="Save" class="bigSubmitAction"/></div>
<div class="afterBigSubmitActionWrapper"></div>
</form>
</div>
{% endblock %}

0 comments on commit adfd8e9

Please sign in to comment.