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'] = 'equipments';
|
||||
|
||||
//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){
|
||||
@@ -203,7 +203,6 @@ $view .= '
|
||||
<th class="responsive-hidden"></th>
|
||||
<th class="responsive-hidden">'.$general_location.'</th>
|
||||
<th class="responsive-hidden">'.$general_section.'</th>
|
||||
<th>'.$view_asset_actions.'</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -244,7 +243,7 @@ foreach ($media_responses as $media){
|
||||
|
||||
$indicators = overviewIndicators($response->warranty_date,$response->service_date,$response->sw_version, $response->sw_version_latest);
|
||||
|
||||
$view .= '<tr>
|
||||
$view .= '<tr onclick="window.location.href=\'index.php?page=equipment&equipmentID='.$response->equipmentID.'\'" style="cursor: pointer;">
|
||||
<td class="responsive-hidden">'.$indicators.'</td>
|
||||
<td>'.$response->serialnumber.'</td>
|
||||
<td><span class="status id'.$response->status.'">'.$$status_text.'</span></td>
|
||||
@@ -252,7 +251,6 @@ $view .= '<tr>
|
||||
<td class="responsive-hidden">'.(($full_path !='')?'<img style="border-radius: 4px;height: 50px;" src="'.$full_path.'" alt="">' : '').'</td>
|
||||
<td class="responsive-hidden">'.$location.'</td>
|
||||
<td class="responsive-hidden">'.$section.'</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