main /login use global base template
This commit is contained in:
parent
c924e8f9d6
commit
fb5969f643
@ -1,88 +1,46 @@
|
|||||||
|
{% extends "main/base.html" %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
{% block content %}
|
||||||
<html id="html" class="loading" lang="en" data-textdirection="ltr">
|
<div class="row">
|
||||||
<!-- BEGIN: Head-->
|
<div class="col s12 l4 offset-l4">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-content">
|
||||||
|
<div class="row center-align mt-4">
|
||||||
|
<img width="120px" src="static/images/logo/logo.svg" alt="DashMachine Logo">
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<form class="login-form" method="POST">
|
||||||
|
{{ form.hidden_tag() }}
|
||||||
|
|
||||||
<head>
|
<div class="input-field col s12">
|
||||||
<script>
|
<i class="material-icons-outlined prefix">person</i>
|
||||||
let mode = localStorage.getItem('mode');
|
{{ form.username(class="validate", id="username", type="text") }}
|
||||||
if (mode === 'dark') {
|
<label for="username" class="center-align">Username</label>
|
||||||
document.documentElement.setAttribute('data-theme', 'dark');
|
</div>
|
||||||
} else {
|
|
||||||
document.documentElement.setAttribute('data-theme', 'light');
|
|
||||||
}
|
|
||||||
let accent = localStorage.getItem('accent');
|
|
||||||
document.documentElement.setAttribute('data-accent', accent);
|
|
||||||
</script>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
|
|
||||||
<meta name="description"
|
|
||||||
content="Transaction coordination software">
|
|
||||||
<meta name="keywords"
|
|
||||||
content="Real Estate">
|
|
||||||
<meta name="author" content="ThemeSelect">
|
|
||||||
{% if title %}
|
|
||||||
<title>DashMachine - {{ title }}</title>
|
|
||||||
{% else %}
|
|
||||||
<title>DashMachine</title>
|
|
||||||
{% endif %}
|
|
||||||
<link rel="apple-touch-icon" href="static/images/favicon/apple-touch-icon-152x152.png">
|
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="static/images/favicon/favicon-32x32.png">
|
|
||||||
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
|
|
||||||
{{ process_css_sources(app_global=True)|safe }}
|
|
||||||
|
|
||||||
</head>
|
<div class="input-field col s12">
|
||||||
<!-- END: Head-->
|
<i class="material-icons-outlined prefix">lock_outline</i>
|
||||||
|
{{ form.password(class="validate", id="password", type="password") }}
|
||||||
|
<label for="password">Password</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<body>
|
<div class="switch">
|
||||||
<div class="row">
|
<label>
|
||||||
<div class="col s12 l4 offset-l4">
|
{{ form.remember(type="checkbox", checked="true") }}
|
||||||
<div class="card">
|
<span class="lever"></span>
|
||||||
<div class="card-content">
|
Remember Me
|
||||||
<div class="row center-align mt-4">
|
</label>
|
||||||
<img width="120px" src="static/images/logo/logo.svg" alt="DashMachine Logo">
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<form class="login-form" method="POST">
|
|
||||||
{{ form.hidden_tag() }}
|
|
||||||
|
|
||||||
<div class="input-field col s12">
|
|
||||||
<i class="material-icons-outlined prefix">person</i>
|
|
||||||
{{ form.username(class="validate", id="username", type="text") }}
|
|
||||||
<label for="username" class="center-align">Username</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-field col s12">
|
|
||||||
<i class="material-icons-outlined prefix">lock_outline</i>
|
|
||||||
{{ form.password(class="validate", id="password", type="password") }}
|
|
||||||
<label for="password">Password</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="switch">
|
|
||||||
<label>
|
|
||||||
{{ form.remember(type="checkbox", checked="true") }}
|
|
||||||
<span class="lever"></span>
|
|
||||||
Remember Me
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="input-field col s12">
|
<div class="input-field col s12">
|
||||||
<button type=submit class="btn theme-primary waves-effect waves-light right">Sign in</button>
|
<button type=submit class="btn theme-primary waves-effect waves-light right">Sign in</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endblock content %}
|
||||||
|
|
||||||
<!-- BEGIN VENDOR JS-->
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
|
||||||
<!-- END VENDOR JS-->
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
@ -1 +1 @@
|
|||||||
version = "v0.2"
|
version = "v0.21"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user