$L->g('Edit user'), 'icon'=>'user')); echo '
'; echo '
'; HTML::formOpen(array('id'=>'edit-user-profile-form','class'=>'uk-form-horizontal')); // Security token HTML::formInputHidden(array( 'name'=>'tokenCSRF', 'value'=>$Security->getTokenCSRF() )); // Security token HTML::formInputHidden(array( 'name'=>'username', 'value'=>$User->username() )); HTML::legend(array('value'=>$L->g('Profile'), 'class'=>'first-child')); HTML::formInputText(array( 'name'=>'usernameDisable', 'label'=>$L->g('Username'), 'value'=>$User->username(), 'class'=>'uk-width-1-2 uk-form-medium', 'disabled'=>true, 'tip'=>'' )); HTML::formInputText(array( 'name'=>'firstName', 'label'=>$L->g('First name'), 'value'=>$User->firstName(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>'' )); HTML::formInputText(array( 'name'=>'lastName', 'label'=>$L->g('Last name'), 'value'=>$User->lastName(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>'' )); echo '
'; if($Login->role()==='admin') { HTML::formSelect(array( 'name'=>'role', 'label'=>$L->g('Role'), 'options'=>array('editor'=>$L->g('Editor'), 'admin'=>$L->g('Administrator')), 'selected'=>$User->role(), 'tip'=>'' )); } HTML::formInputText(array( 'name'=>'email', 'label'=>$L->g('Email'), 'value'=>$User->email(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>$L->g('Recommended for recovery password and notifications') )); HTML::legend(array('value'=>$L->g('Social networks links'))); HTML::formInputText(array( 'name'=>'twitter', 'label'=>'Twitter', 'value'=>$User->twitter(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>'' )); HTML::formInputText(array( 'name'=>'facebook', 'label'=>'Facebook', 'value'=>$User->facebook(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>'' )); HTML::formInputText(array( 'name'=>'googlePlus', 'label'=>'Google+', 'value'=>$User->googlePlus(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>'' )); HTML::formInputText(array( 'name'=>'instagram', 'label'=>'Instagram', 'value'=>$User->instagram(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>'' )); echo '
'.$L->g('Cancel').'
'; HTML::legend(array('value'=>$L->g('Authentication Token'))); HTML::formInputText(array( 'name'=>'tokenAuth', 'label'=>$L->g('Token'), 'value'=>$User->tokenAuth(), 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>$L->g('this-token-is-similar-to-your-password-you-should-not-share-it') )); HTML::legend(array('value'=>$L->g('Status'))); HTML::formInputText(array( 'name'=>'status', 'label'=>$L->g('Current status'), 'value'=>$User->enabled()?$L->g('Enabled'):$L->g('Disabled'), 'class'=>'uk-width-1-2 uk-form-medium', 'disabled'=>true, 'tip'=>$User->enabled()?'':$L->g('To enable the user you must set a new password.') )); if( $User->enabled() ) { echo '
'; } if( ($Login->role()==='admin') && ($User->username()!='admin') ) { HTML::legend(array('value'=>$L->g('Delete'))); echo '
'; } HTML::formClose(); echo '
'; echo '
'; HTML::profileUploader($User->username()); echo '
'; echo '
'; ?>