<!-- BEGIN: MAIN -->
<div class="centerwrap pt20 mb20">
  <div class="w700" style="margin: auto">
    <h1 class="f32 sm-text-center">Добавление вопрос-ответа</h1>
    <div class="block-response mb15">
      <i class="ico-arrow-left dib v-align-m"></i>
      <a class="dib v-align-m f14 color-gray color-text" href="{PHP|cot_url('admin', 'm=market&p=faq')}">Вернуться в админ панель</a>
    </div>
    <div id="foxPostForm" class="pt0 p15-20 white-bg-border w700">
      <form action="{PHP|cot_url('faq', 'm=add&a=add')}" id="sendDodjiRequest" method="POST" name="sendDodjiRequest" enctype="multipart/form-data" class="js-form">
        <div>
          <div class="pt20 pb10 long-touch-js">
            <div>
              <label class="semibold" for="wish_rfaqparent">ID родительской категории</label>
              <input name="rfaqparent" id="wish_rfaqparent" type="text" class="js-rfaqparent-input w700 styled-input styled-input--thin f15" placeholder="" value="{FAQADD_FORM_PARENT}" data-format="val"/>
              <span class="js-rfaqparent-error-field color-red hidden"></span>
            </div>
          </div>
        </div>
        <div>
          <div class="pb10 long-touch-js">
            <div>
              <label class="semibold" for="wish_rfaqtitle">Сформулируйте вопрос</label>
              <input name="rfaqtitle" id="wish_rfaqtitle" type="text" class="js-rfaqtitle-input w700 styled-input styled-input--thin f15" placeholder="Введите вопрос..." value=""/>
              <span class="js-rfaqtitle-error-field color-red hidden"></span>
            </div>
          </div>
        </div>

        <div id="faq_if_haschilds">
          <div>
            <div class="pt10 pb10 long-touch-js">
              <div>
                <label class="semibold" for="wish_rfaqtextstring">
                  Ответ на вопрос (Текст)
                  <a role="button" id="copy_faqtext_tostring">Скопировать из HTML</a>
                  <label class="pull-right">
                    <input type="checkbox" id="auto_faqtext_tostring"/>
                    создать автоматически из HTML
                  </label>
                </label>
                <textarea data-autoresize class="js-rfaqtextstring-input text w700 f15 autoheight-js" style="height:100px;" cols="1" id="wish_rfaqtextstring" name="rfaqtextstring" rows="1"></textarea>
              </div>
              <span class="js-rfaqtextstring-error-field color-red hidden"></span>
            </div>
          </div>
          <div class="clear"></div>
          <div>
            <div class="pt10 pb10 long-touch-js">
              <div>
                <label class="semibold" for="wish_rfaqtext">Ответ на вопрос HTML</label>

                <textarea id="wish_rfaqtext" class="js-rfaqtext-input" data-ckeditor="full" style="" cols="5" name="rfaqtext" rows="5"></textarea>
              </div>
              <span class="js-rfaqtext-error-field color-red hidden"></span>
            </div>
          </div>
        </div>
        <div class="bottom-form-filed mt0 pt0">
          <input type="submit" value="Создать" class="js-sendDodjiRequest__submit green-btn btn--big pull-reset m-wMax w250 mt20"/>
          <input type="hidden" name="action" value="submit"/>
        </div>
      </form>
    </div>
  </div>
</div>

{PHP|ckeditor_init()}

<script src="themes/itbirja/js/pages/new_faq.js" type="text/javascript"></script>
<!-- END: MAIN -->