summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-09 22:41:14 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-09 22:41:14 +0200
commit4808179f5f11f77bfc38f8b6dc41a6d88bd3b192 (patch)
tree3b9000dbd846e59383e944827bc8710121933d25 /application
parent712c0c158e468220a91884394be2c8e53957c628 (diff)
Add delete support to thumbnail history
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/views/file/upload_history_thumbnails.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/application/views/file/upload_history_thumbnails.php b/application/views/file/upload_history_thumbnails.php
index 55ee90191..f21ffcb23 100644
--- a/application/views/file/upload_history_thumbnails.php
+++ b/application/views/file/upload_history_thumbnails.php
@@ -1,10 +1,19 @@
+<div class="pull-right">
+ <?php echo form_open("file/do_delete/", array("id" => "delete_form", "style" => "display: inline")); ?>
+ <button class="btn btn-danger" id="delete_button" style="display: none">Delete selected</button>
+ </form>
+ <button class="btn" id="toggle_delete_mode" style="display: inline">Delete mode</button>
+</div>
+
<?php include 'nav_history.php'; ?>
+
<!-- Comment markers background: http://stackoverflow.com/a/14776780/953022 -->
<div class="upload_history_thumbnails"><!--
<?php foreach($query as $key => $item): ?>
- --><a href="<?php echo site_url("/".$item["id"]); ?>" title="<?php echo htmlentities($item["filename"]); ?>" data-content="<?php echo htmlentities($item["tooltip"]); ?>" ><img class="thumb" src="<?php echo site_url("file/thumbnail/".$item["id"]); ?>"></a><!--
+ --><a href="<?php echo site_url("/".$item["id"]); ?>" title="<?php echo htmlentities($item["filename"]); ?>" data-content="<?php echo htmlentities($item["tooltip"]); ?>" data-id="<?php echo $item["id"]; ?>"><img class="thumb" src="<?php echo site_url("file/thumbnail/".$item["id"]); ?>"></a><!--
<?php endforeach; ?>
---></div>
+ -->
+</div>
<div class="row-fluid">
<div class="span12 alert alert-block alert-info">