From 2d03153b8eeb126b544c375644ef8f5d3ad57e44 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 10 Feb 2013 04:37:28 -0800 Subject: [PATCH] #268: Add "add" buttons to UI. --- guacamole/src/main/webapp/admin.xhtml | 96 +++++++++++++------------ guacamole/src/main/webapp/styles/ui.css | 24 ++++++- 2 files changed, 73 insertions(+), 47 deletions(-) diff --git a/guacamole/src/main/webapp/admin.xhtml b/guacamole/src/main/webapp/admin.xhtml index 24afa93d2..857f0ff90 100644 --- a/guacamole/src/main/webapp/admin.xhtml +++ b/guacamole/src/main/webapp/admin.xhtml @@ -33,8 +33,8 @@

Administration

-

Users

-
+

Users

+

Click or tap on a user below to manage that user. Depending @@ -48,10 +48,14 @@

--> +
+
+
+
-

Connections

-
+

Connections

+

Click or tap on a connection below to manage that connection. @@ -60,11 +64,9 @@ can be changed.

-
@@ -80,51 +82,57 @@ diff --git a/guacamole/src/main/webapp/styles/ui.css b/guacamole/src/main/webapp/styles/ui.css index 72b93996f..eaf453913 100644 --- a/guacamole/src/main/webapp/styles/ui.css +++ b/guacamole/src/main/webapp/styles/ui.css @@ -325,10 +325,28 @@ div.section { font-size: 0.75em; } -.user-list input.name { +#connections input.name, +#users input.name { max-width: 20em; } -.user-list .add-user button { +#connections #add-connection, +#users #add-user { font-size: 0.8em; -} \ No newline at end of file +} + +body:not(.manage-connections) .require-manage-connections { + display: none; +} + +body:not(.manage-users) .require-manage-users { + display: none; +} + +body:not(.add-connections) #connection-add-form { + display: none; +} + +body:not(.add-users) #user-add-form { + display: none; +}