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:
@@ -92,7 +92,6 @@ $view .= '
|
||||
<td>'.($discounts_value ?? 'Value').'</td>
|
||||
<td class="responsive-hidden">'.($discounts_start_date ?? 'Start Date').'</td>
|
||||
<td class="responsive-hidden">'.($discounts_end_date ?? 'End Date').'</td>
|
||||
<td>'.$general_actions.'</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>';
|
||||
@@ -106,7 +105,7 @@ $view .= '
|
||||
$current_date = strtotime((new DateTime())->format('Y-m-d H:i:s'));
|
||||
|
||||
$view .= '
|
||||
<tr>
|
||||
<tr onclick="window.location.href=\'index.php?page=discount&id='.$discount['id'].'\'" style="cursor: pointer;">
|
||||
<td class="responsive-hidden">'.$discount['id'].'</td>
|
||||
<td>'.$discount['discount_code'].'</td>
|
||||
<td>'.(($current_date >= strtotime($discount['start_date']) && $current_date <= strtotime($discount['end_date'])) ? $general_yes : $general_no).'</td>
|
||||
@@ -116,7 +115,6 @@ $view .= '
|
||||
<td>'.$discount['discount_value'].'</td>
|
||||
<td class="responsive-hidden">'.date('Y-m-d h:ia', strtotime($discount['start_date'])).'</td>
|
||||
<td class="responsive-hidden">'.date('Y-m-d h:ia', strtotime($discount['end_date'])).'</td>
|
||||
<td><a href="index.php?page=discount&id='.$discount['id'].'" class="btn_link">'.$general_view.'</a></td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user