demo20230512/Views/Partial/Fab/Index.cshtml
2023-05-12 10:20:28 +08:00

76 lines
4.4 KiB
Plaintext

<div class="survey_form" style="padding: 28px 16px" ng-style="{height: Survey_Height * 28 + 24 + 'px'}">
<div class="survey_form_body" style="margin: 0; padding: 0;" ng-style="{height: sidebar.length * 28 + 'px'}">
<div class="tab_header_main">
<div class="tab_header">
<div class="active tab-toggle">
<div class="tab">@Resource.FabList</div>
</div>
</div>
<div class="tab_header">
<div class="survey_order_btn_wrap tab-toggle">
<div class="survey_order_btn" ng-click="redirectToCreatePage()">
@Resource.StaticLabelNewFab
</div>
</div>
</div>
</div>
<div class="tab_content card content_bg">
<div style="margin: 20px">
<div class="body_content receive_tool_menu">
@*<div class="header_search">
<img class="header_image_button" src="../Browser_Local/img/header_image11_1.png" />
<input type="text" class="expand" ng-model="searchText" />
</div>*@
<form class="form-inline header_search" style="float: right">
<input class="form-control mr-sm-2" type="search" ng-model="searchText"
placeholder="@Resource.StaticLabelGlobal_Search" aria-label="Search">
</form>
</div>
<div class="body_content"
ng-model="currentPage"
ng-init="currentPage = 1">
<div class="table-responsive">
<div class="table_overflow">
<table class="table">
<!-- Table header -->
<thead>
<tr class="table-active" style="text-align:center">
<th>@Resource.FabName</th>
<th>@Resource.FabPhone</th>
<th>@Resource.FabAddress</th>
<th>@Resource.FabCity</th>
<th>@Resource.FabFloor</th>
<th>@Resource.Status</th>
<th></th>
</tr>
</thead>
<!-- Table row -->
<tbody>
<tr ng-repeat="fab in fabList | filter : searchText | orderBy : predicate : reverse | smarterLimitTo : 10 : (currentPage - 1) * 10">
<td ng-bind="fab.Name"></td>
<td ng-bind="fab.Phone"></td>
<td ng-bind="fab.Address"></td>
<td ng-bind="fab.addressCity"></td>
<td ng-bind="fab.addressFloor"></td>
<td ng-if="fab.enable">@Resource.Enabled</td>
<td ng-if="!fab.enable">@Resource.Disabled</td>
<td>
<img ng-init="editIcon = 'edit'"
ng-src="@ViewBag.baseUrl/Browser_Local/img/{{ editIcon }}.png"
ng-click="redirectToEditPage(fab.ID)"
ng-mouseenter="editIcon = 'edit_active'"
ng-mouseleave="editIcon = 'edit'" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<page passed-total-page="Math.ceil((fabList | filter : searchText).length / 10)" passed-current-page="currentPage"></page>
</div>
</div>
</div>
</div>