code editing
This commit is contained in:
parent
ac9f9f782c
commit
84ea0b4d08
@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
@ -8,6 +9,7 @@
|
|||||||
<link href="{% static 'css/mysite.css' %}" rel="stylesheet">
|
<link href="{% static 'css/mysite.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'bootstrap/css/bootstrap.css' %}" rel="stylesheet">
|
<link href="{% static 'bootstrap/css/bootstrap.css' %}" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
||||||
@ -18,8 +20,8 @@
|
|||||||
<img src="{% static 'images/efi.jpg' %}" width="35" height="35" alt="efi">
|
<img src="{% static 'images/efi.jpg' %}" width="35" height="35" alt="efi">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
||||||
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@ -29,10 +31,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url 'admin:index' %}">Administration</a>
|
<a class="nav-link" href="{% url 'admin:index' %}">Administration</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %} {% if user.is_staff %}
|
||||||
{% if user.is_staff %}
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url 'studis:index' %}">Stammdaten</a>
|
<a class="nav-link" href="{% url 'studis:index' %}">Stammdaten von</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
@ -48,15 +49,14 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a id="login-button" href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
|
<a id="login-button" href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
|
||||||
Anmelden<span class="caret"></span>
|
Anmelden
|
||||||
|
<span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
<ul id="login-dp" class="dropdown-menu">
|
<ul id="login-dp" class="dropdown-menu">
|
||||||
<li>
|
<li>
|
||||||
<form class="form" role="form" method="post" action="{% url 'login' %}" accept-charset="UTF-8" id="login-nav">
|
<form class="form" role="form" method="post" action="{% url 'login' %}" accept-charset="UTF-8" id="login-nav">
|
||||||
{% csrf_token %}
|
{% csrf_token %} {% if next %}
|
||||||
{% if next %}
|
<input type="hidden" name="next" value="{{ next }}" /> {% endif %}
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
|
||||||
{% endif %}
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="sr-only" for="username">Benutzername</label>
|
<label class="sr-only" for="username">Benutzername</label>
|
||||||
<input type="text" class="form-control" id="username" name="username" placeholder="Benutzername" required>
|
<input type="text" class="form-control" id="username" name="username" placeholder="Benutzername" required>
|
||||||
@ -82,4 +82,5 @@
|
|||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
||||||
<script src="{% static 'bootstrap/js/bootstrap.bundle.js' %}"></script>
|
<script src="{% static 'bootstrap/js/bootstrap.bundle.js' %}"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -6,7 +6,7 @@
|
|||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<h1>efi Medizintechnik Informationssystem</h1>
|
<h1>efi Medizintechnik Informationssystem</h1>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<p>Herzlich Willkommen!</p>
|
<p>Herzlich Willkommen {{user.get_username}}!</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Bitte melden Sie sich mit Ihrer Domänenkennung an.</p>
|
<p>Bitte melden Sie sich mit Ihrer Domänenkennung an.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
22
user.json
22
user.json
@ -6,7 +6,7 @@
|
|||||||
"pk": 1,
|
"pk": 1,
|
||||||
"fields": {
|
"fields": {
|
||||||
"password": "pbkdf2_sha256$100000$pu4yd74Yw8vd$cpecLMlMn0/X2vPqQb2U7QFyjq939RFiXHVECRFtaVU=",
|
"password": "pbkdf2_sha256$100000$pu4yd74Yw8vd$cpecLMlMn0/X2vPqQb2U7QFyjq939RFiXHVECRFtaVU=",
|
||||||
"last_login": "2018-07-01T10:45:39.649Z",
|
"last_login": "2018-07-01T13:56:56.740Z",
|
||||||
"is_superuser": true,
|
"is_superuser": true,
|
||||||
"username": "esthi",
|
"username": "esthi",
|
||||||
"first_name": "",
|
"first_name": "",
|
||||||
@ -72,5 +72,25 @@
|
|||||||
"groups": [],
|
"groups": [],
|
||||||
"user_permissions": []
|
"user_permissions": []
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "auth.user",
|
||||||
|
"pk": 5,
|
||||||
|
"fields": {
|
||||||
|
"password": "pbkdf2_sha256$100000$JfhBNx94qFkw$b0Zefa6oyWN4P8NoZ0vxUlGJp4HkOKSDOR7mROjHuJQ=",
|
||||||
|
"last_login": null,
|
||||||
|
"is_superuser": false,
|
||||||
|
"username": "willsmith",
|
||||||
|
"first_name": "",
|
||||||
|
"last_name": "",
|
||||||
|
"email": "",
|
||||||
|
"is_staff": false,
|
||||||
|
"is_active": true,
|
||||||
|
"date_joined": "2018-07-01T14:00:11Z",
|
||||||
|
"groups": [
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"user_permissions": []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
x
Reference in New Issue
Block a user