diff --git a/guacamole/src/main/webapp/app/notification/styles/notification.css b/guacamole/src/main/webapp/app/notification/styles/notification.css index ee20e132f..3d5575341 100644 --- a/guacamole/src/main/webapp/app/notification/styles/notification.css +++ b/guacamole/src/main/webapp/app/notification/styles/notification.css @@ -100,4 +100,45 @@ .notification .progress .text { position: relative; -} \ No newline at end of file +} + +.notification .parameters { + width: 100%; +} + +.notification .parameters .fields { + display: table; + width: 100%; +} + +.notification .parameters .fields .labeled-field { + display: table-row; +} + +.notification .parameters .fields .field-header, +.notification .parameters .fields .form-field { + text-align: left; + display: table-cell; + padding: .125em; + vertical-align: top; +} + +.notification .parameters .fields .field-header { + padding-right: 1em; +} + +.notification .parameters .fields .field-header { + width: 0; +} + +.notification .parameters .fields .form-field { + width: 100%; +} + +.notification .parameters input[type=text], +.notification .parameters input[type=email], +.notification .parameters input[type=number], +.notification .parameters input[type=password], +.notification .parameters textarea { + max-width: 100%; +} diff --git a/guacamole/src/main/webapp/app/notification/templates/guacNotification.html b/guacamole/src/main/webapp/app/notification/templates/guacNotification.html index 6c1cc0086..b002bb0f7 100644 --- a/guacamole/src/main/webapp/app/notification/templates/guacNotification.html +++ b/guacamole/src/main/webapp/app/notification/templates/guacNotification.html @@ -1,4 +1,5 @@ -
+
@@ -12,6 +13,15 @@ translate="{{notification.text.key}}" translate-values="{{notification.text.variables}}">

+ +
+ +
+
+ */ + this.formModel = template.model; + + /** + * The function to invoke when the form is submitted, if form fields + * are present within the notification. + * + * @type Function + */ + this.formSubmitCallback = template.formSubmitCallback; + /** * An array of all actions available to the user in response to this * notification.