<script type="text/template" id="templates/dialogs/import-image.html">
  <div class="dialog-wrapper">
    <h3 class="dialog-head">
      Import Image
      <span class="dialog-close">X</span>
    </h3>
    <div class="dialog-import-body">
      <form action="" method="POST" name="import-image-form">
        <div class="import-section">
          <span class="dialog-section-title">Name :</span><span class="import-image-file-name"></span>
        </div>
        <div class="import-section">
          <div class="import-section-preview-title">Preview :</div>
          <div class="import-section-preview"></div>
        </div>
        <div class="import-section">
          <label class="dialog-section-radio-label">
            <input class="dialog-section-radio" name="import-type" value="single" type="radio" checked="checked">
            Import as single image
          </label>
        </div>
        <div class="import-section import-subsection">
          <span class="dialog-section-title">Resize to</span>
          <input type="text" class="textfield import-size-field" name="resize-width"/>x
          <input type="text" class="textfield import-size-field" name="resize-height"/>
        </div>
        <div class="import-section import-subsection">
          <span class="import-section-title">Smooth resize</span>
          <input type="checkbox" class="checkbox-fix" checked="checked" name="smooth-resize-checkbox" value="1"/>
        </div>
        <div class="import-section">
          <label class="dialog-section-radio-label">
            <input class="dialog-section-radio" name="import-type" value="sheet" type="radio">
            Import as spritesheet
          </label>
        </div>
        <div class="import-section import-subsection">
          <span class="dialog-section-title">Frame size</span>
          <input type="text" class="textfield import-size-field" name="frame-size-x"/>x
          <input type="text" class="textfield import-size-field" name="frame-size-y"/>
        </div>
        <div class="import-section import-subsection">
          <span class="dialog-section-title">Offset</span>
          <input type="text" class="textfield import-size-field" name="frame-offset-x"/>x
          <input type="text" class="textfield import-size-field" name="frame-offset-y"/>
        </div>
        <input type="submit" name="import-submit" class="button button-primary import-button" value="Import"/>
      </form>
    </div>
  </div>
</script>