Update Profile pages
For H2 title.
This commit is contained in:
parent
266c00c210
commit
dd60644198
5 changed files with 11 additions and 5 deletions
|
@ -69,7 +69,11 @@ abstract class Profile extends Page
|
|||
$crumbs[] = [$this->curUser->link, ['User %s', $this->curUser->username]];
|
||||
$crumbs[] = [$this->c->Router->link('Userlist'), 'User list'];
|
||||
|
||||
return parent::crumbs(...$crumbs);
|
||||
$result = parent::crumbs(...$crumbs);
|
||||
|
||||
$this->profileHeader = \end($result)[1];
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -344,7 +344,7 @@ class Edit extends Profile
|
|||
}
|
||||
$form['sets']['header'] = [
|
||||
'class' => ['header-edit'],
|
||||
# 'legend' => 'Options',
|
||||
'legend' => 'Essentials',
|
||||
'fields' => $fields,
|
||||
];
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ class View extends Profile
|
|||
}
|
||||
$form['sets']['header'] = [
|
||||
'class' => ['header'],
|
||||
# 'legend' => 'Options',
|
||||
'legend' => 'Essentials',
|
||||
'fields' => $fields,
|
||||
];
|
||||
|
||||
|
|
|
@ -20,11 +20,12 @@
|
|||
@endif
|
||||
</div>
|
||||
@if ($form = $p->form)
|
||||
<div id="fork-profile" class="f-main">
|
||||
<section id="fork-profile" class="f-main">
|
||||
<h2>@if ($p->profileHeader === $p->curUser->username){{ $p->profileHeader }} @else{!! __($p->profileHeader) !!} @endif</h2>
|
||||
<div class="f-fdiv">
|
||||
@include ('layouts/form')
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@if ($form = $p->formOAuth)
|
||||
<div id="fork-oauth" class="f-main">
|
||||
|
|
|
@ -2599,6 +2599,7 @@ body,
|
|||
height: auto;
|
||||
}
|
||||
|
||||
#fork .f-fs-header-edit .f-fleg,
|
||||
#fork .f-fs-data-edit .f-fleg {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue