Skip to content

Commit

Permalink
site: change reports layout
Browse files Browse the repository at this point in the history
- decrease pagination
- give more space for the empty message
- put buttons inside empty box
  • Loading branch information
darakeon committed Aug 7, 2024
1 parent 584441f commit 251d66c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
2 changes: 2 additions & 0 deletions core/Language/Language/Site/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"Zero": "Zero",
"Settings": "Settings",
"Administration": "Administration",
"Reports": "Reports",
"Code": "Code",
"WipedData": "Deleted Data",

Expand Down Expand Up @@ -236,6 +237,7 @@
"Zero": "Zero",
"Settings": "Configurações",
"Administration": "Administração",
"Reports": "Relatórios",
"Code": "Código",
"WipedData": "Dados removidos",

Expand Down
2 changes: 1 addition & 1 deletion site/MVC/Views/Shared/Extensions/Pagination.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@model DFM.Generic.Pages.Pages

<ul class="pagination">
<ul class="pagination pagination-sm">

<li class="@(Model.HasMoreBack ? null : "disabled")">
@Html.ActionLink("«", null, new { id = Model.MoreBack.Url })
Expand Down
36 changes: 19 additions & 17 deletions site/MVC/Views/Shared/Layouts/_Table.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,27 @@
@if (!ViewBag.HasContent)
{
<div class="well text-center @ViewBag.NoContentClass">
@ViewBag.NoContentText
<p>
@ViewBag.NoContentText
</p>

@if (buttonList != null)
{
<div id="table-buttons" class="text-center">
@foreach (var button in buttonList.OrderByDescending(b => b.PullLeft))
{
@Html.ActionLink(
button.Text,
button.Action,
button.Controller,
null,
new {@class = "btn btn-info btn-sm " + button.Class}
)
}
</div>
}
</div>

if (buttonList != null)
{
<div id="table-buttons" class="text-center">
@foreach (var button in buttonList.OrderByDescending(b => b.PullLeft))
{
@Html.ActionLink(
button.Text,
button.Action,
button.Controller,
null,
new {@class = "btn btn-info " + button.Class}
)
}
</div>
}

@* No, it shouldn't be here *@
<div class="hidden">
@await RenderSectionAsync("TableHeader", false)
Expand Down

0 comments on commit 251d66c

Please sign in to comment.