Dashboard IE11 läuft

This commit is contained in:
holger.trampe 2019-12-16 08:55:51 +01:00
parent 491c075eb6
commit c94d0a2f0f
13 changed files with 11 additions and 14 deletions

View File

@ -37,7 +37,7 @@ urlpatterns = [
path('password-reset-confirm/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(template_name='users/password_reset_confirm.html'), name='password_reset_confirm'), path('password-reset-confirm/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(template_name='users/password_reset_confirm.html'), name='password_reset_confirm'),
path('password-reset-complete/', auth_views.PasswordResetCompleteView.as_view(template_name='users/password_reset_complete.html'), name='password_reset_complete'), path('password-reset-complete/', auth_views.PasswordResetCompleteView.as_view(template_name='users/password_reset_complete.html'), name='password_reset_complete'),
path('register/', AgencyCreateView.as_view(template_name='users/register.html'), name='register'), path('register/', AgencyCreateView.as_view(template_name='users/register.html'), name='register'),
path('register/done', views.registerdone, name='register-done') path('register/done', views.registerdone, name='register-done'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
if settings.DEBUG: if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

View File

@ -51,7 +51,6 @@ class StandardAddStandardEditor(forms.ModelForm):
} }
fields = ['content'] fields = ['content']
class StandardUpdateStandard(forms.ModelForm): class StandardUpdateStandard(forms.ModelForm):
class Meta: class Meta:

View File

@ -8,8 +8,8 @@
{% csrf_token %} {% csrf_token %}
{{normalForm|crispy}} {{normalForm|crispy}}
{{editorForm.media}} {{editorForm.media}}
{{editorForm}} {{editorForm}}
<p>Wenn ein Standard bearbeitet wurde, kann er nur von einer Person mit dem Recht <i>Standards bearbeiten und freischalten</i> wieder veröffentlicht werden. Ein Standard wird nach Bearbeitung als <i>Nicht veröffentlicht</i> gesetzt.</p> <p>Wenn ein Standard bearbeitet wurde, kann er nur von einer Person mit dem Recht <i>Standards bearbeiten und freischalten</i> wieder veröffentlicht werden. Ein Standard wird nach Bearbeitung als <i>Nicht veröffentlicht</i> gesetzt.</p>
<hr> <hr>
<button type="submit" class="btn btn-success" href="{% url 'standard-update' standard_id %} ">Aktualisieren</button>&nbsp; <button type="submit" class="btn btn-success" href="{% url 'standard-update' standard_id %} ">Aktualisieren</button>&nbsp;
@ -39,5 +39,6 @@ $("#id_area").change(function () {
} }
}); });
}); });
</script> </script>
{% endblock content %} {% endblock content %}

View File

@ -35,6 +35,7 @@ def StandardAdd(request):
editorForm = StandardAddStandardEditor(request.POST, instance=request.user) editorForm = StandardAddStandardEditor(request.POST, instance=request.user)
if editorForm.is_valid() and normalForm.is_valid(): if editorForm.is_valid() and normalForm.is_valid():
print(request.POST)
normalForm.agency = request.user.profile.agency normalForm.agency = request.user.profile.agency
normalForm.created_standard_by = request.user normalForm.created_standard_by = request.user
normalForm.created_standard_date = datetime.now() normalForm.created_standard_date = datetime.now()

View File

@ -30,4 +30,4 @@ html h2 {
html h1 { html h1 {
font-family: 'Roboto' !important; font-family: 'Roboto' !important;
font-size: 2em; font-size: 2em;
} }

View File

@ -28,9 +28,6 @@
<!--<link href="{%static 'users/css/bootstrap.min.css' %}" rel="stylesheet">--> <!--<link href="{%static 'users/css/bootstrap.min.css' %}" rel="stylesheet">-->
<link href='https://fonts.googleapis.com/css?family=Roboto&display=swap' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Roboto&display=swap' rel='stylesheet' type='text/css'>
</head> </head>
<body id="page-top"> <body id="page-top">

View File

@ -9,8 +9,8 @@
<div class="row" style="float: left;"> <div class="row" style="float: left;">
<div class="card mb-2 col-8"> <div class="card d-block mb-2 mr-2 " style="width: 60%" >
<div class="card-body"> <div class="card-body" >
<h5 class="card-title">News</h5> <h5 class="card-title">News</h5>
<table class="table"> <table class="table">
<thead> <thead>
@ -30,14 +30,14 @@
</table> </table>
</div> </div>
</div> </div>
<div class="card ml-2 mb-2 col-3"> <div class="card d-block mb-2" style="width: 35%">
<div class="card-body"> <div class="card-body">
<img width="100%" src="{{ request.user.profile.agency.get_photo_url }}"> <img width="100%" src="{{ request.user.profile.agency.get_photo_url }}">
</div> </div>
</div> </div>
<div class="card mb-2 col-8"> <div class="card d-block mb-2" style="width: 96%">
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Neueste Standards</h5> <h5 class="card-title">Neueste Standards</h5>
<table class="table"> <table class="table">

View File

@ -9,8 +9,7 @@
<legend class="border-bottom mb-4"> <legend class="border-bottom mb-4">
<h2>Digitale Agentur - Login</h2> <h2>Digitale Agentur - Login</h2>
</legend> </legend>
{{ form|crispy }} {{ form|crispy }}
</fieldset> </fieldset>
<div class="form-group"> <div class="form-group">
<button type="submit" class="btn btn-success">Anmelden</button> <button type="submit" class="btn btn-success">Anmelden</button>