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:
@@ -14,7 +14,7 @@ $prev_page = $_SESSION['prev_origin'] ?? '';
|
||||
$page = $_SESSION['origin'] = 'report_healthindex';
|
||||
|
||||
//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){
|
||||
@@ -164,7 +164,6 @@ $view .= '
|
||||
<th class="responsive-hidden"></th>
|
||||
<th class="responsive-hidden">'.$general_soldto.'</th>
|
||||
<th class="responsive-hidden">'.$general_shipto.'</th>
|
||||
<th>'.$view_asset_actions.'</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -190,7 +189,7 @@ $shipto = getPartnerName($partner_data->shipto) ?? $not_specified;
|
||||
$picture = glob("./assets/images/products/".$response->productcode.".{jpg,jpeg,png,gif}", GLOB_BRACE);
|
||||
$indicators = overviewIndicators($response->warranty_date,$response->service_date,$response->sw_version,$response->hw_version);
|
||||
|
||||
$view .= '<tr>
|
||||
$view .= '<tr onclick="window.location.href=\'index.php?page=equipment&equipmentID='.$response->equipmentid.'\'" style="cursor: pointer;">
|
||||
<td class="responsive-hidden"><span class="status '.(($response->healthindex >= 85) ?'enabled' : (($response->healthindex <= 50)? 'disabled' : 'id2')).'">'.$response->healthindex.'</span></td>
|
||||
<td class="responsive-hidden">'.$indicators.'</td>
|
||||
<td>'.$response->serialnumber.'</td>
|
||||
@@ -205,7 +204,7 @@ $view .= ' <td class="responsive-hidden">';
|
||||
$view .= ' </td>
|
||||
<td class="responsive-hidden">'.$soldto.'</td>
|
||||
<td class="responsive-hidden">'.$shipto.'</td>
|
||||
<td><a href="index.php?page=equipment&equipmentID='.$response->equipmentid.'" class="btn_link">'.$general_view .'</a></td>
|
||||
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user