%PDF- %PDF-
Direktori : /var/www/html/news/public/views/categories/ |
Current File : /var/www/html/news/public/views/categories/index.html |
<div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <h2>Filters</h2> </div> </div> <div class="row"> <div class="col-sm-12"> <form class="form-horizontal" autocomplete="off"> <div class="form-group"> <div class="col-sm-4"> <label for="name">Name</label> <input id="name" type="text" class="form-control" placeholder="Name" ng-model="filters.name.value"> </div> <div class="col-sm-4"> <label for="surname">Description</label> <input id="surname" type="text" class="form-control" placeholder="Description" ng-model="filters.description.value"> </div> </div> <div class="form-group"> <div class="col-sm-12"> <button class="btn btn-default" ng-click="search();"> <span class="fa fa-search"></span> <span>Search</span> </button> <button class="btn btn-default" ng-click="clean()"> <span class="fa fa-eraser"></span> <span>Clean</span> </button> <a class="btn btn-default" ui-sref="categories.new"> <span class="fa fa-plus"></span> <span>New</span> </a> </div> </div> </form> </div> </div> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-body"> <div pagination="paginationData" search="search()"></div> <table class="table table-bordered table-hover"> <thead> <th sort-data search="search()" sort-title="Name" property="name"></th> <th sort-data search="search()" sort-title="Description" property="description"></th> <th>Parent</th> <th>Actions</th> </thead> <tbody> <tr ng-repeat="category in categories"> <td ng-bind="category.name"></td> <td ng-bind="category.description"></td> <td ng-bind="category.parent ? category.parent.name : 'n/d'"></td> <td> <a class="btn btn-sm btn-default" ui-sref="categories.edit({categoryId: category.id})" uib-tooltip="Edit"> <span class="fa fa-pencil-square-o"></span> </a> <button class="btn btn-sm btn-danger" ng-click="delete(category.id)" uib-tooltip="Delete"> <span class="fa fa-trash-o"></span> </button> </td> </tr> </tbody> </table> <div full-pagination="paginationData" search="search()"></div> </div> </div> </div> </div> </section> </div>