datentrog/template/event.tpl

38 lines
2.1 KiB
Smarty
Raw Normal View History

2021-11-09 16:39:36 +00:00
% rebase('template/toplevel.tpl', title=event)
% if get("success", False):
<p>Erfolgreich registriert.</p>
<form method="get">
<button type="submit" class="btn btn-primary">Weitere Person registrieren</button>
</form>
% else:
<p>Die Daten werden nach 1 Monat gelöscht und ausschließlich zur Corona-Kontaktverfolgung verwendet.</p>
<form method="post" autocomplete="on">
<div class="form-group">
<label for="event">Veranstaltung:</label>
<input id="event" class="form-control" name="event" value="{{ get("event", "Heizhaus") }}" readonly>
</div>
<div class="form-group {{ ("has-success" if get("name", False) else "has-error") + " has-feedback" if get("feedback", False) else "" }}">
<label for="name">Name, Vorname:</label>
<input id="name" class="form-control" placeholder="Söder, Markus" name="name" value="{{ get("name", "") }}">
% if get("feedback", False):
<span class="glyphicon {{ "glyphicon-ok" if get("name", False) else "glyphicon-remove" }} form-control-feedback"></span>
% end
</div>
<div class="form-group {{ ("has-success" if get("address", False) else "has-error") + " has-feedback" if get("feedback", False) else "" }}">
<label for="address">Adresse:</label>
<input id="address" class="form-control" placeholder="Jakobstraße 46, 90402 Nürnberg" name="address" value="{{ get("address", "") }}">
% if get("feedback", False):
<span class="glyphicon {{ "glyphicon-ok" if get("address", False) else "glyphicon-remove" }} form-control-feedback"></span>
% end
</div>
<div class="form-group {{ ("has-success" if get("contact", False) else "has-error") + " has-feedback" if get("feedback", False) else "" }}">
<label for="contact">Email/Telefon:</label>
<input id="contact" class="form-control" placeholder="markus.soeder@soeder.de" name="contact" value="{{ get("contact", "") }}">
% if get("feedback", False):
<span class="glyphicon {{ "glyphicon-ok" if get("contact", False) else "glyphicon-remove" }} form-control-feedback"></span>
% end
</div>
<button type="submit" class="btn btn-success">Registrieren</button>
</form>
% end