forked from beba/foerderbarometer
renamed blocks to applications
This commit is contained in:
parent
d527a99a6d
commit
a55b5f26d9
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends "input/base.html" %}
|
{% extends 'input/base.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-request">Was möchtest du beantragen?</th>
|
<th class="col-request">Was möchtest du beantragen?</th>
|
||||||
<td>
|
<td>
|
||||||
{% for title, services in blocks %}
|
{% for title, services in applications %}
|
||||||
<strong>{{ title }}</strong>
|
<strong>{{ title }}</strong>
|
||||||
<ul>
|
<ul>
|
||||||
{% for service in services %}
|
{% for service in services %}
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ SERVICES = [
|
||||||
ApplicationType(TYPE_VIS, 'visitenkarten', BusinessCardForm, 'E-Mail-Adressen_und_Visitenkarten#Visitenkarten'),
|
ApplicationType(TYPE_VIS, 'visitenkarten', BusinessCardForm, 'E-Mail-Adressen_und_Visitenkarten#Visitenkarten'),
|
||||||
]
|
]
|
||||||
|
|
||||||
BLOCKS = [
|
APPLICATIONS = [
|
||||||
('Projektförderung', PROJECT_FUNDING),
|
('Projektförderung', PROJECT_FUNDING),
|
||||||
('Serviceleistungen', SERVICES),
|
('Serviceleistungen', SERVICES),
|
||||||
]
|
]
|
||||||
|
|
@ -163,7 +163,7 @@ def index(request):
|
||||||
|
|
||||||
class ApplicationStartView(TemplateView):
|
class ApplicationStartView(TemplateView):
|
||||||
template_name = 'input/forms/extern.html'
|
template_name = 'input/forms/extern.html'
|
||||||
extra_context = {'blocks': BLOCKS}
|
extra_context = {'applications': APPLICATIONS}
|
||||||
|
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
if url := request.POST.get('url'):
|
if url := request.POST.get('url'):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue