iegorov
11/20/2014 - 5:10 AM

Users table

Users table

<!-- BEGIN: USERS LIST -->
<table class="table table-striped voffset5">
  <thead>
    <th>
      <nobr>
        ID
        <a href="" ng-click="predicate = 'id'; reverse=!reverse" class="btn-link" ng-show="!reverse">
          <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></a>
        <a href="" ng-click="predicate = 'id'; reverse=!reverse" class="btn-link" ng-show="reverse">
          <span class="glyphicon glyphicon-chevron-up" aria-hidden="true"></span></a>
      </nobr>
    </th>
    <th>
      <nobr class="sortable">
        ФИО, логин, email, тел.&nbsp;
        <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span>
      </nobr>
    </th>
    <th>
      <nobr>
        ЛС и адреса&nbsp;
        <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span>
      </nobr>
    </th>
    <th>
      <nobr>Дата рег.
            <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></nobr>
    </th>
    <th>
      Статус&nbsp;
      <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span>
    </th>
    <th></th>
  </thead>
  <tbody>
    <tr ng-repeat='user in users | orderBy:predicate:reverse'>
      <td>{{user.id}}</td>
      <td>
        {{user.fullName}}<br />
        <small>{{user.nickname}}</small><br />
        <small>{{user.email}}</small><br />
        <small>{{user.phone}}</small>
      </td>
      <td>
        <div ng-repeat="(key, address) in user.addressList">
          <strong>{{address.personalAccount}}</strong><br />
          <nobr>{{address.address}}</nobr><br />
          <small>{{address.place}}</small>
          <hr />
        </div>
      </td>
      <td>{{user.dateOfReg}}</td>
      <td>{{user.status}}</td>
      <td>
        <nobr>
        <a class="btn-link" ng-click="editAdmin()">
        <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
        <a class="btn-link"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
        </nobr>
      </td>
    </tr>
  </tbody>
</table>
<!-- END: USERS LIST -->