-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
394 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="row justify-content-center"> | ||
{{ field }} | ||
{% for error in field.errors %} | ||
<div class="form-error">{{ error }}</div> | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
|
||
{% block head %}<link rel="stylesheet" href="{% static "css/login.css" %}" />{% endblock %} | ||
{% block header %}{% endblock %} | ||
|
||
{% block body_class %}text-center{% endblock %} | ||
|
||
{% block content %} | ||
<form class="form-signin" method="POST"> | ||
<img class="mb-4" src="https://getbootstrap.com/docs/4.0/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72"> | ||
<h1 class="h3 mb-3 font-weight-normal">Пожалуйста авторизуйтесь</h1> | ||
<label for="inputEmail" class="sr-only">Email</label> | ||
<input type="text" name="username" id="inputEmail" class="form-control" placeholder="Имя пользователя" required autofocus> | ||
<label for="inputPassword" class="sr-only">Пароль</label> | ||
<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Пароль" required> | ||
<div class="checkbox mb-3"> | ||
<label> | ||
<input type="checkbox" value="remember-me"> Запомнить меня | ||
</label> | ||
<form method="POST" class="container vera-form"> | ||
|
||
{% for field in form %} | ||
{% include "inc/field.html" %} | ||
{% endfor %} | ||
<div class="row justify-content-center"> | ||
<button class="btn btn-vera signup">Войти</button> | ||
</div> | ||
<div class="row justify-content-center"> | ||
<a href="{% url 'signup' %}">Регистрация</a> | ||
</div> | ||
{% csrf_token %} | ||
<button class="btn btn-lg btn-primary btn-block" type="submit">Войти</button> | ||
<p class="mt-5 mb-3 text-muted"><a href="/signup/">Регистрация</a></p> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<form method="POST"> | ||
<form method="POST" class="container vera-form"> | ||
<div class="row justify-content-center"> | ||
<div class="progress vera"> | ||
<div class="progress-bar vera" role="progressbar" style="width: 60%" aria-valuenow="66" aria-valuemin="0" aria-valuemax="100"></div> | ||
</div> | ||
</div> | ||
<div class="row justify-content-center"> | ||
<h3 class="signup">ШАГ 2 / 3</h3> | ||
</div> | ||
<div class="row justify-content-center"> | ||
<h2 class="role-text">Какова ваша роль?</h2> | ||
</div> | ||
<div class="row justify-content-center"> | ||
<div class="roles"> | ||
<button name="role" value="R"> | ||
<div class="role relative"> | ||
<h2>Родственник</h2> | ||
<h6>Один больной</h6> | ||
<img src="{% static 'img/pro.svg' %}" alt="" class="ward-img"> | ||
</div> | ||
</button> | ||
<button name="role" value="P"> | ||
<div class="role nurse"> | ||
<h2>Сиделка</h2> | ||
<h6>Несколько подопечных</h6> | ||
<img src="{% static 'img/relative.svg' %}" alt="" class="ward-img"> | ||
</div> | ||
</button> | ||
</div> | ||
</div> | ||
{% csrf_token %} | ||
<input type="hidden" name="role" value="P"> | ||
<input type="hidden" name="role" value="R"> | ||
<button>OK</button> | ||
</form> | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<form method="POST"> | ||
<form method="POST" class="container vera-form"> | ||
<div class="row justify-content-center"> | ||
<div class="progress vera"> | ||
<div class="progress-bar vera" role="progressbar" style="width: 30%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div> | ||
</div> | ||
</div> | ||
<div class="row justify-content-center"> | ||
<h3 class="signup">ШАГ 1 / 3</h3> | ||
</div> | ||
{% for field in form %} | ||
{% include "inc/field.html" %} | ||
{% endfor %} | ||
<div class="row justify-content-center"> | ||
<button class="btn btn-vera signup">Продолжить</button> | ||
</div> | ||
{% csrf_token %} | ||
{{ form.as_ul }} | ||
<button>Продолжить</button> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<form method="POST"> | ||
<form method="POST" class="container vera-form"> | ||
<div class="row justify-content-center"> | ||
<div class="progress vera"> | ||
<div class="progress-bar vera" role="progressbar" style="width: 100%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div> | ||
</div> | ||
</div> | ||
<div class="row justify-content-center"> | ||
<h3 class="signup">ШАГ 3 / 3</h3> | ||
</div> | ||
{% for field in form %} | ||
{% include "inc/field.html" %} | ||
{% endfor %} | ||
<div class="row justify-content-center"> | ||
<button class="btn btn-vera signup">Готово</button> | ||
</div> | ||
{% csrf_token %} | ||
{{ form.as_ul }} | ||
<button>Готово</button> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.