Commit ac6a3686 authored by Falk, Dennis Nikolas's avatar Falk, Dennis Nikolas
Browse files

Login Maske überarbeitet. Navbar Anordnung geändert.

parent 773360f7
......@@ -33,9 +33,10 @@
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
<ul class="navbar-nav ml-auto">
{% if user.is_authenticated %}
<li class="nav-item nav-link">Hallo, {{ user.username }}</li>
<li class="nav-item nav-link disabled">Hallo, {{ user.username }}!</li>
{% if user.is_staff %}
<li class="nav-item"><a class="nav-link" href="/admin">Adminbereich</a></li>
......
......@@ -11,31 +11,31 @@
{% block content %}
<div class="container">
<form action="{% url 'blog:user_login' %}" method="post">
<form class="pt-4 px-3" action="{% url 'blog:user_login' %}" method="post">
{% csrf_token %}
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
{% if error_message %}
<p class="bg-danger p-d ml-b">{{ error_message }}</p>
{% endif %}
<div class="form-group clearfix">
<label for="username" class="col-md-4 control-label text-right">Username:</label>
<div class="col-md-6">
<div class="form-group row clearfix">
<label for="username" class="col-sm-3 col-md-2 col-lg-2 col-xl-1 col-form-label">Username:</label>
<div class="col-3">
<input name="username" value="" type="text" class="form-control" />
</div>
</div>
<div class="form-group clearfix">
<label for="password" class="col-md-4 control-label text-right">Passwort:</label>
<div class="col-md-6">
<div class="form-group row clearfix">
<label for="password" class="col-sm-3 col-md-2 col-lg-2 col-xl-1 col-form-label">Passwort:</label>
<div class="col-3">
<input name="password" type="password" class="form-control" />
</div>
</div>
<div class="col-md-6 col-md-offset-4">
<input name="login" type="submit" value="Login" class="btn btn-success" /> &nbsp;
</div>
</div>
<div class="form-group row">
<div class="col-sm-2 col-md-5 col-lg-5 col-xl-4">
<input name="login" type="submit" value="Login" class="btn btn-success float-right" /> &nbsp;
</div>
</div>
</div>
</div>
</form>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment