2020-07-01 08:13:49 +00:00
@ extends ( " app.layout.base " )
@ section ( " title " )
Account
@ endsection
@ section ( " content " )
2020-11-26 09:19:12 +00:00
< main class = " justify-unset " >
2020-08-11 16:21:51 +00:00
< h1 class = " text-center sde-blue mt-1 " > {{ __ ( 'msg.konto' )}} </ h1 >
2020-08-03 08:36:57 +00:00
< form method = " post " action = " { { route( " users . accountupdate " , ['user' => Auth::user()]) }} " >
2020-07-01 08:13:49 +00:00
@ csrf
@ method ( " put " )
2020-08-06 18:33:46 +00:00
< span > {{ __ ( 'msg.nuværendepassword' )}} :</ span >
2020-08-03 07:42:17 +00:00
< div class = " input-group text-left " >
< input type = " password " class = " form-control " name = " oldpassword " id = " old " placeholder = " ****** " >
2020-08-03 07:53:57 +00:00
< span class = " fa fa-fw fa-eye field-icon toggle-password " id = " fa-old " onclick = " show('old', 'fa-old') " ></ span >
2020-08-03 07:42:17 +00:00
</ div >
2020-08-06 18:33:46 +00:00
< span > {{ __ ( 'msg.nytpassword' )}} :</ span >
2020-08-03 07:42:17 +00:00
< div class = " input-group text-left " >
2020-09-07 06:33:46 +00:00
< input type = " password " pattern = " (?=.* \ d)(?=.*[a-z])(?=.*[A-Z]). { 8,} " title = " Adgangskoden skal indeholde mindst et tal, et lille bogstav, et stort bogstav og have en minimumslængde på 8 karakterer " class = " form-control " name = " password " id = " new " placeholder = " ****** " required >
2020-08-03 07:53:57 +00:00
< span class = " fa fa-fw fa-eye field-icon toggle-password " id = " fa-new " onclick = " show('new', 'fa-new') " ></ span >
2020-08-03 07:42:17 +00:00
</ div >
2020-08-06 18:33:46 +00:00
< span > {{ __ ( 'msg.confirmpassword' )}} :</ span >
2020-08-03 07:42:17 +00:00
< div class = " input-group text-left " >
< input type = " password " class = " form-control " name = " confirmpassword " id = " confirm " placeholder = " ****** " required >
2020-08-03 07:53:57 +00:00
< span class = " fa fa-fw fa-eye field-icon toggle-password " id = " fa-confirm " onclick = " show('confirm', 'fa-confirm') " ></ span >
2020-08-03 07:42:17 +00:00
</ div >
2020-07-28 08:31:44 +00:00
{ !! session () -> get ( 'error#notsamepass' ) !! }
{ !! session () -> get ( 'error#oldpass' ) !! }
2020-11-26 09:19:12 +00:00
< button type = " submit " class = " btn text-center btn-sde-blue mt-auto " > {{ __ ( 'msg.rediger' )}} </ button >
2020-08-13 07:08:34 +00:00
< a onclick = " window.history.back() " class = " btn text-center btn-sde-blue mt-1 " > {{ __ ( 'msg.tilbage' )}} </ a >
2020-07-01 08:13:49 +00:00
</ form >
2020-08-07 06:51:05 +00:00
2020-07-01 08:13:49 +00:00
</ main >
2020-07-31 08:38:10 +00:00
< style >
input {
width : calc ( 100 % - 8 px );
}
</ style >
2020-07-01 08:13:49 +00:00
@ endsection
2020-07-31 07:28:58 +00:00
@ section ( " scripts " )
2020-08-11 07:13:48 +00:00
@ if ( request () -> cookie ( " mode " ) == " dark " )
< 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 = " #333333 " ;
} else {
inputPass . type = " password " ;
faEye . style . color = " #ffffff " ;
}
2020-07-31 07:28:58 +00:00
}
2020-08-11 07:13:48 +00:00
</ script >
@ else
< 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 = " #333333 " ;
} else {
inputPass . type = " password " ;
faEye . style . color = " #808080 " ;
}
}
</ script >
@ endif
2020-07-31 07:28:58 +00:00
@ endsection