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:
“VeLiTi”
2025-12-15 17:08:44 +01:00
parent bdb460c046
commit ec20d44267
67 changed files with 153 additions and 216 deletions

View File

@@ -15,7 +15,7 @@ $page = $_SESSION['origin'] = 'report_contracts_billing';
$prev_page = ($_SESSION['origin'] == 'equipments') ? $_SESSION['prev_origin_equipment'] : (($_SESSION['origin'] == 'account')? $_SESSION['prev_origin'] :'');
//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){
@@ -158,7 +158,6 @@ $view .= '
<th>'.$contract_service_2.'</th>
<th>'.$contract_overrun.'</th>
<th>'.$contract_reference.'</th>
<th>'.$general_actions.'</th>
</tr>
</thead>
<tbody>
@@ -175,7 +174,7 @@ $view .= '
foreach ($responses as $response){
$view .= '
<tr>
<tr onclick="window.location.href=\'index.php?page=contract&rowID='.$response['#'].'\'" style="cursor: pointer;">
<td>'.$response['#'].'</td>
<td>'.(($response['Status'] == $contract_status1)? '<span class="status enabled">'.$response['Status']: (($response['Status'] == $contract_status3) ? '<span class="status disabled">'.$response['Status'] : '<span class="status">'.$response['Status'])).'</span></td>
<td>'.$response['Account'].'</td>
@@ -188,7 +187,6 @@ $view .= '
<td>'.$response['Contracted'].' </td>
<td><span class="status '.(($response['Deviation'] < 100) ? 'enabled' : 'disabled').'">'.$response['Deviation'].'</span></td>
<td>'.$response['Period'].'</td>
<td><a href="index.php?page=contract&rowID='.$response['#'].'" class="btn_link">'.$general_view .'</a></td>
</tr>
';
}