<form action="#" name="{{formName}}" method="post" accept-charset="utf-8">
  <table class="table table-condensed table-striped table-hover table-bordered">
    <tbody>
      <tr class="sb-top">
        <th ng-repeat="header in headers">{{header | translate}}</th>
        <th ng-if="actions.length > 0">Action</th>
      </tr>

      <tr ng-repeat="elem in list">
        <td ng-repeat="header in headers" ng-class="{'font-italic': elem['read_only']}">
            {{elem[header]}}
        </td>
        <td ng-if="actions.length > 0">
          <span ng-repeat="action in actions" ng-switch="action" title="{{action | translate}}" class="no-underline">
            <a ng-if="!elem['read_only']" ng-switch-when="edit" ng-href="{{path}}?act=edit&id={{elem.id}}">
              <img ng-src="/img/site/button/{{action}}.png" alt="{{action | translate}}"/>
            </a>
            <a ng-if="!elem['read_only']" ng-switch-when="delete" ng-click="delete({id: elem.id})" ng-confirm-click="{{deleteMessage | translate}}" href="">
              <img ng-src="/img/site/button/{{action}}.png" alt="{{action | translate}}"/>
            </a>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</form>
