Refactor UI elements for consistency and clarity
- Updated action buttons across multiple files to use icons (e.g., "Save" to "💾+", "Delete" to "X").
- Replaced "Cancel" button text with a left arrow (←) for a more intuitive navigation experience.
- Removed unnecessary action columns from tables to streamline the interface.
- Enhanced table rows to be clickable for better user interaction, redirecting to relevant management pages.
- Adjusted font sizes and styles in CSS for improved readability and aesthetics.
- Standardized back button functionality to use a left arrow across various pages.
This commit is contained in:
@@ -15,7 +15,7 @@ $prev_page = (isset($_SESSION['origin']) && $_SESSION['origin'] == 'equipments')
|
||||
$page = 'users';
|
||||
|
||||
//create backbutton to prev_origin
|
||||
$back_btn_orgin = ($prev_page != '')? '<a href="'.$prev_page.'" class="btn alt mar-right-2">'.$button_back.'</a>':'';
|
||||
$back_btn_orgin = ($prev_page != '')? '<a href="'.$prev_page.'" class="btn alt mar-right-2">←</a>':'';
|
||||
|
||||
//Check if allowed
|
||||
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||
@@ -125,7 +125,6 @@ $view .= '
|
||||
<th>'.$User_permission.'</th>
|
||||
<th>'.$User_profile.'</th>
|
||||
<th class="responsive-hidden">'.$User_lastlogin.'</th>
|
||||
<th>'.$general_actions.'</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -148,7 +147,7 @@ $view .= '
|
||||
|
||||
$permission_user = 'permission'.$response->view;
|
||||
$view .= '
|
||||
<tr>
|
||||
<tr onclick="window.location.href=\'index.php?page=user&id='.$response->id.'\'" style="cursor: pointer;">
|
||||
<td class="responsive-hidden"></td>
|
||||
<td class="responsive-hidden">'.(($response->login_count > 4)? '<span class="status disabled">'.$User_block:(($response->userkey && $response->userkey !='')? '<span class="status enabled">'.$enabled:'<span class="status">'.$disabled)).'</td>
|
||||
<td class="responsive-hidden">'.(($response->service && $response->service !='')? '<span class="status enabled">'.$enabled:'<span class="status">'.$disabled).'</td>
|
||||
@@ -157,7 +156,6 @@ $view .= '
|
||||
<td>'.$$permission_user.'</td>
|
||||
<td>'.$response->settings.'</td>
|
||||
<td class="responsive-hidden">'.getRelativeTime($response->lastlogin).'</td>
|
||||
<td><a href="index.php?page=user&id='.$response->id.'" class="btn_link">'.$general_view .'</a></td>
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user