mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
59 lines
1.6 KiB
HTML
59 lines
1.6 KiB
HTML
{% extends "layout.html" %}
|
|
{% from "_macros.html" import render_base_image_form_section, render_google_place_autocomplete_header, render_google_place_autocomplete_field, render_field_with_errors, render_field %}
|
|
|
|
{% block header %}
|
|
{{ render_google_place_autocomplete_header(True) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ _('Create organizer') }}</h1>
|
|
<form action="" method="POST" enctype="multipart/form-data">
|
|
{{ form.hidden_tag() }}
|
|
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
{{ _('Organizer') }}
|
|
</div>
|
|
<div class="card-body">
|
|
{{ render_field_with_errors(form.name) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
{{ _('Location') }}
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
{{ render_google_place_autocomplete_field() }}
|
|
|
|
{{ form.location.hidden_tag() }}
|
|
{{ render_field_with_errors(form.location.street) }}
|
|
{{ render_field_with_errors(form.location.postalCode) }}
|
|
{{ render_field_with_errors(form.location.city) }}
|
|
{{ render_field_with_errors(form.location.state) }}
|
|
{{ render_field_with_errors(form.location.latitude) }}
|
|
{{ render_field_with_errors(form.location.longitude) }}
|
|
</div>
|
|
</div>
|
|
|
|
{{ render_base_image_form_section(form.logo) }}
|
|
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
{{ _('Additional information') }}
|
|
</div>
|
|
<div class="card-body">
|
|
{{ render_field_with_errors(form.url) }}
|
|
{{ render_field_with_errors(form.email) }}
|
|
{{ render_field_with_errors(form.phone) }}
|
|
{{ render_field_with_errors(form.fax) }}
|
|
</div>
|
|
</div>
|
|
|
|
{{ render_field(form.submit) }}
|
|
</form>
|
|
|
|
{% endblock %}
|