{#
 # Saku Gateway Delete File Form.
 # Copyright (c) 2005 shinGETsu Project.
 #}
<form method="post" action="{{admin_cgi}}">
<div class="form-group">
  <input type="hidden" name="cmd" value="xfdel" />
  <input type="hidden" name="sid" value="{{sid}}" />
  <input type="submit" value="{{message.remove}}" class="btn btn-danger" />
  <button type="button" onclick="history.back()" class="btn">{{message.cancel}}</button>
</div>

{% for cache in files %}
  {% if cache.exists() %}
    <h2><input type="checkbox" checked="checked" name="file" value="{{cache.datfile}}" />{{gettitle(cache)}}</h2>
    {% for rec in getcontents(cache) %}
      <p>{{rec}}</p>
    {% endfor %}
  {% else %}
    <p>{{cache.datfile}}: {{message.no_file}}</p>
  {% endif %}
{% endfor %}
</form>
