mirror of
https://github.com/chibicitiberiu/ytsm.git
synced 2024-02-24 05:43:31 +00:00
Added setup errors banner to welcome page.
This commit is contained in:
parent
21a05614f2
commit
457b0c4dc9
@ -4,6 +4,9 @@
|
||||
{% block body %}
|
||||
|
||||
<div class="container">
|
||||
|
||||
{% include "YtManagerApp/controls/setup_errors_banner.html" %}
|
||||
|
||||
<h1>Welcome</h1>
|
||||
<p>This wizard will guide you through setting up the application.</p>
|
||||
{% crispy form %}
|
||||
|
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'YtManagerApp/index_errors_banner.html' %}
|
||||
{% include 'YtManagerApp/controls/setup_errors_banner.html' %}
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
{% block body %}
|
||||
|
||||
{% include 'YtManagerApp/index_errors_banner.html' %}
|
||||
{% include 'YtManagerApp/controls/setup_errors_banner.html' %}
|
||||
|
||||
<h1>Hello</h1>
|
||||
<h2>Please log in to continue</h2>
|
||||
|
@ -1,5 +1,6 @@
|
||||
import logging
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.auth import authenticate, login
|
||||
from django.contrib.auth.models import User
|
||||
from django.http import HttpResponseForbidden
|
||||
@ -44,6 +45,14 @@ class Step0WelcomeView(WizardStepMixin, FormView):
|
||||
form_class = WelcomeForm
|
||||
success_url = reverse_lazy('first_time_1')
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context.update({
|
||||
'config_errors': settings.CONFIG_ERRORS,
|
||||
'config_warnings': settings.CONFIG_WARNINGS,
|
||||
})
|
||||
return context
|
||||
|
||||
|
||||
#
|
||||
# Step 1: setup API key
|
||||
|
Loading…
Reference in New Issue
Block a user