Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #38

Merged
merged 6 commits into from
Aug 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed __pycache__/Disease.cpython-311.pyc
Binary file not shown.
Binary file removed __pycache__/forms.cpython-311.pyc
Binary file not shown.
Binary file removed __pycache__/predict_disease.cpython-311.pyc
Binary file not shown.
Binary file removed __pycache__/speechToText.cpython-311.pyc
Binary file not shown.
Binary file modified backend/__pycache__/mongoConnect.cpython-311.pyc
Binary file not shown.
131 changes: 59 additions & 72 deletions templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,80 +4,67 @@
{% block title %}Login{% endblock title %}

{% block body %}
<div class="col-lg-8 col-md-10 mb-5 mx-auto ">
<h2 >Log In</h2>


<style>
.sign-up-box {
margin-top: 25px;
background-color: #f9f9f9;
padding: 20px;
border-radius: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
width: 400px;
}

.sign-up-box h2 {
font-size: 24px;
margin-bottom: 20px;
color: #333;
}

.sign-up-box p {
font-size: 14px;
text-align: center;
color: #777;
}

.sign-up-title {
display: flex;
align-items: center;
justify-content: center;
}

input {
margin-bottom: 10px;
}

#role {
margin-bottom: 10px;
}

#gender {
margin-bottom: 10px;
}

#submit {
margin-top: 25px;
width: 100%;
}

.footer {
margin-top: 90px;
overflow-y: auto;
}
</style>

<div class="col-lg-8 col-md-10 mb-5 mx-auto sign-up-box">
<div class="sign-up-title">
<h2 >Sign In</h2>
</div>

{{ wtf.quick_form(login_form, novalidate=True, button_map={"submit": "primary"}) }}
<p class="d-flex justify-content-center mt-1">Yet to Register?&nbsp;&nbsp;<a href="{{ url_for('register_page') }}"> Sign Up</a></p>

</div>

{% endblock body %}

<!--
<div class="mt-2 px-2 py-5 mb-5">
<div class="col-12 col-sm-8 col-md-6 mx-auto">
<div class="card border-3 shadow">
<div class="card-body">
<div class="col-12 col-sm-8 col-md-6 mx-auto">
<form class="needs-validation" action="{{url_for("home_page")}}">
<div class="mt-5 px-5 py-5 mx-auto">
<h1 class="text-center" style="color: #465A99;">Sign in</h1>

<br>
<div class="col-12 mt-2">
<label for="user_type" class="form-label fw-semibold">User Type:</label>
<select class="form-select" id="user_type" name="user_type">
<option value="Doctor">Doctor</option>
<option value="Patient">Patient</option>
<option value="Pharmacist">Pharmacist</option>
<option value="Receptionist">Receptionist</option>
</select>
<div class="invalid-feedback">
Please select your user type.
</div>
</div>
<br>
<div class="col-12 mt-2">
<label for="username" class="form-label fw-semibold">Username:</label>
<input type="text" class="form-control" id="username" placeholder="Username" name="username">
<div class="invalid-feedback">
Please enter a valid email address for shipping updates.
</div>
</div>
<br>
<div class="col-12">
<label for="pass_word" class="form-label fw-semibold">Password:</label>
<div class="input-group has-validation">
<input class="form-control" type="password" placeholder="Password"
id="pass_word" name="pass_word">
<div class="invalid-feedback">
Your password is required.
</div>
</div>
</div>
<br>
<div class="text-center mt-2">
<button class="btn btn-primary" type="submit">Login</button>
<br>
<p class="lead d-inline-flex">Don't have an Account ?&nbsp;&nbsp;
<a class="link-primary nav-link d-inline-flex" style="color:#1c8adb;"
href="/register">Sign Up</a>
</p>
<div class="checkbox mb-3">
<div class="form-check d-inline-flex">
<input class="form-check-input d-inline-flex fs-5" type="checkbox" value=""
id="flexCheckDefault">
<label class="form-check-label lead fs-5 ms-2" for="flexCheckDefault">
Remember Me
</label>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
-->
{% endblock body %}
Loading