|
| 1 | +{% extends 'master.html' %} |
| 2 | +{% load i18n button_tags card_tags map_tags form_tags grid_tags icon_tags string_tags link_tags %} |
| 3 | + |
| 4 | +{% block content %} |
| 5 | + <div class="plan-create plan-template"> |
| 6 | + <div class="plan-template__header"> |
| 7 | + <h1>{% trans "Start een nieuwe samenwerking" %}</h1> |
| 8 | + <div class="plan-template__row choice-list--single"> |
| 9 | + <div class="label radio"> |
| 10 | + {% button href="collaborate:plan_choose_template" text=_("Gebruik sjabloon") primary=True transparent=True extra_classes="link--bold" icon="insert_drive_file" icon_outlined=True %} |
| 11 | + </div> |
| 12 | + </div> |
| 13 | + </div> |
| 14 | + |
| 15 | + {% render_grid %} |
| 16 | + {% render_column start=3 span=7 %} |
| 17 | + {% optional_paragraph configurable_text.plans_page.plans_intro %} |
| 18 | + |
| 19 | + {% if request.user.get_active_contacts %} |
| 20 | + {% render_form id="plan-form" form=form method="POST" %} |
| 21 | + {% csrf_token %} |
| 22 | + {% input form.title %} |
| 23 | + {% input form.goal %} |
| 24 | + {% input form.description %} |
| 25 | + |
| 26 | + {% date_field form.end_date icon="today" icon_position="after" %} |
| 27 | + {% checkboxes form.plan_contacts %} |
| 28 | + |
| 29 | + |
| 30 | + <div class="plan-template"> |
| 31 | + <div class="label plan-template__row radio"> |
| 32 | + <div> |
| 33 | + <input class="radio__input" type="radio" name="template" value="" id="id_template_0" {% if not form.data.template %}checked{% endif %}> |
| 34 | + <label class="radio__label" for="id_template_0">Geen template</label> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + |
| 39 | + {% if form.template.errors %} |
| 40 | + {% errors errors=form.template.errors %} |
| 41 | + {% endif %} |
| 42 | + </div> |
| 43 | + <div class="form__actions form__actions--fullwidth"> |
| 44 | + {% button text=_("Maak samenwerking aan") primary=True type="submit" %} |
| 45 | + {% button href="collaborate:plan_list" icon="west" text=_("Terug naar Mijn samenwerkingen") icon_outlined=True transparent=True %} |
| 46 | + </div> |
| 47 | + {% endrender_form %} |
| 48 | + {% else %} |
| 49 | + <div class="utrecht-paragraph"> |
| 50 | + {% url 'profile:contact_create' as contact_create %} |
| 51 | + {% link href=contact_create text=_("Maak je eerste contact aan voordat je een samenwerking start") icon="arrow_forward" icon_position="after" primary=True %} |
| 52 | + </div> |
| 53 | + {% endif %} |
| 54 | + |
| 55 | + {% endrender_column %} |
| 56 | + {% endrender_grid %} |
| 57 | + |
| 58 | +{% endblock %} |
0 commit comments