Files
gallery3/modules/gallery/views/in_place_edit.html.php
Tim Almdal e300ede3d8 1) Change the name of the form and message to g-in-place-edit-form and g-in-place-edit-message.
2) Make sure the cancel button works and cleans up the dom appropriately.
2009-11-07 00:05:49 -08:00

17 lines
670 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= form::open($action, array("method" => "post", "id" => "g-in-place-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-in-place-edit-message" class="g-error"><?= $errors["input"] ?></div>
<? endif ?>