<?php

if (!defined('KIRBY')) {
    die('Direct access is not allowed');
}
if ($panel->action != 'delete-file') {
    return;
}
$action = action::deleteFile();
$file = data::fileByFilename();
if (!$file) {
    go(showurl('files'));
}
?>
<div class="overlay delete-file">

  <form method="post">

    <?php 
growl($action);
?>

    <fieldset>
      <h3><?php 
echo l::get('files.delete.title');
?>
</h3>
      
      <div class="field">
        <label><?php 
echo html($file->filename());