GUAC-1160: Create "guacForm" directive which allows the editing of an arbitrary set of fields.

This commit is contained in:
Michael Jumper
2015-04-15 16:05:20 -07:00
parent d29ab56d44
commit 32019e7cdf
5 changed files with 170 additions and 38 deletions

View File

@@ -59,17 +59,8 @@ THE SOFTWARE.
<!-- Connection parameters -->
<h2 class="header">{{'MANAGE_CONNECTION.SECTION_HEADER_PARAMETERS' | translate}}</h2>
<div class="section" ng-class="{loading: !parameters}">
<table class="properties connection-parameters">
<!-- All the different possible editable field types -->
<tr ng-repeat="parameter in protocols[connection.protocol].parameters">
<th>{{parameter.title | translate}}</th>
<td>
<guac-form-field field="parameter" model="parameters[parameter.name]"></guac-form-field>
</td>
</tr>
</table>
<div class="section connection-parameters" ng-class="{loading: !parameters}">
<guac-form fields="protocols[connection.protocol].parameters" model="parameters"></guac-form>
</div>
<!-- Form action buttons -->