-
Notifications
You must be signed in to change notification settings - Fork 721
/
Copy pathshow.html
53 lines (43 loc) · 2.35 KB
/
show.html
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
45
46
47
48
49
50
51
52
53
<div class="row">
<div class="col-lg-12">
<ma-view-actions override="::showController.actions" entry="entry" entity="::showController.entity">
<ma-list-button ng-if="::entity.listView().enabled" entity="::entity"></ma-list-button>
<ma-edit-button ng-if="::entity.editionView().enabled" entry="entry" entity="::entity"></ma-edit-button>
<ma-delete-button ng-if="::entity.deletionView().enabled" entry="entry" entity="::entity"></ma-delete-button>
</ma-view-actions>
<div class="page-header">
<h1 compile="::showController.title">
{{ ::showController.view.entity.name() | humanize:true | singularize }} #{{ ::entry.identifierValue }} Detail
</h1>
<p class="lead" ng-if="::showController.description" compile="::showController.description">{{ ::showController.description }}</p>
</div>
</div>
</div>
<div class="row form-horizontal" id="show-view">
<div ng-repeat="field in ::showController.fields track by $index"
class="col-lg-12 form-group">
<!-- non fieldset -->
<label class="col-sm-2 control-label" ng-if="!field.isFieldset()">{{ field.label() }}</label>
<div ng-if="!field.isFieldset()" class="show-value" ng-class="::'ng-admin-field-' + field.name() + ' ' + (field.getCssClasses(entry) || 'col-sm-10 col-md-8 col-lg-7')">
<ma-column field="::field" entry="::entry" entity="::entity" datastore="::showController.dataStore"></ma-column>
</div>
<fieldset ng-if="field.isFieldset()">
<legend>{{::field.label()}}</legend>
<div ng-repeat="row in ::field.rows()"
class="row-fluid"
ng-class="row.getClasses()">
<div ng-repeat="rowField in ::row.fields()"
class="form-group"
ng-class="::row.cssSpanClass(rowField)">
<label for="::{{ rowField.name() }}">{{ rowField.label() }}</label>
<div class="form-control">
<ma-column field="::rowField" entry="::entry"
entity="::entity"
datastore="::showController.dataStore">
</ma-column>
</div>
</div>
</div>
</fieldset>
</div>
</div>