added maxlength
This commit is contained in:
parent
14f9f247bc
commit
b678720ebd
|
@ -2,19 +2,19 @@
|
||||||
|
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<label for="nick">Username</label>
|
<label for="nick">Username</label>
|
||||||
<input type="text" name="nick" id="nick" required>
|
<input type="text" name="nick" id="nick" maxlength="20" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="new_password">Password</label>
|
<label for="new_password">Password</label>
|
||||||
<input type="password" name="new_password" id="new_password" required>
|
<input type="password" name="new_password" id="new_password" maxlength="40" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="first">First</label>
|
<label for="first">First</label>
|
||||||
<input type="text" name="first" id="first" required>
|
<input type="text" name="first" id="first" maxlength="40" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="last">Last</label>
|
<label for="last">Last</label>
|
||||||
<input type="text" name="last" id="last" required>
|
<input type="text" name="last" id="last" maxlength="40" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="is_admin">Is Admin</label>
|
<label for="is_admin">Is Admin</label>
|
||||||
|
|
|
@ -4,19 +4,19 @@
|
||||||
<input type="hidden" name="id" value="<?= $editUser->getId() ?>">
|
<input type="hidden" name="id" value="<?= $editUser->getId() ?>">
|
||||||
|
|
||||||
<label for="nick">Username</label>
|
<label for="nick">Username</label>
|
||||||
<input type="text" name="nick" id="nick" value="<?= $editUser->getNick() ?>" required>
|
<input type="text" name="nick" id="nick" value="<?= $editUser->getNick() ?>" maxlength="20" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="new_password">Password (leave empty to keep the current one)</label>
|
<label for="new_password">Password (leave empty to keep the current one)</label>
|
||||||
<input type="password" name="new_password" id="new_password">
|
<input type="password" name="new_password" id="new_password" maxlength="40">
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="first">First</label>
|
<label for="first">First</label>
|
||||||
<input type="text" name="first" id="first" value="<?= $editUser->getFirst() ?>" required>
|
<input type="text" name="first" id="first" value="<?= $editUser->getFirst() ?>" maxlength="40" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="last">Last</label>
|
<label for="last">Last</label>
|
||||||
<input type="text" name="last" id="last" value="<?= $editUser->getLast() ?>" required>
|
<input type="text" name="last" id="last" value="<?= $editUser->getLast() ?>" maxlength="40" required>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<label for="is_admin">Is Admin</label>
|
<label for="is_admin">Is Admin</label>
|
||||||
|
|
|
@ -18,12 +18,12 @@
|
||||||
<?php foreach ($addresses as $address): ?>
|
<?php foreach ($addresses as $address): ?>
|
||||||
<?php $id = $address->getId(); ?>
|
<?php $id = $address->getId(); ?>
|
||||||
<tr id="row_<?= $id ?>">
|
<tr id="row_<?= $id ?>">
|
||||||
<td><input type="text" id="first_<?= $id ?>" value="<?= $address->getFirst(); ?>" disabled></td>
|
<td><input type="text" id="first_<?= $id ?>" value="<?= $address->getFirst(); ?>" maxlength="80" disabled></td>
|
||||||
<td><input type="text" id="last_<?= $id ?>" value="<?= $address->getLast(); ?>" disabled></td>
|
<td><input type="text" id="last_<?= $id ?>" value="<?= $address->getLast(); ?>" maxlength="80" disabled></td>
|
||||||
<td><input type="text" id="street_<?= $id ?>" value="<?= $address->getStreet(); ?>" disabled></td>
|
<td><input type="text" id="street_<?= $id ?>" value="<?= $address->getStreet(); ?>" maxlength="80" disabled></td>
|
||||||
<td><input type="text" id="zip_<?= $id ?>" value="<?= $address->getZip(); ?>" disabled></td>
|
<td><input type="text" id="zip_<?= $id ?>" value="<?= $address->getZip(); ?>" maxlength="10" disabled></td>
|
||||||
<td><input type="text" id="city_<?= $id ?>" value="<?= $address->getCity(); ?>" disabled></td>
|
<td><input type="text" id="city_<?= $id ?>" value="<?= $address->getCity(); ?>" maxlength="80" disabled></td>
|
||||||
<td><input type="text" id="phone_<?= $id ?>" value="<?= $address->getPhone(); ?>" disabled></td>
|
<td><input type="text" id="phone_<?= $id ?>" value="<?= $address->getPhone(); ?>" maxlength="30" disabled></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="button" value="Edit" id="edit_button_<?= $id ?>" onclick="editAddress('<?= $id ?>')">
|
<input type="button" value="Edit" id="edit_button_<?= $id ?>" onclick="editAddress('<?= $id ?>')">
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue