Skip to content
Snippets Groups Projects
Commit 3ecce541 authored by Elise's avatar Elise
Browse files

format forms in log in and sign up

parent 29d92bd7
No related branches found
No related tags found
No related merge requests found
......@@ -36,4 +36,11 @@ body, html {
width: 350px;
}
.form_format {
display: flex;
justify-content: center;
align-items: center;
min-height: calc(100vh - 240px);
}
\ No newline at end of file
{% extends 'common/layout.twig' %}
{% block content %}
<div class="form_format">
<form class="ui form {% if formstatus %} {{formstatus}} {% endif %} " action="/users" method="post">
<h4 class="ui dividing header">Sign Up</h4>
<div class="field">
......@@ -42,4 +43,5 @@
</div>
<input type="submit" class="ui submit button">
</form>
</div>
{% endblock %}
\ No newline at end of file
{% extends 'common/layout.twig' %}
{% block content %}
<form class="ui form {% if formstatus %} {{formstatus}} {% endif %} " action="/users/{{id}}" method="get">
<h4 class="ui dividing header">Log In</h4>
<div class="field">
<input type="text" name="username" id="username" placeholder="Username" value="{{username}}" required>
{% if username_formstatus %}
<div class="ui {{formstatus}} message">
<p>Username unknown.</p>
<div class="form_format">
<form class="ui form {% if formstatus %} {{formstatus}} {% endif %} " action="/users/{{id}}" method="get">
<h4 class="ui dividing header">Log In</h4>
<div class="field">
<input type="text" name="username" id="username" placeholder="Username" value="{{username}}" required>
{% if username_formstatus %}
<div class="ui {{formstatus}} message">
<p>Username unknown.</p>
</div>
{% endif %}
</div>
{% endif %}
</div>
<div class="field">
<input type="password" name="password" id="password" placeholder="Password" required>
{% if username_formstatus %}
<div class="ui {{formstatus}} message">
<p>Password incorrect.</p>
<div class="field">
<input type="password" name="password" id="password" placeholder="Password" required>
{% if username_formstatus %}
<div class="ui {{formstatus}} message">
<p>Password incorrect.</p>
</div>
{% endif %}
</div>
{% endif %}
</div>
<input type="submit" class="ui submit button">
</form>
<input type="submit" class="ui submit button">
</form>
</div>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment