Files
gallery3/modules/gallery/views/in_place_edit.html.php
shadlaws 73139982c7 #2032 - Fix short form submit/cancel button formatting.
- fixed the height of the submit buttons to match the input box
- changed the cancel links into cancel buttons
- added the hover effect to the buttons when used in in_place_edit (e.g. admin/tags)
2013-03-02 23:00:02 +01:00

22 lines
747 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")) ?>
<?= access::csrf_form_field() ?>
<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><button class="g-cancel ui-state-default ui-corner-all"><?= t("Cancel") ?></button></li>
<? if (!empty($errors["input"])): ?>
<li>
<p id="g-in-place-edit-message" class="g-error"><?= $errors["input"] ?></p>
</li>
<? endif ?>
</ul>
</form>