'.$L->g('Cancel').'

Edit user

'; echo Bootstrap::formInputHidden(array( 'name'=>'tokenCSRF', 'value'=>$security->getTokenCSRF() )); echo Bootstrap::formInputHidden(array( 'name'=>'username', 'value'=>$user->username() )); echo Bootstrap::formInputText(array( 'name'=>'usernameDisabled', 'label'=>$L->g('Username'), 'value'=>$user->username(), 'class'=>'', 'placeholder'=>'', 'disabled'=>true, 'tip'=>'' )); if ($login->role()==='admin') { echo Bootstrap::formSelect(array( 'name'=>'role', 'label'=>$L->g('Role'), 'options'=>array('editor'=>$L->g('Editor'), 'admin'=>$L->g('Administrator')), 'selected'=>$user->role(), 'class'=>'', 'tip'=>'' )); } echo Bootstrap::formInputText(array( 'name'=>'email', 'label'=>$L->g('Email'), 'value'=>$user->email(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formTitle(array('title'=>$L->g('Profile'))); echo Bootstrap::formInputText(array( 'name'=>'nickname', 'label'=>$L->g('Nickname'), 'value'=>$user->nickname(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('The nickname is almost used in the themes to display the author of the content') )); echo Bootstrap::formInputText(array( 'name'=>'firstName', 'label'=>$L->g('First Name'), 'value'=>$user->firstName(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'lastName', 'label'=>$L->g('Last Name'), 'value'=>$user->lastName(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formTitle(array('title'=>$L->g('Password'))); echo '
'.$L->g('Change password').'
'; echo Bootstrap::formTitle(array('title'=>$L->g('Authentication Token'))); echo Bootstrap::formInputText(array( 'name'=>'tokenAuth', 'label'=>$L->g('Token'), 'value'=>$user->tokenAuth(), 'class'=>'', 'tip'=>$L->g('this-token-is-similar-to-a-password-it-should-not-be-shared') )); echo Bootstrap::formTitle(array('title'=>$L->g('Status'))); echo Bootstrap::formInputText(array( 'name'=>'status', 'label'=>$L->g('Current status'), 'value'=>$user->enabled()?$L->g('Enabled'):$L->g('Disabled'), 'class'=>'', 'disabled'=>true, 'tip'=>$user->enabled()?'':$L->g('To enable the user you must set a new password') )); if ($user->enabled()) { echo '
'; } echo Bootstrap::formTitle(array('title'=>$L->g('Social Networks'))); echo Bootstrap::formInputText(array( 'name'=>'twitter', 'label'=>'Twitter', 'value'=>$user->twitter(), 'class'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'facebook', 'label'=>'Facebook', 'value'=>$user->facebook(), 'class'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'googlePlus', 'label'=>'Google+', 'value'=>$user->googlePlus(), 'class'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'instagram', 'label'=>'Instagram', 'value'=>$user->instagram(), 'class'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'codepen', 'label'=>'Codepen', 'value'=>$user->codepen(), 'class'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'linkedin', 'label'=>'Linkedin', 'value'=>$user->linkedin(), 'class'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'github', 'label'=>'Github', 'value'=>$user->github(), 'class'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'gitlab', 'label'=>'Gitlab', 'value'=>$user->gitlab(), 'class'=>'', 'tip'=>'' )); echo '
'.$L->g('Cancel').'
'; echo Bootstrap::formClose(); echo Bootstrap::formTitle(array('title'=>$L->g('Profile picture'))); $src = (Sanitize::pathFile(PATH_UPLOADS_PROFILES.$user->username().'.png')?DOMAIN_UPLOADS_PROFILES.$user->username().'.png':HTML_PATH_ADMIN_THEME_IMG.'default.svg'); echo '
Profile Picture
'; ?>