Skip to content
Snippets Groups Projects
Commit cbc003fd authored by Peter Rotich's avatar Peter Rotich
Browse files

Fixes: usability and style issues

parent c4ab64e0
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ if ($info['error']) { ...@@ -34,7 +34,7 @@ if ($info['error']) {
<table width="100%"> <table width="100%">
<?php <?php
if(!$form) $form = UserForm::getInstance(); if(!$form) $form = UserForm::getInstance();
$form->render(true, 'New User Information'); ?> $form->render(true, 'Create New User'); ?>
</table> </table>
<hr> <hr>
<p class="full-width"> <p class="full-width">
......
...@@ -32,8 +32,8 @@ if ($_POST) ...@@ -32,8 +32,8 @@ if ($_POST)
$.userLookup('ajax.php/tickets/<?php echo $ticket->getId(); ?>/change-user', $.userLookup('ajax.php/tickets/<?php echo $ticket->getId(); ?>/change-user',
function(user) { function(user) {
$('input#user_id').val(user.id); $('input#user_id').val(user.id);
$('#user_name').html(user.name); $('#client-name').html(user.name);
$('#user_email').html('&lt;'+user.email+'&gt;'); $('#client-email').html('&lt;'+user.email+'&gt;');
}); });
return false; return false;
"><i class="icon-edit"></i> Change</a> "><i class="icon-edit"></i> Change</a>
......
...@@ -26,11 +26,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -26,11 +26,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
if ($user) { ?> if ($user) { ?>
<tr><td>Client:</td><td> <tr><td>Client:</td><td>
<div id="client-info"> <div id="client-info">
<input type="hidden" name="uid" id="uid" value="<?php echo $user->getId(); ?>" />
<span id="client-name"><?php echo $user->getName(); ?></span> <span id="client-name"><?php echo $user->getName(); ?></span>
<span id="client-email">&lt;<?php echo $user->getEmail(); ?>&gt;</span> <span id="client-email">&lt;<?php echo $user->getEmail(); ?>&gt;</span>
<a class="action-button" style="float:none;overflow:inherit" href="#" <a class="action-button" style="float:none;overflow:inherit" href="#"
onclick="javascript: onclick="javascript:
$.userLookup('ajax.php/users/select/<?php echo $user->getId(); ?>', $.userLookup('ajax.php/users/select/'+$('input#uid').val(),
function(user) { function(user) {
$('input#uid').val(user.id); $('input#uid').val(user.id);
$('#client-name').html(user.name); $('#client-name').html(user.name);
...@@ -38,7 +39,6 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -38,7 +39,6 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
}); });
return false; return false;
"><i class="icon-edit"></i> Change</a> "><i class="icon-edit"></i> Change</a>
<input type="hidden" name="uid" id="uid" value="<?php echo $user->getId(); ?>" />
</div> </div>
</td></tr> </td></tr>
<?php <?php
......
...@@ -1264,7 +1264,7 @@ time { ...@@ -1264,7 +1264,7 @@ time {
box-shadow: 0 5px 60px #001; box-shadow: 0 5px 60px #001;
border-radius: 5px; border-radius: 5px;
max-height: 72%; max-height: 72%;
overflow-y: scroll; overflow-y: auto;
} }
.redactor_air { .redactor_air {
...@@ -1402,6 +1402,7 @@ time { ...@@ -1402,6 +1402,7 @@ time {
} }
.dialog input[type=submit]:hover, .dialog input[type=submit]:active, .dialog input[type=submit]:hover, .dialog input[type=submit]:active,
.dialog input[type=button]:hover, .dialog input[type=button]:active,
.dialog input[type=reset]:hover, .dialog input[type=reset]:active { .dialog input[type=reset]:hover, .dialog input[type=reset]:active {
background-position:bottom left; background-position:bottom left;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment