diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-05 12:55:06 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-05 13:00:41 -0800 |
| commit | 03408f3e39bbb0b407b2949721090dd6b07913ac (patch) | |
| tree | ca54f73d366cb3050cc3f6d5aa86d716bb7bc643 /modules/gallery/views | |
| parent | 88852c45eac5981a4cd82f3207df1fad0cf51fcc (diff) | |
Refactor the in place editting in tags admin out into a separate widget as part ofthe gallery module. Create the jQuery widget, form template and library to support generalized in place editting. Part of the fix for ticket #750.
Diffstat (limited to 'modules/gallery/views')
| -rw-r--r-- | modules/gallery/views/in_place_edit.html.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/gallery/views/in_place_edit.html.php b/modules/gallery/views/in_place_edit.html.php new file mode 100644 index 00000000..5cc42cd6 --- /dev/null +++ b/modules/gallery/views/in_place_edit.html.php @@ -0,0 +1,24 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<style> + #g-inplace-edit-form ul { + margin: 0; + } + #g-inplace-edit-message { +background-color: #FFF; + } +</style> +<?= form::open($action, array("method" => "post", "id" => "g-inplace-edit-form", "class" => "g-short-form"), $hidden) ?> + <ul> + <li <? if (!empty($errors["input"])): ?> class="g-error"<? endif ?>> + <?= form::input("input", $form["input"], " class='textbox'") ?> + </li> + <li> + <?= form::submit(array("class" => "submit ui-state-default"), t("Save")) ?> + </li> + <li><a href="#" class="g-cancel"><?= t("Cancel") ?></a></li> + </ul> +<?= form::close() ?> +<? if (!empty($errors["input"])): ?> +<div id="g-inplace-edit-message" class="g-error"><?= $errors["input"] ?></div> +<? endif ?> + |
