Implemented the validation process.

This commit is contained in:
Tim Schumacher 2013-10-16 09:34:56 +02:00
parent 6ad4bcf303
commit 7945584655
10 changed files with 178 additions and 39 deletions

9
templates/email.de.twig Normal file
View file

@ -0,0 +1,9 @@
Hallo Benutzer,
bitte besuche folgende URL um dein Konto zu aktivieren:
https://bandenkrieg.hacked.jp/~tim/xmpp/{{ auth_token }}
mit freundlichen Grüßen
das Registrierungsformular

9
templates/email.en.twig Normal file
View file

@ -0,0 +1,9 @@
Hello user,
please visit the following url to activate your account:
https://bandenkrieg.hacked.jp/~tim/xmpp/{{ auth_token }}
with kind regards
the registration form

5
templates/error.twig Normal file
View file

@ -0,0 +1,5 @@
{% extends "layout.twig" %}
{% block content %}
<p>Bei der Registrierung ist etwas schief gelaufen. Bitte probiere es <a href="{{ url }}">noch einmal</a>.</p>
{% endblock %}

21
templates/layout.twig Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>{% trans %}Ein XMPP-Konto registrieren{% endtrans %}</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
{% block content %}{% endblock %}
</div>
</body>
</html>

View file

@ -1,20 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
{% extends "layout.twig" %}
<title>{% trans %}Ein XMPP-Konto registrieren{% endtrans %}</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
{% block content %}
<form class="form-horizontal" method="post">
<fieldset>
@ -47,7 +33,9 @@
<div class="controls">
<select id="host" name="host" class="input-xlarge" required="">
<option></option>
<option>krautspace.de</option>
{% for host in hosts %}
<option>{{ host }}</option>
{% endfor %}
</select>
<p class="help-block">{% trans %}Wähle hier einen Servernamen aus. Deine XMPP-ID ist dann <span class="xmpp-id-preview">Benutzername@Servername</span>{% endtrans %}</p>
</div>
@ -91,6 +79,4 @@
</fieldset>
</form>
</div>
</body>
</html>
{% endblock %}

14
templates/success.twig Normal file
View file

@ -0,0 +1,14 @@
{% extends "layout.twig" %}
{% block content %}
<form class="form-horizontal" method="post">
<fieldset>
<!-- Form Name -->
<legend>{% trans %}Ein XMPP-Konto registrieren{% endtrans %}</legend>
<p>{% trans %}Vielen Dank für deine Registrierung. Dir wurde eine E-Mail mit einem aktivierungs Link zugeschickt.{% endtrans %}</p>
</fieldset>
</form>
{% endblock %}

View file

@ -0,0 +1,5 @@
{% extends "layout.twig" %}
{% block content %}
<p>{% trans %}Der angegebene Token wurde nicht gefunden{% endtrans %}</p>
{% endblock %}

5
templates/welcome.twig Normal file
View file

@ -0,0 +1,5 @@
{% extends "layout.twig" %}
{% block content %}
<p>{% trans %}Herzlich Willkommen {{ jid }}! {% endtrans %}</p>
{% endblock %}