Merge pull request #18913 from tvartom/master
[civicrm-core.git] / ext / oauth-client / ang / oauthClientList.aff.html
1 <div
2 af-api4="['OAuthClient', 'get', {select: ['id','provider','guid'], orderBy: {provider:'ASC'}}]"
3 af-api4-ctrl="listCtrl">
4
5 <div ng-if="apiData.result.length == 0">
6 {{ts('There are no clients!')}}
7 </div>
8
9 <table>
10 <thead>
11 <tr>
12 <th>{{ts('ID')}}</th>
13 <th>{{ts('Provider')}}</th>
14 <th>{{ts('GUID')}}</th>
15 <th></th>
16 </tr>
17 </thead>
18 <tbody>
19 <tr ng-repeat="availClient in listCtrl.result">
20 <td>
21 <a ng-href="#!/?id={{availClient.id}}">{{availClient.id}}</a>
22 </td>
23 <td>{{availClient.provider}}</td>
24 <td>{{availClient.guid}}</td>
25 <td>
26 <!--
27 <a af-api4-action="['Afform', 'revert', {where: [['name','=', availClient.name]]}]"
28 af-api4-start-msg="ts('Reverting...')"
29 af-api4-success-msg="ts('Reverted')"
30 af-api4-success="listCtrl.refresh()"
31 class="btn btn-xs btn-default"
32 ng-if="availClient.has_local && availClient.has_base"
33 >{{ts('Revert')}}</a>
34 -->
35 <a af-api4-action="['OAuthClient', 'delete', {where: [['id','=', availClient.id]]}]"
36 af-api4-start-msg="ts('Deleting...')"
37 af-api4-success-msg="ts('Deleted')"
38 af-api4-success="listCtrl.refresh()"
39 class="btn btn-xs btn-default"
40 >{{ts('Delete')}}</a>
41 </td>
42 </tr>
43 </tbody>
44 </table>
45
46 </div>