<div class="e2-note-publish-preview">
<?php $content['_']['_note'] = $content['notes']['only']; ?>
<?php $content['_']['_note']['_pubpreview'] = true; ?>
<?php _T ('note-snippet') ?>
</div>


<?php _LIB ('jquery.mousewheel') ?>
<?php _LIB ('jquery.actual') ?>
<?php _LIB ('momentjs') ?>
<?php _LIB ('goodyear') ?>
<form
  id="form-note-publish"
  action="<?= @$content['form-note-publish']['form-action'] ?>"
  method="post"
>

<input
  type="hidden"
  name="note-id"
  value="<?= @$content['form-note-publish']['.note-id'] ?>" 
/>

<input
  type="hidden"
  id="token"
  name="token"
  value="<?= $content['sign-in']['token'] ?>"
/>

<input
  type="hidden"
  id="browser-offset"
  name="browser-offset"
  value="unknown"
/>

<script>
d = new Date ()
document.getElementById ('browser-offset').value = - d.getTimezoneOffset()
</script>

<div class="form">

<div class="form-control">
  
  <div class="e2-post-time-control" style="display: none;">
    <div class="form-label input-label">
      <label><?= _S ('ff--post-time') ?></label>
    </div>
    <div class="form-element">
      <div style="display: inline-block;">
        <input type="text"
          tabindex="6"
          class="text width-2 goodyear"
          name="stamp"
          id="stamp"
          placeholder="<?= @$content['form-note-publish']['stamp-formatted'] ?>"
          data-goodyear-language="<?= $content['blog']['language'] ?>"
          data-goodyear-format="DD.MM.YYYY HH:mm:ss"
          data-goodyear-min-year="1970"
          data-goodyear-max-year="2035"
          data-goodyear-min-date="01-01-1970"
          data-goodyear-hour-picker="true"
          data-goodyear-minute-picker="true"
          data-goodyear-minutes-step="1"
          value="<?= @$content['form-note-publish']['stamp-formatted'] ?>"
        />
      </div>

      <a href="#" class="e2-admin-link nu e2-schedule-controls-unrevealer e2-svgi" style="margin-left: 6px"><?= _SVG ('close') ?></a>

    </div>
  </div>

</div>


<div class="form-control e2-publish-now-controls">
  <button type="submit" name="submit-button" value="publish" id="submit-button" class="e2-button e2-submit-button" <?php if (!@$content['form-note-publish']['can-publish?']) echo 'disabled'; ?>>
    <?= @$content['form-note-publish']['submit-text'] ?>
  </button>

  <?php if ($content['form-note-publish']['can-schedule?']) { ?>

  &nbsp;&nbsp;&nbsp;

  <a href="#" class="e2-admin-link nu e2-schedule-controls-revealer e2-svgi e2-svgi-calendar"><?= _SVG ('calendar-bigger') ?></a>

  <?php } ?>

</div>


<div class="form-control e2-schedule-controls" style="display: none">
  <button type="submit" disabled="disabled" name="submit-button" value="schedule" id="submit-schedule-button" class="e2-button e2-submit-button" <?php if (!@$content['form-note-publish']['can-publish?']) echo 'disabled'; ?>>
    <?= @$content['form-note-publish']['submit-schedule-text'] ?>
  </button>
</div>


<?php if (@$content['form-note-publish']['scheduling-promo']) { ?>
<div class="e2-promo-box">
  <span class="e2-paid e2-paid-hanging"><?= _S ('e2--currency-sign') ?></span> <?= $content['form-note-publish']['scheduling-promo'] ?>
</div>
<?php } ?>

</div>

</form>