Fixed alerts panel and renamed submit -> Login

master
Hiyorimi 6 years ago
parent a1757b282a
commit 66b97d55d6
  1. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/layout.html
  2. 4
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html

@ -36,6 +36,7 @@
<main role="main"> <main role="main">
{% with messages = get_flashed_messages(with_categories=true) %} {% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %} {% if messages %}
<div class="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
{% for category, message in messages %} {% for category, message in messages %}
@ -46,6 +47,7 @@
{% endfor %} {% endfor %}
</div><!-- end col-md --> </div><!-- end col-md -->
</div><!-- end row --> </div><!-- end row -->
</div>
{% endif %} {% endif %}
{% endwith %} {% endwith %}

@ -31,12 +31,12 @@
</li> </li>
</ul> </ul>
{% elif form %} {% elif form %}
<form class="form-inline my-2" id="loginForm" method="POST" action="/" role="login"> <form class="form-inline" id="loginForm" method="POST" action="/" role="login">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<div class="input-group mb-2 mr-sm-2"> <div class="input-group mb-2 mr-sm-2">
{{ form.username(placeholder="Username", class_="form-control mr-sm-1 my-auto") }} {{ form.password(placeholder="Password", {{ form.username(placeholder="Username", class_="form-control mr-sm-1 my-auto") }} {{ form.password(placeholder="Password",
class_="form-control mr-sm-1 my-auto") }} class_="form-control mr-sm-1 my-auto") }}
<button class="btn btn-light btn-primary m-auto" type="submit">submit</button> <button class="btn btn-light btn-primary m-auto" type="submit">Login</button>
</div> </div>
</form> </form>
<ul class="navbar-nav my-auto"> <ul class="navbar-nav my-auto">

Loading…
Cancel
Save