Sign out button

This commit is contained in:
Emily 2019-04-26 06:05:19 +01:00
parent 80ec3d23a6
commit e9a24588a0
3 changed files with 15 additions and 4 deletions

View File

@ -42,12 +42,12 @@ def bills():
@glob.app.route("/warranties") @glob.app.route("/warranties")
@flask_login.login_required @flask_login.login_required
def warranties(): def warranties():
return "AAAA" return "Unimplemented"
@glob.app.route("/receipts") @glob.app.route("/receipts")
@flask_login.login_required @flask_login.login_required
def receipts(): def receipts():
return "AAAA" return "Unimplemented"
@glob.app.route("/login", methods = ["GET", "POST"]) @glob.app.route("/login", methods = ["GET", "POST"])
def login(): def login():

View File

@ -11,6 +11,8 @@
font-size: 24px; font-size: 24px;
vertical-align: middle; vertical-align: middle;
display: table-cell; display: table-cell;
cursor: pointer;
} }
.languk { .languk {
@ -55,9 +57,18 @@
</div> </div>
</div> </div>
<div class="col"> <div class="col">
<div class="rndblock"> <!-- OR INCLUDE BACKGROUND TEXTURE --> <div class="rndblock" data-toggle="dropdown" aria-expanded="false"> <!-- OR INCLUDE BACKGROUND TEXTURE -->
{{ current_user.firstname[0]|upper }} <!-- FIRST CHAR OF USER --> {{ current_user.firstname[0]|upper }} <!-- FIRST CHAR OF USER -->
</div> </div>
<ul class="dropdown-menu">
<li>
<div class="row">
<div class="col">
<a href="{{ url_for('logout') }}">Sign out</a>
</div>
</div>
</li>
</ul>
</div> </div>
</div> </div>
</nav> </nav>

View File

@ -12,7 +12,7 @@
<th scope="col">Payment to</th> <th scope="col">Payment to</th>
<th scope="col">Description</th> <th scope="col">Description</th>
<th scope="col" style="width: 120px">Sum</th> <th scope="col" style="width: 120px">Sum</th>
<th scope="col" style="width: 120px">KID</th> <th scope="col" style="width: 220px">KID</th>
<th scope="col" style="width: 120px">Date Due</th> <th scope="col" style="width: 120px">Date Due</th>
<th scope="col" style="width: 150px">Payment status</th> <th scope="col" style="width: 150px">Payment status</th>
</tr> </tr>