Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sibiling
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syaifur
sibiling
Commits
36d69c0d
Commit
36d69c0d
authored
Oct 23, 2024
by
syaifurplus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show hide password di update password
parent
eb99009e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
14 deletions
+51
-14
edit.blade.php
resources/views/auth/edit.blade.php
+51
-14
No files found.
resources/views/auth/edit.blade.php
View file @
36d69c0d
...
...
@@ -5,6 +5,7 @@
@
endsection
@
push
(
'css'
)
<
link
href
=
"https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css"
rel
=
"stylesheet"
>
@
endpush
@
section
(
'content'
)
...
...
@@ -37,38 +38,46 @@
<div class="
form
-
group
">
<label>Password Lama</label>
<div class="
input
-
group
">
<span class="
input
-
group
-
text
"><i class="
icon
-
lock
"></i></span>
<input required class="
form
-
control
@
error
(
'login.password'
)
is
-
invalid
@
enderror
" type="
password
" name="
login
[
password
]
" placeholder="
*********
" />
<div class="
show
-
hide
"><span class="
show
"> </span></div>
<span class="
input
-
group
-
text
"><i class="
bi
bi
-
lock
"></i></span>
<input required class="
form
-
control
@
error
(
'login.password'
)
is
-
invalid
@
enderror
" type="
password
" name="
login
[
password
]
" id="
password_lama
" placeholder="
*********
" />
<div class="
input
-
group
-
text
show
-
hide
" id="
togglePasswordLama
">
<i class="
bi
bi
-
eye
"></i>
</div>
@error('login.password')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
form
-
group
">
<label>Password Baru</label>
<div class="
input
-
group
">
<span class="
input
-
group
-
text
"><i class="
icon
-
lock
"></i></span>
<input required class="
form
-
control
@
error
(
'login.password_new'
)
is
-
invalid
@
enderror
" type="
password
" name="
login
[
password_new
]
" placeholder="
*********
" />
<div class="
show
-
hide
"><span class="
show
"> </span></div>
<span class="
input
-
group
-
text
"><i class="
bi
bi
-
lock
"></i></span>
<input required class="
form
-
control
@
error
(
'login.password_new'
)
is
-
invalid
@
enderror
" type="
password
" name="
login
[
password_new
]
" id="
password_baru
" placeholder="
*********
" />
<div class="
input
-
group
-
text
show
-
hide
" id="
togglePasswordBaru
">
<i class="
bi
bi
-
eye
"></i>
</div>
@error('login.password_new')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
form
-
group
">
<label>Ulangi Password Baru</label>
<div class="
input
-
group
">
<span class="
input
-
group
-
text
"><i class="
icon
-
lock
"></i></span>
<input required class="
form
-
control
@
error
(
'login.password_verif'
)
is
-
invalid
@
enderror
" type="
password
" name="
login
[
password_verif
]
" placeholder="
*********
" />
<div class="
show
-
hide
"><span class="
show
"> </span></div>
<span class="
input
-
group
-
text
"><i class="
bi
bi
-
lock
"></i></span>
<input required class="
form
-
control
@
error
(
'login.password_verif'
)
is
-
invalid
@
enderror
" type="
password
" name="
login
[
password_verif
]
" id="
password_verif
" placeholder="
*********
" />
<div class="
input
-
group
-
text
show
-
hide
" id="
togglePasswordVerif
">
<i class="
bi
bi
-
eye
"></i>
</div>
@error('login.password_verif')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
...
...
@@ -83,9 +92,37 @@
</div>
</div>
</section>
@push('scripts')
<script>
$(document).ready(function() {
$('#togglePasswordLama').on('click', function() {
togglePasswordVisibility('#password_lama', this);
});
$('#togglePasswordBaru').on('click', function() {
togglePasswordVisibility('#password_baru', this);
});
$('#togglePasswordVerif').on('click', function() {
togglePasswordVisibility('#password_verif', this);
});
function togglePasswordVisibility(inputId, toggleIcon) {
var input = $(inputId);
var icon = $(toggleIcon).find('i');
if (input.attr('type') === 'password') {
input.attr('type', 'text');
icon.removeClass('bi-eye').addClass('bi-eye-slash'); // Ubah icon menjadi "
eye
-
slash
"
} else {
input.attr('type', 'password');
icon.removeClass('bi-eye-slash').addClass('bi-eye'); // Kembali ke icon "
eye
"
}
}
});
</script>
@endpush
<script src="
https
://
ajax
.
googleapis
.
com
/
ajax
/
libs
/
jquery
/
3.5
.
1
/
jquery
.
min
.
js
"></script>
@endsection
\ No newline at end of file
@endsection
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment