Refactor UI components and update stylesheets
Standardizes markup structure for invoice history, employee table, and salary history components Simplifies HTML markup by removing unnecessary wrapper elements Applies consistent CSS class naming and styling approach Improves component readability and maintainability
This commit is contained in:
parent
679c3fb3a6
commit
8b2a630861
5 changed files with 144 additions and 251 deletions
|
|
@ -87,25 +87,23 @@
|
|||
</swp-card>
|
||||
</div>
|
||||
|
||||
<swp-card>
|
||||
<swp-card class="salary-history">
|
||||
<swp-section-label>@Model.LabelSalaryHistory</swp-section-label>
|
||||
<div class="salary-history">
|
||||
<swp-data-table>
|
||||
<swp-data-table-header>
|
||||
<swp-data-table-cell>@Model.LabelPeriod</swp-data-table-cell>
|
||||
<swp-data-table-cell>@Model.LabelGrossSalary</swp-data-table-cell>
|
||||
<swp-data-table-cell></swp-data-table-cell>
|
||||
</swp-data-table-header>
|
||||
@foreach (var item in Model.SalaryHistory)
|
||||
{
|
||||
<swp-data-table-row>
|
||||
<swp-data-table-cell>@item.Period</swp-data-table-cell>
|
||||
<swp-data-table-cell class="mono">@item.GrossSalary</swp-data-table-cell>
|
||||
<swp-data-table-cell><i class="ph ph-caret-right"></i></swp-data-table-cell>
|
||||
</swp-data-table-row>
|
||||
}
|
||||
</swp-data-table>
|
||||
</div>
|
||||
<swp-data-table>
|
||||
<swp-data-table-header>
|
||||
<swp-data-table-cell>@Model.LabelPeriod</swp-data-table-cell>
|
||||
<swp-data-table-cell>@Model.LabelGrossSalary</swp-data-table-cell>
|
||||
<swp-data-table-cell></swp-data-table-cell>
|
||||
</swp-data-table-header>
|
||||
@foreach (var item in Model.SalaryHistory)
|
||||
{
|
||||
<swp-data-table-row>
|
||||
<swp-data-table-cell>@item.Period</swp-data-table-cell>
|
||||
<swp-data-table-cell class="mono">@item.GrossSalary</swp-data-table-cell>
|
||||
<swp-data-table-cell><i class="ph ph-caret-right"></i></swp-data-table-cell>
|
||||
</swp-data-table-row>
|
||||
}
|
||||
</swp-data-table>
|
||||
</swp-card>
|
||||
</swp-detail-grid>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue