Update style and templates for PM

This commit is contained in:
Visman 2021-04-05 14:14:49 +07:00
parent 397b165f71
commit 968b1e0a2e
5 changed files with 12 additions and 12 deletions

View file

@ -1,6 +1,6 @@
@extends ('layouts/pm')
@if ($form = $p->form)
<section class="f-pmform f-{{ $p->formClass }}-form">
<section class="f-pm f-pm-form f-{{ $p->formClass }}-form">
<h2>{!! __($p->formTitle) !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')

View file

@ -1,6 +1,6 @@
@extends ('layouts/pm')
@if ($p->previewHtml)
<section class="f-preview">
<section class="f-pm f-preview">
<h2>{!! __('Post preview') !!}</h2>
<div class="f-post-body">
<div class="f-post-main">
@ -10,7 +10,7 @@
</section>
@endif
@if ($form = $p->form)
<section class="f-post-form">
<section class="f-pm f-post-form">
<h2>{!! __($p->formTitle) !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')
@ -18,7 +18,7 @@
</section>
@endif
@if ($p->posts)
<section class="f-view-posts">
<section class="f-pm f-view-posts">
<h2>{!! __($p->postsTitle) !!}</h2>
@foreach ($p->posts as $post)
@if ($post->id)

View file

@ -20,7 +20,7 @@
@endif
@endsection
@extends ('layouts/pm')
<div class="f-nav-links">
<div class="f-pm f-nav-links">
<div class="f-nlinks-b f-nlbpm">
@yield ('pagination')
<div class="f-actions-links">
@ -34,7 +34,7 @@
</div>
</div>
</div>
<section class="f-topic">
<section class="f-pm f-topic">
<h2>{{ $p->model->name }}</h2>
@foreach ($p->posts as $id => $post)
@if (empty($post->id) && $iswev = ['e' => [['Message %s was not found in the database', $id]]])
@ -127,7 +127,7 @@
@endif
@endforeach
</section>
<div class="f-nav-links">
<div class="f-pm f-nav-links">
@if ($p->form)
<div class="f-nlinks">
@else
@ -143,7 +143,7 @@
</div>
</div>
@if ($form = $p->form)
<section class="f-post-form">
<section class="f-pm f-post-form">
<h2>{!! __('Quick post') !!}</h2>
<div class="f-fdiv">
@include ('layouts/form')

View file

@ -21,7 +21,7 @@
@endsection
@extends ('layouts/pm')
@if ($p->pagination)
<div class="f-nav-links">
<div class="f-pm f-nav-links">
<div class="f-nlinks-b f-nlbpm">
@yield ('pagination')
</div>
@ -90,7 +90,7 @@
@endif
</section>
@if ($p->pagination || $p->form)
<div class="f-nav-links">
<div class="f-pm f-nav-links">
<div class="f-nlinks-a f-nlbpm">
@if ($form = $p->form)
<div class="f-actions-links">

View file

@ -2498,12 +2498,12 @@ html[lang="ru"] #fork details[open] > summary::after {
border-top-style: dotted;
}
#forkpm > :last-child,
#forkpm > .f-pm:last-child,
#forkpm .f-nlbpm {
margin-bottom: 0;
}
#forkpm > :first-child,
#forkpm > .f-pm:first-child,
#forkpm .f-nlbpm {
margin-top: 0;
}