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:
22
history.php
22
history.php
@@ -79,7 +79,7 @@ if (isset($success_msg)){
|
||||
}
|
||||
$view .= '
|
||||
<div class="content-header responsive-flex-column pad-top-5">
|
||||
<a href="index.php?page=equipment&equipmentID='.$_GET['equipmentID'].'" class="btn">'.$button_cancel.'</a>
|
||||
<a href="index.php?page=equipment&equipmentID='.$_GET['equipmentID'].'" class="btn">←</a>
|
||||
';
|
||||
|
||||
$view .= '
|
||||
@@ -120,12 +120,8 @@ $view .= '
|
||||
<th>'.$history_label2.'</th>
|
||||
<th class="responsive-hidden">'.$history_label3.'</th>
|
||||
<th class="responsive-hidden">'.$history_label4.'</th>
|
||||
<th>'.$history_label5.'</th>';
|
||||
if ($update_allowed === 1){
|
||||
$view .= ' <th>'.$view_asset_actions.'</th>';
|
||||
}
|
||||
|
||||
$view .= ' </tr>
|
||||
<th>'.$history_label5.'</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
';
|
||||
@@ -148,18 +144,16 @@ $search = ['{', '}', '"',':','[',']',','];
|
||||
$replace = ['', '','','=','','',''];
|
||||
$description = str_replace($search, $replace, $description);
|
||||
|
||||
$view .= '<tr>
|
||||
$view .= '<tr';
|
||||
if ($update_allowed === 1){
|
||||
$view .= ' onclick="window.location.href=\'index.php?page=history_manage&equipmentID='.$_GET['equipmentID'].'&rowID='.$response->historyID.'\'" style="cursor: pointer;"';
|
||||
}
|
||||
$view .= '>
|
||||
<td class="responsive-hidden">'.$response->historyID.'</td>
|
||||
<td>'.$response->type.' </td>
|
||||
<td class="responsive-hidden">'.$response->created.'</td>
|
||||
<td class="responsive-hidden">'.$response->createdby.'</td>
|
||||
<td><div style="overflow-y:scroll;height:200px !important;max-width:300px;"><pre>' . $description . '</pre><div></td>
|
||||
';
|
||||
if ($update_allowed === 1){
|
||||
$view .= ' <td><a href="index.php?page=history_manage&equipmentID='.$_GET['equipmentID'].'&rowID='.$response->historyID.'" class="btn_link">'.$general_view .'</a></td>
|
||||
';
|
||||
}
|
||||
$view .= '
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user