Commit 142597d6 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Fix error display issue when adding new users



The middle column in the user add page (admin/users/add.php)
did not wrap the error text.

Also fixed the error so that it is aligned the same as the
errors in the first column

Bug #779721

Change-Id: I323d7e813ee394329b8bed9668a1e170d191ba7b
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent bc4cc476
......@@ -49,10 +49,13 @@ echo $form_tag;
<?php foreach(array('username', 'password', 'staff', 'admin', 'quota', 'authinstance', 'institutionadmin') as $field) { ?>
<tr>
<th><?php echo $elements[$field]['labelhtml']; ?></th>
<td><?php echo $elements[$field]['html'];
if (isset($elements[$field]['error'])) { echo '<div class="errmsg">' . $elements[$field]['error'] . '</div>'; }
?></td>
<td><?php echo $elements[$field]['html']; ?></td>
</tr>
<?php if (isset($elements[$field]['error'])) { ?>
<tr>
<td class="errmsg" colspan="2"><?php echo $elements[$field]['error']; ?></td>
</tr>
<?php } ?>
<?php } ?>
</table>
</td>
......
......@@ -479,7 +479,6 @@ table.tablerenderer th.desc {
white-space: nowrap;
}
#adduser td.step2 td {
white-space: nowrap;
text-align: left;
}
#adduser td.step3 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment