Simplified form
Change-Id: Ib4b17823be86e18bd5e83679cde7fc95a4f8bac1
diff --git a/src/app/views/crud/crud.html b/src/app/views/crud/crud.html
index 7c80b92..f5f1f76 100644
--- a/src/app/views/crud/crud.html
+++ b/src/app/views/crud/crud.html
@@ -5,6 +5,7 @@
<div class="view-header">
<div class="pull-right text-right" style="line-height: 14px">
<!--<small>UI Elements<br>General<br> <span class="c-white">Grid system</span></small>-->
+ <a class="btn btn-default" ng-if="vm.list" href="{{vm.baseUrl}}add">Add</a>
<a class="btn btn-default" ng-if="!vm.list" href="{{vm.baseUrl}}">Back</a>
</div>
<div class="header-icon">
@@ -20,7 +21,7 @@
<hr>
</div>
</div>
- <div class="row" ng-show="vm.related.length > 0">
+ <div class="row" ng-show="vm.related.length > 0 && vm.model.id">
<div class="view-header">
<div class="col-lg-4">
<h4>Related Items: </h4>
@@ -47,4 +48,4 @@
<xos-form ng-model="vm.model" config="vm.formCfg"></xos-form>
</div>
</div>
-</section>
\ No newline at end of file
+</section>