mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUAC-1161: Use labels and CSS for form layout.
This commit is contained in:
@@ -25,13 +25,11 @@
|
|||||||
<h3 ng-show="form.name">{{getSectionHeader(form) | translate}}</h3>
|
<h3 ng-show="form.name">{{getSectionHeader(form) | translate}}</h3>
|
||||||
|
|
||||||
<!-- All fields in form -->
|
<!-- All fields in form -->
|
||||||
<table class="fields">
|
<div class="fields">
|
||||||
<tr ng-repeat="field in form.fields">
|
<label ng-repeat="field in form.fields" class="labeled-field">
|
||||||
<th>{{getFieldHeader(field) | translate}}</th>
|
<span class="field-header">{{getFieldHeader(field) | translate}}</span>
|
||||||
<td>
|
<guac-form-field namespace="namespace" field="field" model="values[field.name]"></guac-form-field>
|
||||||
<guac-form-field namespace="namespace" field="field" model="values[field.name]"></guac-form-field>
|
</label>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<div class="form-field">
|
<div class="form-field" ng-class="{empty: !model}">
|
||||||
<!--
|
<!--
|
||||||
Copyright 2014 Glyptodon LLC.
|
Copyright 2014 Glyptodon LLC.
|
||||||
|
|
||||||
|
@@ -26,3 +26,17 @@
|
|||||||
.connection-parameters input[type=number] {
|
.connection-parameters input[type=number] {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.connection-parameters .form .fields {
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connection-parameters .form .fields .labeled-field {
|
||||||
|
display: table-row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connection-parameters .form .fields .field-header,
|
||||||
|
.connection-parameters .form .fields .form-field {
|
||||||
|
display: table-cell;
|
||||||
|
padding: 0.125em;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user