Sfoglia il codice sorgente

Update form template

Delete bbcode flags.
Visman 3 anni fa
parent
commit
dff090f74f

+ 5 - 13
app/Models/Pages/PostFormTrait.php

@@ -84,19 +84,11 @@ trait PostFormTrait
         }
 
         $fieldset['message'] = [
-            'class'    => ['w0'],
-            'type'     => 'textarea',
-            'caption'  => 'Message',
-            'required' => true,
-            'value'    => $vars['message'] ?? null,
-/* ????
-            'bb'       => [
-                ['link', __('BBCode'), __('1' == $this->c->config->p_message_bbcode ? 'on' : 'off')],
-                ['link', __('url tag'), __('1' == $this->c->config->p_message_bbcode && '1' == $this->user->g_post_links ? 'on' : 'off')],
-                ['link', __('img tag'), __('1' == $this->c->config->p_message_bbcode && '1' == $this->c->config->p_message_img_tag ? 'on' : 'off')],
-                ['link', __('Smilies'), __('1' == $this->c->config->o_smilies ? 'on' : 'off')],
-            ],
-*/
+            'class'     => ['w0'],
+            'type'      => 'textarea',
+            'caption'   => 'Message',
+            'required'  => true,
+            'value'     => $vars['message'] ?? null,
             'autofocus' => $autofocus,
         ];
         $form['sets']['uesm'] = [

+ 0 - 7
app/templates/layouts/form.forkbb.php

@@ -26,13 +26,6 @@
                 <input @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl f-ytxt" id="id-{{ $key }}" name="{{ $key }}" type="text" @if ($cur['maxlength']) maxlength="{{ $cur['maxlength'] }}" @endif @if ($cur['pattern']) pattern="{{ $cur['pattern'] }}" @endif @isset ($cur['value']) value="{{ $cur['value'] }}" @endisset>
                 @elseif ('textarea' === $cur['type'])
                 <textarea @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl f-ytxtarea" id="id-{{ $key }}" name="{{ $key }}">{{ $cur['value'] or '' }}</textarea>
-                    @if ($cur['bb'])
-                <ul class="f-fbbul">
-                        @foreach ($cur['bb'] as $val)
-                  <li><span><a href="{{ $val[0] }}">{!! $val[1] !!}</a> {!! $val[2] !!}</span></li>
-                        @endforeach
-                </ul>
-                    @endif
                 @elseif ('select' === $cur['type'])
                 <select @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}">
                     @if (null === ($count = null) && \is_array(\reset($cur['options'])) && 1 === \count(\reset($cur['options'])) && $count = 0) @endif