Commit aa002a43 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Merge branch 'tc/new-template-events-registration' into 'master'

Migrate event registration information fields to new template

See merge request !999
parents 6c6cfae5 c3c1ea3c
{% extends "old-base.html" %}
{% load i18n static fieldtype %}
{% extends "base.html" %}
{% load i18n static bootstrap4 %}
{% block title %}{% trans "Registration" %} — {{ event.title }} — {% trans "Calendar" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Registration" %} — {{ event.title }} — {% trans "Calendar" %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% blocktrans with title=event.title %}Registration for {{ title }}{% endblocktrans %}</h1>
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }}">
{{ message }}
<button type="button" class="close"><span class="alert-icon-close"></span></button>
<section class="page-section">
<div class="container">
<h1 class="text-center section-title">{% blocktrans with title=event.title %}Registration for {{ title }}{% endblocktrans %}</h1>
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }} alert-dismissable">
{{ message }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endfor %}
{% endif %}
<form method="post" class="col-lg-6 offset-lg-3">
{% csrf_token %}
{% for field in form %}
{% bootstrap_field field %}
{% endfor %}
<input type="submit" value="{% trans 'Save' %}" class="btn btn-primary float-right"/>
</form>
</div>
{% endfor %}
{% endif %}
<form method="post" class="form-horizontal span8 offset2">
{% csrf_token %}
{% for field in form %}
<div class="control-group row {% if field.errors %}error{% endif %}">
<label class="control-label" for="{{ field.name }}">{{ field.label_tag }}</label>
<div class="controls">
{{ field }}
{% for error in field.errors %}
<span class="help-block">{{ error|escape }}</span>
{% endfor %}
<span class="help-block">{{ field.help_text|safe }}</span>
</div>
</div>
{% endfor %}
<input type="submit" value="{% trans "Save" %}" class="btn btn-style1 pull-right login" />
</form>
</section>
{% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment