@@ -4,25 +4,29 @@ <h3 ng-show="form.title && form.notitle !== true">{{ form.title }}</h3>
44 < ol class ="list-group " ng-model ="modelArray " ui-sortable >
55 < li class ="list-group-item {{form.fieldHtmlClass}} "
66 ng-repeat ="item in modelArray track by $index ">
7- < button ng-hide ="form.readonly || form.remove === null "
7+ < md- button ng-hide ="form.readonly || form.remove === null "
88 ng-click ="deleteFromArray($index) "
99 style ="position: relative; z-index: 20; "
1010 type ="button " class ="close pull-right ">
1111 < span aria-hidden ="true "> ×</ span > < span class ="sr-only "> Close</ span >
12- </ button >
12+ </ md- button>
1313 < sf-decorator ng-init ="arrayIndex = $index " form ="copyWithIndex($index) "> </ sf-decorator >
1414 </ li >
1515 </ ol >
1616 < div class ="clearfix " style ="padding: 15px; ">
17- < button ng-hide ="form.readonly || form.add === null "
17+ < md- button ng-hide ="form.readonly || form.add === null "
1818 ng-click ="appendToArray() "
1919 type ="button "
2020 class ="btn {{ form.style.add || 'btn-default' }} pull-right ">
2121 < i class ="glyphicon glyphicon-plus "> </ i >
2222 {{ form.add || 'Add'}}
23- </ button >
23+ </ md-button >
24+ </ div >
25+ < div ng-messages ="ngModel.$error ">
26+ <!--
27+ This is a bit of a hack. sf-message does the work, but ng-messages and ng-message
28+ is needed for the styling
29+ -->
30+ < div sf-message ng-message > </ div >
2431 </ div >
25- < div class ="help-block "
26- ng-show ="(hasError() && errorMessage(schemaError())) || form.description "
27- ng-bind-html ="(hasError() && errorMessage(schemaError())) || form.description "> </ div >
2832</ div >
0 commit comments