Browse Source

Change header display in confirmation forms

For PM.
Visman 4 years ago
parent
commit
8e3e8c741a

+ 1 - 1
app/Models/Pages/PM/PMView.php

@@ -65,7 +65,7 @@ class PMView extends AbstractPM
                 if (null === $v->action) {
                     $this->nameTpl    = 'pm/form';
                     $this->form       = $this->formConfirm($v, $this->args);
-                    $this->formId     = 'id-pmcnfrm-form';
+                    $this->formClass  = 'post';
                     $this->formTitle  = Cnst::PT_ARCHIVE === $this->vStatus ? 'InfoSaveQt' : 'InfoDeleteQt';
                     $this->pmCrumbs[] = __(Cnst::PT_ARCHIVE === $this->vStatus ? 'InfoSaveQ' : 'InfoDeleteQ');
 

+ 1 - 1
app/templates/pm/form.forkbb.php

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

+ 0 - 5
public/style/ForkBB/style.css

@@ -2455,11 +2455,6 @@ html[lang="ru"] #fork details[open] > summary::after {
   margin: 0 0 0.625rem 0;
 }
 
-#id-pmcnfrm-form.f-pmform .f-fbtn {
-  width: auto;
-  display: inline-block;
-}
-
 @media screen and (min-width: 50rem) {
   #fork .f-nav-pm-links {
     margin-right: 0;