|
@@ -206,7 +206,6 @@ class Edit extends Profile
|
|
];
|
|
];
|
|
if ($this->rules->rename) {
|
|
if ($this->rules->rename) {
|
|
$fields['username'] = [
|
|
$fields['username'] = [
|
|
- 'id' => 'username',
|
|
|
|
'type' => 'text',
|
|
'type' => 'text',
|
|
'maxlength' => 25,
|
|
'maxlength' => 25,
|
|
'caption' => \ForkBB\__('Username'),
|
|
'caption' => \ForkBB\__('Username'),
|
|
@@ -216,7 +215,6 @@ class Edit extends Profile
|
|
];
|
|
];
|
|
} else {
|
|
} else {
|
|
$fields['username'] = [
|
|
$fields['username'] = [
|
|
- 'id' => 'username',
|
|
|
|
'class' => 'pline',
|
|
'class' => 'pline',
|
|
'type' => 'str',
|
|
'type' => 'str',
|
|
'caption' => \ForkBB\__('Username'),
|
|
'caption' => \ForkBB\__('Username'),
|
|
@@ -224,8 +222,7 @@ class Edit extends Profile
|
|
];
|
|
];
|
|
}
|
|
}
|
|
if ($this->rules->editPass) {
|
|
if ($this->rules->editPass) {
|
|
- $fields[] = [
|
|
|
|
- 'id' => 'change_pass',
|
|
|
|
|
|
+ $fields['change_pass'] = [
|
|
'type' => 'link',
|
|
'type' => 'link',
|
|
'value' => \ForkBB\__('Change passphrase'),
|
|
'value' => \ForkBB\__('Change passphrase'),
|
|
'href' => $this->c->Router->link('EditUserPass', ['id' => $this->curUser->id]),
|
|
'href' => $this->c->Router->link('EditUserPass', ['id' => $this->curUser->id]),
|
|
@@ -233,7 +230,6 @@ class Edit extends Profile
|
|
}
|
|
}
|
|
if ($this->rules->setTitle) {
|
|
if ($this->rules->setTitle) {
|
|
$fields['title'] = [
|
|
$fields['title'] = [
|
|
- 'id' => 'title',
|
|
|
|
'type' => 'text',
|
|
'type' => 'text',
|
|
'maxlength' => 50,
|
|
'maxlength' => 50,
|
|
'caption' => \ForkBB\__('Title'),
|
|
'caption' => \ForkBB\__('Title'),
|
|
@@ -242,7 +238,6 @@ class Edit extends Profile
|
|
];
|
|
];
|
|
} else {
|
|
} else {
|
|
$fields['title'] = [
|
|
$fields['title'] = [
|
|
- 'id' => 'title',
|
|
|
|
'class' => 'pline',
|
|
'class' => 'pline',
|
|
'type' => 'str',
|
|
'type' => 'str',
|
|
'caption' => \ForkBB\__('Title'),
|
|
'caption' => \ForkBB\__('Title'),
|
|
@@ -255,7 +250,6 @@ class Edit extends Profile
|
|
if ($this->rules->useAvatar) {
|
|
if ($this->rules->useAvatar) {
|
|
if (! $this->curUser->avatar) {
|
|
if (! $this->curUser->avatar) {
|
|
$fields['avatar'] = [
|
|
$fields['avatar'] = [
|
|
- 'id' => 'avatar',
|
|
|
|
'class' => 'pline',
|
|
'class' => 'pline',
|
|
'type' => 'str',
|
|
'type' => 'str',
|
|
'caption' => \ForkBB\__('Avatar'),
|
|
'caption' => \ForkBB\__('Avatar'),
|
|
@@ -263,7 +257,6 @@ class Edit extends Profile
|
|
];
|
|
];
|
|
} elseif ($this->curUser->avatar) {
|
|
} elseif ($this->curUser->avatar) {
|
|
$fields['avatar'] = [
|
|
$fields['avatar'] = [
|
|
- 'id' => 'avatar',
|
|
|
|
'type' => 'yield',
|
|
'type' => 'yield',
|
|
'caption' => \ForkBB\__('Avatar'),
|
|
'caption' => \ForkBB\__('Avatar'),
|
|
'value' => 'avatar',
|
|
'value' => 'avatar',
|
|
@@ -275,7 +268,6 @@ class Edit extends Profile
|
|
|
|
|
|
if ($this->curUser->avatar) {
|
|
if ($this->curUser->avatar) {
|
|
$fields['delete_avatar'] = [
|
|
$fields['delete_avatar'] = [
|
|
- 'id' => 'delete_avatar',
|
|
|
|
'type' => 'checkbox',
|
|
'type' => 'checkbox',
|
|
'label' => \ForkBB\__('Delete avatar'),
|
|
'label' => \ForkBB\__('Delete avatar'),
|
|
'value' => '1',
|
|
'value' => '1',
|
|
@@ -284,7 +276,6 @@ class Edit extends Profile
|
|
}
|
|
}
|
|
|
|
|
|
$fields['upload_avatar'] = [
|
|
$fields['upload_avatar'] = [
|
|
- 'id' => 'upload_avatar',
|
|
|
|
'type' => 'file',
|
|
'type' => 'file',
|
|
'caption' => \ForkBB\__('New avatar'),
|
|
'caption' => \ForkBB\__('New avatar'),
|
|
'info' => \ForkBB\__('New avatar info',
|
|
'info' => \ForkBB\__('New avatar info',
|
|
@@ -295,8 +286,7 @@ class Edit extends Profile
|
|
),
|
|
),
|
|
];
|
|
];
|
|
}
|
|
}
|
|
- $form['sets'][] = [
|
|
|
|
- 'id' => 'header',
|
|
|
|
|
|
+ $form['sets']['header'] = [
|
|
'class' => 'header-edit',
|
|
'class' => 'header-edit',
|
|
# 'legend' => \ForkBB\__('Options'),
|
|
# 'legend' => \ForkBB\__('Options'),
|
|
'fields' => $fields,
|
|
'fields' => $fields,
|
|
@@ -304,13 +294,11 @@ class Edit extends Profile
|
|
|
|
|
|
// примечание администрации
|
|
// примечание администрации
|
|
if ($this->user->isAdmMod) {
|
|
if ($this->user->isAdmMod) {
|
|
- $form['sets'][] = [
|
|
|
|
- 'id' => 'note',
|
|
|
|
|
|
+ $form['sets']['note'] = [
|
|
'class' => 'data-edit',
|
|
'class' => 'data-edit',
|
|
'legend' => \ForkBB\__('Admin note'),
|
|
'legend' => \ForkBB\__('Admin note'),
|
|
'fields' => [
|
|
'fields' => [
|
|
'admin_note' => [
|
|
'admin_note' => [
|
|
- 'id' => 'admin_note',
|
|
|
|
'type' => 'text',
|
|
'type' => 'text',
|
|
'maxlength' => 30,
|
|
'maxlength' => 30,
|
|
'caption' => \ForkBB\__('Admin note'),
|
|
'caption' => \ForkBB\__('Admin note'),
|
|
@@ -323,7 +311,6 @@ class Edit extends Profile
|
|
// личное
|
|
// личное
|
|
$fields = [];
|
|
$fields = [];
|
|
$fields['realname'] = [
|
|
$fields['realname'] = [
|
|
- 'id' => 'realname',
|
|
|
|
'type' => 'text',
|
|
'type' => 'text',
|
|
'maxlength' => 40,
|
|
'maxlength' => 40,
|
|
'caption' => \ForkBB\__('Realname'),
|
|
'caption' => \ForkBB\__('Realname'),
|
|
@@ -335,7 +322,6 @@ class Edit extends Profile
|
|
2 => \ForkBB\__('Female'),
|
|
2 => \ForkBB\__('Female'),
|
|
];
|
|
];
|
|
$fields['gender'] = [
|
|
$fields['gender'] = [
|
|
- 'id' => 'gender',
|
|
|
|
'class' => 'block',
|
|
'class' => 'block',
|
|
'type' => 'radio',
|
|
'type' => 'radio',
|
|
'value' => $this->curUser->gender,
|
|
'value' => $this->curUser->gender,
|
|
@@ -343,14 +329,12 @@ class Edit extends Profile
|
|
'caption' => \ForkBB\__('Gender'),
|
|
'caption' => \ForkBB\__('Gender'),
|
|
];
|
|
];
|
|
$fields['location'] = [
|
|
$fields['location'] = [
|
|
- 'id' => 'location',
|
|
|
|
'type' => 'text',
|
|
'type' => 'text',
|
|
'maxlength' => 30,
|
|
'maxlength' => 30,
|
|
'caption' => \ForkBB\__('Location'),
|
|
'caption' => \ForkBB\__('Location'),
|
|
'value' => $this->curUser->location,
|
|
'value' => $this->curUser->location,
|
|
];
|
|
];
|
|
- $form['sets'][] = [
|
|
|
|
- 'id' => 'personal',
|
|
|
|
|
|
+ $form['sets']['personal'] = [
|
|
'class' => 'data-edit',
|
|
'class' => 'data-edit',
|
|
'legend' => \ForkBB\__('Personal information'),
|
|
'legend' => \ForkBB\__('Personal information'),
|
|
'fields' => $fields,
|
|
'fields' => $fields,
|
|
@@ -360,7 +344,6 @@ class Edit extends Profile
|
|
$fields = [];
|
|
$fields = [];
|
|
if ($this->rules->viewOEmail) {
|
|
if ($this->rules->viewOEmail) {
|
|
$fields['open-email'] = [
|
|
$fields['open-email'] = [
|
|
- 'id' => 'open-email',
|
|
|
|
'class' => 'pline',
|
|
'class' => 'pline',
|
|
'type' => 'str',
|
|
'type' => 'str',
|
|
'caption' => \ForkBB\__('Email info'),
|
|
'caption' => \ForkBB\__('Email info'),
|
|
@@ -368,15 +351,13 @@ class Edit extends Profile
|
|
];
|
|
];
|
|
}
|
|
}
|
|
if ($this->rules->editEmail) {
|
|
if ($this->rules->editEmail) {
|
|
- $fields[] = [
|
|
|
|
- 'id' => 'change_email',
|
|
|
|
|
|
+ $fields['change_email'] = [
|
|
'type' => 'link',
|
|
'type' => 'link',
|
|
'value' => \ForkBB\__('To change email'),
|
|
'value' => \ForkBB\__('To change email'),
|
|
'href' => $this->c->Router->link('EditUserEmail', ['id' => $this->curUser->id]),
|
|
'href' => $this->c->Router->link('EditUserEmail', ['id' => $this->curUser->id]),
|
|
];
|
|
];
|
|
}
|
|
}
|
|
$fields['email_setting'] = [
|
|
$fields['email_setting'] = [
|
|
- 'id' => 'email_setting',
|
|
|
|
'class' => 'block',
|
|
'class' => 'block',
|
|
'type' => 'radio',
|
|
'type' => 'radio',
|
|
'value' => $this->curUser->email_setting,
|
|
'value' => $this->curUser->email_setting,
|
|
@@ -406,8 +387,7 @@ class Edit extends Profile
|
|
'href' => \ForkBB\cens($this->curUser->url),
|
|
'href' => \ForkBB\cens($this->curUser->url),
|
|
];
|
|
];
|
|
}
|
|
}
|
|
- $form['sets'][] = [
|
|
|
|
- 'id' => 'contacts',
|
|
|
|
|
|
+ $form['sets']['contacts'] = [
|
|
'class' => 'data-edit',
|
|
'class' => 'data-edit',
|
|
'legend' => \ForkBB\__('Contact details'),
|
|
'legend' => \ForkBB\__('Contact details'),
|
|
'fields' => $fields,
|
|
'fields' => $fields,
|
|
@@ -417,14 +397,12 @@ class Edit extends Profile
|
|
if ($this->rules->useSignature) {
|
|
if ($this->rules->useSignature) {
|
|
$fields = [];
|
|
$fields = [];
|
|
$fields['signature'] = [
|
|
$fields['signature'] = [
|
|
- 'id' => 'signature',
|
|
|
|
'type' => 'textarea',
|
|
'type' => 'textarea',
|
|
'value' => $this->curUser->signature,
|
|
'value' => $this->curUser->signature,
|
|
'caption' => \ForkBB\__('Signature'),
|
|
'caption' => \ForkBB\__('Signature'),
|
|
'info' => \ForkBB\__('Sig max size', \ForkBB\num($this->c->config->p_sig_length), \ForkBB\num($this->c->config->p_sig_lines)),
|
|
'info' => \ForkBB\__('Sig max size', \ForkBB\num($this->c->config->p_sig_length), \ForkBB\num($this->c->config->p_sig_lines)),
|
|
];
|
|
];
|
|
- $form['sets'][] = [
|
|
|
|
- 'id' => 'signature',
|
|
|
|
|
|
+ $form['sets']['signature'] = [
|
|
'class' => 'data-edit',
|
|
'class' => 'data-edit',
|
|
'legend' => \ForkBB\__('Signature'),
|
|
'legend' => \ForkBB\__('Signature'),
|
|
'fields' => $fields,
|
|
'fields' => $fields,
|