Removing optional items ... eventually will remove city and country as well.
This stuff will all be set via the user profile, and will be customisable by the admin or teacher as well.
This commit is contained in:
+2
-22
@@ -14,12 +14,6 @@
|
||||
if (empty($user->lastname)) {
|
||||
$user->lastname = "";
|
||||
}
|
||||
if (empty($user->idnumber)) {
|
||||
$user->idnumber = "";
|
||||
}
|
||||
if (empty($user->phone)) {
|
||||
$user->phone = "";
|
||||
}
|
||||
if (empty($user->city)) {
|
||||
$user->city = "";
|
||||
}
|
||||
@@ -71,20 +65,6 @@
|
||||
<?php if (!empty($err->lastname)) { formerr($err->lastname);} ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td><p><?php print_string("idnumber") ?>:</p></td>
|
||||
<td><input type="text" name="idnumber" size="25" value="<?php p($user->idnumber) ?>" />
|
||||
(<?php print_string("optional") ?>)
|
||||
<?php if (!empty($err->idnumber)) { formerr($err->idnumber);} ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td><p><?php print_string("phone") ?>:</p></td>
|
||||
<td><input type="text" name="phone" size="25" value="<?php p($user->phone) ?>" />
|
||||
(<?php print_string("optional") ?>)
|
||||
<?php if (!empty($err->phone)) { formerr($err->phone);} ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td><p><?php print_string("city") ?>:</p></td>
|
||||
<td><input type="text" name="city" size="25" value="<?php p($user->city) ?>" />
|
||||
@@ -100,8 +80,8 @@
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" value="<?php print_string("createaccount") ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</td></tr></table>
|
||||
|
||||
Reference in New Issue
Block a user