0002-manually-generate-the-breadcrump-in-registration-tem.patch
src/authentic2/registration_backend/views.py | ||
---|---|---|
108 | 108 |
class RegistrationCompletionView(CreateView): |
109 | 109 |
model = get_user_model() |
110 | 110 |
success_url = 'auth_homepage' |
111 |
title = _('Registration completion') |
|
111 | 112 | |
112 | 113 |
def get_template_names(self): |
113 | 114 |
if self.users and not 'create' in self.request.GET: |
src/authentic2/templates/registration/registration_completion_choose.html | ||
---|---|---|
1 | 1 |
{% extends "authentic2/base-page.html" %} |
2 | 2 |
{% load i18n %} |
3 |
{% load breadcrumbs %} |
|
4 | 3 | |
5 | 4 |
{% block title %} |
6 | 5 |
{% trans "Registration" %} |
7 | 6 |
{% endblock %} |
8 | 7 | |
9 |
{% block breadcrumbs %}
|
|
8 |
{% block breadcrumb %} |
|
10 | 9 |
{{ block.super }} |
11 |
{% breadcrumb_url 'Register' %}
|
|
10 |
<a href="#">{{ view.title }}</a>
|
|
12 | 11 |
{% endblock %} |
13 | 12 | |
14 | 13 |
{% block content %} |
src/authentic2/templates/registration/registration_completion_form.html | ||
---|---|---|
1 | 1 |
{% extends "authentic2/base-page.html" %} |
2 | 2 |
{% load i18n %} |
3 |
{% load breadcrumbs %} |
|
4 | 3 | |
5 | 4 |
{% block title %} |
6 | 5 |
{% trans "Registration" %} |
7 | 6 |
{% endblock %} |
8 | 7 | |
9 |
{% block breadcrumbs %}
|
|
8 |
{% block breadcrumb %} |
|
10 | 9 |
{{ block.super }} |
11 |
{% breadcrumb_url 'Register' %}
|
|
10 |
<a href="#">{{ view.title }}</a>
|
|
12 | 11 |
{% endblock %} |
13 | 12 | |
14 | 13 |
{% block content %} |
src/authentic2/templates/registration/registration_form.html | ||
---|---|---|
5 | 5 |
{{ view.title }} |
6 | 6 |
{% endblock %} |
7 | 7 | |
8 |
{% load breadcrumbs %} |
|
9 |
{% block breadcrumbs %} |
|
8 |
{% block breadcrumb %} |
|
10 | 9 |
{{ block.super }} |
11 |
{% breadcrumb_url 'Register' %} |
|
10 |
<a href="#">{{ view.title }}</a> |
|
12 | 11 |
{% endblock %} |
13 | 12 | |
14 | 13 |
{% block content %} |
15 |
- |