56 lines
2.2 KiB
PHP
56 lines
2.2 KiB
PHP
@extends("app.layout.base")
|
|
|
|
@section("title")
|
|
Account
|
|
@endsection
|
|
|
|
@section("content")
|
|
<main>
|
|
<h1 class="text-center sde-blue mt-0">Konto</h1>
|
|
<form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}" style="display: inline-table;">
|
|
@csrf
|
|
@method("put")
|
|
<span>Nuværende Password:</span>
|
|
<div class="input-group text-left">
|
|
<input type="password" class="form-control" name="oldpassword" id="old" placeholder="******">
|
|
<span class="fa fa-fw fa-eye field-icon toggle-password" id="fa-old" onclick="show('old', 'fa-old')"></span>
|
|
</div>
|
|
<span>Nyt Password:</span>
|
|
<div class="input-group text-left">
|
|
<input type="password" class="form-control" name="password" id="new" placeholder="******" required>
|
|
<span class="fa fa-fw fa-eye field-icon toggle-password" id="fa-new" onclick="show('new', 'fa-new')"></span>
|
|
</div>
|
|
<span>Bekræft Nyt Password:</span>
|
|
<div class="input-group text-left">
|
|
<input type="password" class="form-control" name="confirmpassword" id="confirm" placeholder="******" required>
|
|
<span class="fa fa-fw fa-eye field-icon toggle-password" id="fa-confirm" onclick="show('confirm', 'fa-confirm')"></span>
|
|
</div>
|
|
{!! session()->get('error#notsamepass') !!}
|
|
{!! session()->get('error#oldpass') !!}
|
|
<button type="submit" class="btn text-center btn-sde-blue mt-1">Rediger</button>
|
|
</form>
|
|
</main>
|
|
<style>
|
|
input {
|
|
width: calc(100% - 8px);
|
|
}
|
|
</style>
|
|
@endsection
|
|
|
|
@section("scripts")
|
|
<script>
|
|
function show($passID, $faID) {
|
|
var inputPass = document.getElementById($passID);
|
|
var faEye = document.getElementById($faID);
|
|
|
|
if (inputPass.type === "password") {
|
|
inputPass.type = "text";
|
|
faEye.style.color = "#000";
|
|
} else {
|
|
inputPass.type = "password";
|
|
faEye.style.color = "#808080";
|
|
}
|
|
}
|
|
</script>
|
|
@endsection
|