|
|
|
@ -56,9 +56,20 @@
|
|
|
|
|
@endforeach |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<label for="password" class="col-form-label">Password:</label> |
|
|
|
|
<input class="form-control" name="password" type="text" id="password" value="{{ old('password') }}" |
|
|
|
|
placeholder="Masukan password user" required> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="password" class="col-form-label">Password: <span class="text-danger">*</span></label> |
|
|
|
|
<div class="input-group"> |
|
|
|
|
<input class="form-control" name="password" type="password" id="password" |
|
|
|
|
value="{{ old('password') }}" placeholder="Masukkan password user" minlength="8" |
|
|
|
|
pattern="^(?=.*[A-Za-z])(?=.*\d).*$" required |
|
|
|
|
title="Minimal 8 karakter dengan kombinasi huruf dan angka"> |
|
|
|
|
<div class="input-group-append"> |
|
|
|
|
<button class="btn btn-outline-secondary" type="button" id="showPasswordButton"> |
|
|
|
|
Tampilkan |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="modal-footer d-flex justify-content-center"> |
|
|
|
|
<a href="{{ route('dashboard.user.index') }}" class="btn btn-secondary">Kembali</a> |
|
|
|
@ -67,4 +78,19 @@
|
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
const passwordInput = document.getElementById("password"); |
|
|
|
|
const showPasswordButton = document.getElementById("showPasswordButton"); |
|
|
|
|
|
|
|
|
|
showPasswordButton.addEventListener("click", function() { |
|
|
|
|
if (passwordInput.type === "password") { |
|
|
|
|
passwordInput.type = "text"; |
|
|
|
|
showPasswordButton.textContent = "Sembunyikan"; |
|
|
|
|
} else { |
|
|
|
|
passwordInput.type = "password"; |
|
|
|
|
showPasswordButton.textContent = "Tampilkan"; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
@endsection |
|
|
|
|