%PDF- %PDF-
Direktori : /var/www/html/news/public/views/articles/ |
Current File : /var/www/html/news/public/views/articles/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="title">Title</label> <input id="title" type="text" class="form-control" placeholder="Title" ng-model="filters.title.value"> </div> <div class="col-sm-4"> <label for="description">Description</label> <input id="description" 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="articles.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="Title" property="title"></th> <th sort-data search="search()" sort-title="Description" property="description"></th> <th>Category</th> <th>Author</th> <th>Last Modifier</th> <th> <span uib-tooltip="Unapproved / Total">Comments info</span> </th> <th> <span uib-tooltip="Inappropriate Comments" class="fa fa-warning"></span> </th> <th>Actions</th> </thead> <tbody> <tr ng-repeat="article in articles"> <td ng-bind="article.title"></td> <td ng-bind="article.description"></td> <td ng-bind="article.category.name"></td> <td ng-bind="article.creator.fullname"></td> <td ng-bind="article.lastModifier.fullname"></td> <td ng-bind="countComments(article.comments)"></td> <td ng-bind="countInappropriateComments(article.comments)" ng-class="countInappropriateComments(article.comments) > 0 ? 'text-danger': 'text-success'"></td> <td> <button class="btn btn-sm btn-info" ng-click="showComments(article)" uib-tooltip="View comments"> <span class="fa fa-comments-o"></span> </button> </td> </tr> </tbody> </table> <div full-pagination="paginationData" search="search()"></div> </div> </div> </div> </div> </section> </div>