{% extends 'xsd_trips/base.html' %} {% load markdown %} {% load widget_tweaks %} {% block trips_content %}
{% csrf_token %} {% with WIDGET_ERROR_CLASS='form-control-danger' WIDGET_REQUIRED_CLASS='my_required' %}

{% if trip.pk %}{{ trip.uid }} | {% endif %} {% render_field form.name class+="form-control form-control-lg" placeholder="Trip Name" %}

{% for error in form.name.errors %}
{% endfor %}
{% include 'xsd_trips/edit_buttons.html' %}
{% if trip.pk %}
Organiser
Avatar {{ trip.owner }}
State
{{ trip.get_state_display }}
{% endif %} {% include 'xsd_trips/edit_field.html' with field=form.date_start %} {% include 'xsd_trips/edit_field.html' with field=form.date_end %} {% include 'xsd_trips/edit_field.html' with field=form.cost %} {% include 'xsd_trips/edit_field.html' with field=form.spaces %} {% include 'xsd_trips/edit_field.html' with field=form.max_depth %} {% include 'xsd_trips/edit_field.html' with field=form.min_qual %}
{% render_field form.description class+="form-control" placeholder="Description" %}

Styling with Markdown is supported.

{% endwith %} {% include 'xsd_trips/edit_buttons.html' %}
{% endblock %}