2 <p>This page is used to create or query pods.<br>
3 Querying pods is open to everybody.<br>
4 But only login users are granted the privilege to create the new pod.
7 <div class="row" style="margin-bottom:24px;"></div>
9 <div class="pod-create" ng-class="{ 'hidden': ! auth.isAuthenticated }">
12 <div ng-repeat="require in ctrl.createRequirements">
13 <div class="create-pod" style="margin-left:24px;">
14 <p class="input-group">
15 <label for="cpid">{{require.label|capitalize}}: </label>
16 <a ng-if="require.type == 'select'">
17 <select dynamic-model="'ctrl.' + require.label" ng-options="option for option in require.selects"></select>
19 <a ng-if="require.type == 'text'">
20 <input type="text" dynamic-model="'ctrl.' + require.label"/>
22 <a ng-if="require.type == 'textarea'">
23 <textarea rows="2" cols="50" dynamic-model="'ctrl.' + require.label">
30 <div class="col-md-3" style="margin-top:12px; margin-left:8px;">
31 <button type="submit" class="btn btn-primary" ng-click="ctrl.create()">Create</button>
36 <div class="pods-filters" style="margin-top:36px;">
39 <div class="col-md-3" style="margin-top:12px; margin-left:8px;">
40 <button type="submit" class="btn btn-primary" ng-click="ctrl.update()">Filter</button>
41 <button type="submit" class="btn btn-primary btn-danger" ng-click="ctrl.clearFilters()">Clear</button>
46 <div cg-busy="{promise:ctrl.authRequest,message:'Loading'}"></div>
47 <div cg-busy="{promise:ctrl.podsRequest,message:'Loading'}"></div>
49 <div ng-show="ctrl.data" class="pods-table" style="margin-top:24px; margin-left:8px;">
50 <table ng-data="ctrl.data.pods" ng-show="ctrl.data" class="table table-striped table-hover">
52 <tr ng-repeat-start="(index, pod) in ctrl.data.pods">
54 <a href="#" ng-click="showPod = !showPod">{{pod.name}}</a>
55 <div class="show-pod" ng-class="{ 'hidden': ! showPod }" style="margin-left:24px;">
57 owner: {{pod.owner}}<br>
58 role: {{pod.role}}<br>
59 mode: {{pod.mode}}<br>
60 create_date: {{pod.creation_date}}<br>
61 details: {{pod.details}}
72 <div ng-show="ctrl.showError" class="alert alert-danger" role="alert">
73 <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
74 <span class="sr-only">Error:</span>