<!-- BEGIN: MAIN -->
<div class="centerwrap pt20 mb20">
  <div class="w700" style="margin: auto">
    <h1 class="f32 sm-text-center">{PAGEEDIT_PAGETITLE} #{PAGEEDIT_FORM_ID}</h1>

    {FILE "{PHP.cfg.themes_dir}/{PHP.usr.theme}/warnings.tpl"}

    <div class="pt0 p15-20 white-bg-border w700">
      <form action="{PAGEEDIT_FORM_SEND}" enctype="multipart/form-data" method="post" name="pageform">
        <input type="hidden" name="rpageparser" value="html" />
        <div class="pt10">
          <div class="mt20 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">Статус: <b>{PAGEEDIT_FORM_LOCALSTATUS}</b></label>
            </div>
          </div>
        </div>
        <div class="pt10">
          <div style="float: left; width: 50%">
            <div>
              <div>
                <label class="semibold" for="category">Категория</label>
              </div>
              {PAGEEDIT_FORM_CAT|cot_rc_modify($this, 'class="select-styled select-styled--thin long-touch-js f15 parents dib mr10 w90p"')}
            </div>
          </div>
          <div style="float: left; width: 50%">
            <div class="long-touch-js">
              <div>
                <label class="semibold" for="wish_description">{PHP.L.Alias}</label>
                <br/>
                {PAGEEDIT_FORM_ALIAS|cot_rc_modify($this, 'class="js-title-input w700 styled-input styled-input--thin f15"')}
              </div>
            </div>
          </div>
          <div class="clear"></div>
        </div>
        <div>
          <div class="mt20 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">{PHP.L.Title}</label>
              <br/>
              {PAGEEDIT_FORM_TITLE|cot_rc_modify($this, 'class="js-title-input w700 styled-input styled-input--thin f15"')}
            </div>
          </div>
        </div>
        <div>
          <div class="mt10 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">{PHP.L.Description}</label>
              <br/>
              {PAGEEDIT_FORM_DESC|cot_rc_modify($this, 'data-autoresize class="js-description-input text w700 f15 autoheight-js" style="height:auto;padding-bottom: 5px;"')}
            </div>
          </div>
        </div>

        <div>
          <div class="mt40 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">Превью</label>
              <br/>
              {PAGEEDIT_FORM_IMG}
            </div>
          </div>
        </div>
        <div>
          <div class="mt10 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">HTML</label>
              <br/>
              {PAGEEDIT_FORM_TEXT|cot_rc_modify($this, 'cols="5" data-ckeditor="full"')}
            </div>
          </div>
        </div>

        <div>
          <div class="mt40 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">{PHP.L.page_metatitle}</label>
              <br/>
              {PAGEEDIT_FORM_METATITLE|cot_rc_modify($this, 'class="js-title-input w700 styled-input styled-input--thin f15"')}
            </div>
          </div>
        </div>
        <div>
          <div class="mt10 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">{PHP.L.page_metadesc}</label>
              <br/>
              {PAGEEDIT_FORM_METADESC|cot_rc_modify($this, 'data-autoresize class="js-description-input text w700 f15 autoheight-js" style="height:auto;padding-bottom: 5px;"')}
            </div>
          </div>
        </div>
        <div>
          <div class="mt10 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">{PHP.L.page_metakeywords}</label>
              <br/>
              {PAGEEDIT_FORM_KEYWORDS|cot_rc_modify($this, 'class="js-title-input w700 styled-input styled-input--thin f15"')}
            </div>
          </div>
        </div>
        <div>
          <div>
            <div class="mt10 long-touch-js" style="float: left; width: 50%">
              <div>
                <label class="semibold" for="wish_description">{PHP.L.Begin}</label>
                <br/>
                {PAGEEDIT_FORM_BEGIN}
                <br/>
                {PAGEEDIT_FORM_DATENOW} {PHP.L.page_date_now}
              </div>
            </div>
          </div>
          <div>
            <div class="mt10 long-touch-js" style="float: left; width: 50%">
              <div>
                <label class="semibold" for="wish_description">{PHP.L.Expire}</label>
                <br/>
                {PAGEEDIT_FORM_EXPIRE}
              </div>
            </div>
          </div>
          <div class="clear"></div>
        </div>

        <div>
          <div>
            <div class="mt10 long-touch-js" style="float: left; width: 50%">
              <div>
                <label class="semibold" for="wish_description">{PHP.L.Owner}</label>
                <br/>
                {PAGEEDIT_FORM_OWNERID|cot_rc_modify($this, 'class="js-title-input w700 styled-input styled-input--thin f15"')}
              </div>
            </div>
          </div>
          <div>
            <div class="mt10 long-touch-js" style="float: left; width: 50%">
              <div>
                <label class="semibold" for="wish_description">{PHP.L.Hits}</label>
                <br/>
                {PAGEEDIT_FORM_PAGECOUNT|cot_rc_modify($this, 'class="js-title-input w700 styled-input styled-input--thin f15"')}
              </div>
            </div>
          </div>
          <div class="clear"></div>
        </div>
        <div>
          <div class="mt10 long-touch-js">
            <div>
              <label class="semibold" for="wish_description">{PHP.L.page_deletepage}</label>
              <br/>
              {PAGEEDIT_FORM_DELETE}
            </div>
          </div>
        </div>

        <div class="clear"></div>
        <div class="bottom-form-filed mt0 pt20">
          <!-- IF {PHP.usr_can_publish} -->
						<button type="submit" name="rpagestate" value="0" class="green-btn pull-reset m-wMax w250 mr5">{PHP.L.Publish}</button>
					<!-- ENDIF -->
          <button type="submit" name="rpagestate" value="2" class="white-btn pull-reset m-wMax mr5">{PHP.L.Saveasdraft}</button>
					<button type="submit" name="rpagestate" value="1" class="orange-btn pull-reset m-wMax">{PHP.L.Submitforapproval}</button>
          <br>
          <div class="help mt20">{PHP.L.page_formhint}</div>
        </div>
      </form>
    </div>
  </div>
</div>

{PHP|ckeditor_init()}
<!-- END: MAIN -->