read_brokers.template.html
2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<div layout="row" ng-controller="brokersController" ng-cloak>
<div flex="10"></div>
<div flex="80" class='m-20px-0'>
<!-- page title & 'create broker' button -->
<md-toolbar class="md-hue-2">
<div class="md-toolbar-tools">
<!-- page title -->
<div flex md-truncate>
<h3 class="md-headline">Brokers ({{brokers.length}})</h3>
</div>
<!-- button for creating product -->
<md-button class="md-raised" ng-click="showCreateForm()">Create</md-button>
</div>
</md-toolbar>
<!-- 'search' bar will be here -->
<md-content flex>
<!-- show broker record list -->
<md-list ng-init="readBrokers()">
<md-list-item class="md-3-line" ng-repeat="broker in brokers | orderObjectBy:'brokerage'" ng-hide="brokers==0">
<!-- product information -->
<div class="md-list-item-text">
<span style="display:inline-block;width: 10%;border-right: 1px solid #000;text-align: center">{{broker.broker_id}}</span>
<span style="display:inline-block;width: 70%;padding-left: 25px;">{{broker.brokerage}}</span>
</div>
<!-- 'read one', 'edit' and 'delete' buttons -->
<div class="md-secondary-container">
<!--<md-button class="md-raised md-info" ng-click="readOneBroker(broker.broker_id)">Read One</md-button>-->
<md-button class="md-raised md-primary" ng-click="showUpdateBrokerForm(broker.id)">Edit</md-button>
<md-button class="md-raised md-danger" ng-click="confirmDeleteBroker($event, broker.id)">Delete</md-button> </div>
<md-divider ng-if="!$last"></md-divider>
</md-list-item>
</md-list>
</md-content>
</div>
<div flex="10"></div>
</div> <!-- end row -->