<script type="text/template" id="templates/settings/import.html">
  <div class="settings-section settings-section-import">
    <div class="settings-title">
      Load from Browser
    </div>
    <div class="settings-item">
      <span>Load a <span class="import-highlight">local piskel</span> saved in this Browser</span>
      <div class="import-section">
        <button type="button" class="button  button-primary browse-local-button">Browse local saves</button>
      </div>
    </div>
    <div class="settings-title">
      Load .piskel file
    </div>
    <div class="settings-item">
      <span>Load a <span class="import-highlight">.piskel</span> file from your computer</span>

      <div class="import-section">
        <button type="button" class="button  button-primary open-piskel-button">Browse .piskel files</button>
        <span class="file-input-open-piskel-status"></span>
        <input style="display:none"
          type="file" name="open-piskel-input"
          value="file" accept=".piskel"/>
      </div>
    </div>
    <div class="settings-title">
      Import From Picture
    </div>
    <div class="settings-item">
      <div style="margin-top:5px;margin-bottom:5px;">Supports <span class="import-highlight">PNG, JPG, BMP, Animated GIF</span></div>
      <div class="import-section">
        <button type="button" class="button  button-primary file-input-button">Browse images</button>
        <input style="display:none"
          type="file" name="file-upload-input"
          value="file" accept="image/*"/>
      </div>
    </div>
    <div class="settings-title">
      Recover recent sessions
    </div>
    <div class="settings-item previous-session">
    </div>
  </div>
</script>

<script type="text/template" id="previous-session-info-template">
  <div>
    Restore a backup of <span style="color:gold">{{name}}</span>, saved at <span style="color:white">{{date}}</span> ?
    <div style="margin-top:10px;">
      <button type="button" class="button  button-primary restore-session-button">Restore</button>
    </div>
  </div>
</script>