ii-assistent/hunter/templates/meetings.html

26 lines
1.2 KiB
HTML

{% extends 'base.html' %}
{% from 'macros.html' import page_header with context %}
{% block content %}
{{ page_header(t('meetings'), t('meeting_demo_form' if demo else 'meeting_hint')) }}
{% if demo %}<div class="demo-strip"><span class="badge demo">{{ t('demo') }}</span>{{ t('meeting_demo_hint') }}</div>{% endif %}
{% if result %}
<section class="panel stack" role="status">
<h2>{{ result.title }}</h2>
<p>{{ t('meeting_demo_result') }}</p>
<a href="{{ url_for('web.meetings') }}">{{ t('meeting_new') }}</a>
</section>
{% else %}
<section class="panel">
{% if error %}<p class="notice notice-error" role="alert">{{ t(error) }}</p>{% endif %}
<form method="post" class="stack">
<input type="hidden" name="csrf" value="{{ csrf }}">
<input type="hidden" name="key" value="{{ key }}">
<label>{{ t('meeting_title') }}<input name="title" value="{{ fields.title }}" maxlength="200" required></label>
<label>{{ t('meeting_start') }}<input name="start" type="datetime-local" value="{{ fields.start }}" required></label>
<label>{{ t('meeting_end') }}<input name="end" type="datetime-local" value="{{ fields.end }}" required></label>
<button class="button primary">{{ t('meeting_create') }}</button>
</form>
</section>
{% endif %}
{% endblock %}