Dashboard IE11 läuft
This commit is contained in:
parent
491c075eb6
commit
c94d0a2f0f
Binary file not shown.
Binary file not shown.
|
|
@ -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-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/done', views.registerdone, name='register-done')
|
||||
path('register/done', views.registerdone, name='register-done'),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -51,7 +51,6 @@ class StandardAddStandardEditor(forms.ModelForm):
|
|||
}
|
||||
fields = ['content']
|
||||
|
||||
|
||||
class StandardUpdateStandard(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
{% csrf_token %}
|
||||
{{normalForm|crispy}}
|
||||
{{editorForm.media}}
|
||||
{{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>
|
||||
{{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>
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-success" href="{% url 'standard-update' standard_id %} ">Aktualisieren</button>
|
||||
|
||||
|
|
@ -39,5 +39,6 @@ $("#id_area").change(function () {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{% endblock content %}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ def StandardAdd(request):
|
|||
editorForm = StandardAddStandardEditor(request.POST, instance=request.user)
|
||||
|
||||
if editorForm.is_valid() and normalForm.is_valid():
|
||||
print(request.POST)
|
||||
normalForm.agency = request.user.profile.agency
|
||||
normalForm.created_standard_by = request.user
|
||||
normalForm.created_standard_date = datetime.now()
|
||||
|
|
|
|||
|
|
@ -30,4 +30,4 @@ html h2 {
|
|||
html h1 {
|
||||
font-family: 'Roboto' !important;
|
||||
font-size: 2em;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,9 +28,6 @@
|
|||
<!--<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'>
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body id="page-top">
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
<div class="row" style="float: left;">
|
||||
|
||||
<div class="card mb-2 col-8">
|
||||
<div class="card-body">
|
||||
<div class="card d-block mb-2 mr-2 " style="width: 60%" >
|
||||
<div class="card-body" >
|
||||
<h5 class="card-title">News</h5>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
|
@ -30,14 +30,14 @@
|
|||
</table>
|
||||
</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">
|
||||
<img width="100%" src="{{ request.user.profile.agency.get_photo_url }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card mb-2 col-8">
|
||||
<div class="card d-block mb-2" style="width: 96%">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Neueste Standards</h5>
|
||||
<table class="table">
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@
|
|||
<legend class="border-bottom mb-4">
|
||||
<h2>Digitale Agentur - Login</h2>
|
||||
</legend>
|
||||
{{ form|crispy }}
|
||||
|
||||
{{ form|crispy }}
|
||||
</fieldset>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-success">Anmelden</button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue