Skip to content

Commit 7180d5a

Browse files
author
dev
committed
changes in login form
1 parent 98ed3de commit 7180d5a

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

resources/views/auth/login.blade.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
</div>
2828
<div class="input-group">
2929
<span class="input-group-text bg-light border-end-0"><i class="bi bi-shield-lock text-primary"></i></span>
30-
{{-- Added id="password" --}}
3130
<input type="password" id="password" name="password" class="form-control border-x-0 @error('password') is-invalid @enderror" placeholder="••••••••" required>
32-
{{-- Toggle Button --}}
3331
<button class="btn btn-outline-light border border-start-0 text-muted" type="button" id="togglePassword">
3432
<i class="bi bi-eye" id="eyeIcon"></i>
3533
</button>
@@ -42,23 +40,30 @@
4240
<label class="form-check-label small" for="remember">Remember this device</label>
4341
</div>
4442

45-
<button type="submit" class="btn btn-primary w-100 py-2 shadow-sm">
43+
<button type="submit" class="btn btn-primary w-100 py-2 shadow-sm mb-3">
4644
Access Dashboard <i class="bi bi-arrow-right-short ms-1"></i>
4745
</button>
4846
</form>
4947

48+
{{-- ADDED SIGN UP OPTION HERE --}}
49+
<hr class="text-muted opacity-25 my-4">
50+
51+
<div class="text-center">
52+
<p class="small text-muted mb-0">Don't have an account?</p>
53+
<a href="{{ route('register') }}" class="fw-bold text-decoration-none text-primary">
54+
Create an Account <i class="bi bi-person-plus ms-1"></i>
55+
</a>
56+
</div>
57+
5058
{{-- Script to handle toggle --}}
5159
<script>
5260
const togglePassword = document.querySelector('#togglePassword');
5361
const password = document.querySelector('#password');
5462
const eyeIcon = document.querySelector('#eyeIcon');
5563
5664
togglePassword.addEventListener('click', function (e) {
57-
// toggle the type attribute
5865
const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
5966
password.setAttribute('type', type);
60-
61-
// toggle the eye / eye slash icon
6267
eyeIcon.classList.toggle('bi-eye');
6368
eyeIcon.classList.toggle('bi-eye-slash');
6469
});

0 commit comments

Comments
 (0)