summaryrefslogtreecommitdiff
path: root/core/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-05 08:05:50 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-05 08:05:50 +0000
commit7482b6683eb0cabb9841f839a474d25b4257fc91 (patch)
tree94471660020e8d307affc1a6e1eaaa10f1fda1bd /core/views
parent0b473327c58df6d6261270cd007421e42eda3d29 (diff)
Add "quick edit" which lets you edit a photo's details from the albums
page.
Diffstat (limited to 'core/views')
-rw-r--r--core/views/quick_edit.html.php15
-rw-r--r--core/views/quick_pane.html.php21
2 files changed, 21 insertions, 15 deletions
diff --git a/core/views/quick_edit.html.php b/core/views/quick_edit.html.php
deleted file mode 100644
index 940c5c2a..00000000
--- a/core/views/quick_edit.html.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.") ?>
-<? if ($item->type == "photo"): ?>
-<div class="rotate-counter-clockwise"
- quick_link="<?= url::site("quick/rotate/$item->id/ccw?csrf=" . access::csrf_token()) ?>">
- <span>
- <?= _("Rotate CCW") ?>
- </span>
-</div>
-<div class="rotate-clockwise"
- quick_link="<?= url::site("quick/rotate/$item->id/cw?csrf=" . access::csrf_token()) ?>">
- <span>
- <?= _("Rotate CCW") ?>
- </span>
-</div>
-<? endif ?>
diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php
new file mode 100644
index 00000000..88da9d3e
--- /dev/null
+++ b/core/views/quick_pane.html.php
@@ -0,0 +1,21 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<? if ($item->type == "photo"): ?>
+<div class="rotate-counter-clockwise"
+ href="<?= url::site("quick/rotate/$item->id/ccw?csrf=" . access::csrf_token()) ?>">
+ <span>
+ <?= _("Rotate CCW") ?>
+ </span>
+</div>
+<div class="edit gDialogLink"
+ href="<?= url::site("quick/form_edit/$item->id") ?>">
+ <span>
+ <?= _("Edit") ?>
+ </span>
+</div>
+<div class="rotate-clockwise"
+ href="<?= url::site("quick/rotate/$item->id/cw?csrf=" . access::csrf_token()) ?>">
+ <span>
+ <?= _("Rotate CCW") ?>
+ </span>
+</div>
+<? endif ?>