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'] = 'contracts';
$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){
@@ -119,7 +119,6 @@ $view .= '
<th>'.$contract_start_date.'</th>
<th>'.$contract_end_date.'</th>
<th>'.$contract_reference.'</th>
<th>'.$general_actions.'</th>
</tr>
</thead>
<tbody>
@@ -144,7 +143,7 @@ $view .= '
$partner_data = json_decode($response->accounthierarchy);
$view .= '
<tr>
<tr onclick="window.location.href=\'index.php?page=contract&rowID='.$response->rowID.'\'" style="cursor: pointer;">
<td>'.$response->rowID.'</td>
<td>'.(($response->status == 1)? '<span class="status enabled">'.$$status: (($response->status == 3) ? '<span class="status disabled">'.$$status : '<span class="status">'.$$status)).'</td>
<td>'.$partner_data->soldto.'</td>
@@ -152,7 +151,6 @@ $view .= '
<td>'.$response->start_date.'</td>
<td>'.$date.'</td>
<td>'.$response->reference.'</td>
<td><a href="index.php?page=contract&rowID='.$response->rowID.'" class="btn_link">'.$general_view .'</a></td>
</tr>
';
}