meta/app/views/edit_form.php

22 lines
843 B
PHP
Raw Normal View History

2012-09-12 10:36:43 -04:00
<form method="post" action="javascript:meta.update_item()" id="edit_form">
2012-08-31 16:18:23 -04:00
<fieldset>
<legend>Edit <?= ucfirst($type) ?></legend>
<dl>
<?php if ($type != 'data'): ?>
2012-09-12 10:36:43 -04:00
<dt><label for="name"><?= ucfirst($type) ?></label></dt>
<dd><input type="text" value="<?= $val ?>" name="name" id="name" /></dd>
2012-08-31 16:18:23 -04:00
<?php else: ?>
2012-09-12 10:36:43 -04:00
<dt><label for="name">Name:</label></dt>
2012-08-31 16:18:23 -04:00
<dd><input type="text" value="<?= $name ?>" id="name" name="name" /></dd>
<dt><label for="val">Value:</label></dt>
2012-09-12 10:36:43 -04:00
<dd><textarea id="val" name="val" rows="5" cols="40"><?= $val ?></textarea></dd>
2012-08-31 16:18:23 -04:00
<?php endif ?>
2012-09-12 10:36:43 -04:00
<dt>
<input type="hidden" id="id" name="id" value="<?= $id ?>" />
<input type="hidden" id="type" name="type" value="<?= $type ?>" />
</dt>
<dd><button type="submit" class="save">Save Changes</button></dd>
2012-08-31 16:18:23 -04:00
</dl>
</fieldset>
</form>