rosehill/blocks/html/people/updatePersonForm.inc

38 lines
1.3 KiB
PHP

<?php
/**
* @copyright 2009 City of Bloomington, Indiana
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
* @author Cliff Ingham <inghamn@bloomington.in.gov>
* @param Person $this->person
*/
?>
<h2>Update Person</h2>
<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>">
<fieldset><legend>Person Info</legend>
<input name="person_id" type="hidden" value="<?php echo $this->person->getId(); ?>" />
<table>
<tr><td><label for="person-firstname" class="required">Firstname</label></td>
<td><input name="person[firstname]" id="person-firstname" value="<?php echo View::escape($this->person->getFirstname()); ?>" />
</td>
</tr>
<tr><td><label for="person-lastname" class="required">Lastname</label></td>
<td><input name="person[lastname]" id="person-lastname" value="<?php echo View::escape($this->person->getLastname()); ?>" />
</td>
</tr>
<tr><td><label for="person-email">Email</label></td>
<td><input name="person[email]" id="person-email" value="<?php echo View::escape($this->person->getEmail()); ?>" />
</td>
</tr>
</table>
<button type="submit" class="submit">Submit</button>
<button type="button" class="cancel" onclick="document.location.href='<?php echo BASE_URL; ?>/people';">
Cancel
</button>
</fieldset>
</form>