GUAC-1160: Add a Form type. Allow the content of a guacForm to be a Form, Field, or an array of either.

This commit is contained in:
Michael Jumper
2015-04-16 16:50:05 -07:00
parent 60de1ff993
commit 2858944f27
5 changed files with 160 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
<table class="form">
<div ng-repeat="form in forms" class="form">
<!--
Copyright 2015 Glyptodon LLC.
@@ -21,12 +21,17 @@
THE SOFTWARE.
-->
<!-- All fields in form -->
<tr ng-repeat="field in fields">
<th>{{getFieldHeader(field) | translate}}</th>
<td>
<guac-form-field namespace="namespace" field="field" model="values[field.name]"></guac-form-field>
</td>
</tr>
<!-- Form name -->
<h3 ng-show="form.name">{{getSectionHeader(form) | translate}}</h3>
</table>
<!-- All fields in form -->
<table class="fields">
<tr ng-repeat="field in form.fields">
<th>{{getFieldHeader(field) | translate}}</th>
<td>
<guac-form-field namespace="namespace" field="field" model="values[field.name]"></guac-form-field>
</td>
</tr>
</table>
</div>