<p>Welcome to the carpooling page! Here you can see all of the available seats of other people attending the con. Use the form below to report if you want to offer a ride yourself or are looking for one!</p>
<formaction=""method="post">
{% if error %}
<pclass="notice">⚠️ {{error}}</p>
{% endif %}
<section>
<labelfor="switch"><inputtype="checkbox"id="wants_carpool"name="wants_carpool"role="switch"onchange="document.getElementById('tripform').style.display = this.checked?'initial':'none';"{{'checked'iforder.carpooling_messageelse''}}> I need to carpool</label>
</section>
<divid="tripform"style="{{'display:none;' if not order.carpooling_message else ''}}">
<textareaid="message"name="message"style="height:10em;"placeholder="Write here your message"required>{{order.carpooling_message.message}}</textarea>
<small>Don't forget to write <strong>how you want to be contacted</strong>, how many seats are available, the estimated time of departure and what kind of baggage you allow. Also, perhaps time to plan the trip back?</small>
</div>
<!-- Button -->
<buttontype="submit">Save changes</button>
</form>
<hr/>
{% if not orders %}
<pstyle="text-align:center;">Nobody sharing a trip yet :(<br/>Check back later!</p>
{% endif %}
{% for o in orders %}
<blockquote>
<pstyle="margin-bottom:1em;"><strong>{{o.name}}</strong> {{'is offering' if o.carpooling_message.offer_or_need == 'offer' else 'needs'}} a trip from <strong>{{o.carpooling_message.from_location}}</strong> on the <strong>{{o.carpooling_message.day_departure[1:]}} of {{'May' if o.carpooling_message.day_departure[0] == 'm' else 'June'}}</strong>.</p>
<imgclass="propic propic-{{o.sponsorship}}"style="margin-top:0.5em;margin-right:1em;float:left;max-width:4em;"src="/res/propic/{{o.ans('propic') or 'default.png'}}"/>