From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 17 Jul 2006 20:59:43 -0000 Subject: [Cluster-devel] conga/luci ChangeLog site/luci/Extensions/Stor ... Message-ID: <20060717205943.1348.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: kupcevic at sourceware.org 2006-07-17 20:59:43 Modified files: luci : ChangeLog luci/site/luci/Extensions: StorageReport.py luci/storage : form-macros Log message: luci - storage: styling of property dialogs Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/ChangeLog.diff?cvsroot=cluster&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/StorageReport.py.diff?cvsroot=cluster&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-macros.diff?cvsroot=cluster&r1=1.1&r2=1.2 --- conga/luci/ChangeLog 2006/07/12 23:12:00 1.2 +++ conga/luci/ChangeLog 2006/07/17 20:59:43 1.3 @@ -1,5 +1,8 @@ +2006-07-17 Stanko Kupcevic + * storage: styling of property dialogs + 2006-07-12 Stanko Kupcevic - * use pretty properties' names + * storage: use pretty properties' names --- conga/luci/site/luci/Extensions/StorageReport.py 2006/07/12 23:12:01 1.2 +++ conga/luci/site/luci/Extensions/StorageReport.py 2006/07/17 20:59:43 1.3 @@ -407,6 +407,7 @@ pretty_target_name = 'target' pretty_source_name = 'source' icon_name = '' + color = 'black' if type == MAPPER_SYS_TYPE: pretty_type = 'Hard Drives' pretty_target_name = 'Hard Drive' @@ -461,6 +462,7 @@ mapper_ret['sources'] = sources mapper_ret['new_sources'] = new_sources mapper_ret['icon'] = icon_name + mapper_ret['color'] = color mapper_ret['xml'] = mapper.cloneNode(True) assemble_all_targets(mapper_ret) @@ -598,7 +600,8 @@ pretty_name = mapper_id.replace(type + ':', '').replace('/dev/', '') pretty_target_name = 'target' pretty_source_name = 'source' - icon_name = '' + icon_name = 'none' + color = 'black' if type == MAPPER_SYS_TYPE: pretty_type = 'Hard Drives' pretty_target_name = 'Hard Drive' @@ -668,6 +671,7 @@ mapper_ret['min_sources'] = min_sources mapper_ret['max_sources'] = max_sources mapper_ret['icon'] = icon_name + mapper_ret['color'] = color mapper_ret['xml'] = mapper.cloneNode(True) mapper_ret['actions'] = [] @@ -1375,6 +1379,7 @@ pretty_type = 'Block Device' description = props['size']['value'] + ' ' + props['size']['units'] icon_name = '' + color = 'black' if type == MAPPER_SYS_TYPE: pretty_type = 'Hard Drive' icon_name = 'icon_bd_ide.png' @@ -1388,6 +1393,7 @@ icon_name = 'icon_bd_LV_snapshot.png' else: icon_name = 'icon_bd_LV.png' + color = '#0192db' elif type == MAPPER_PT_TYPE: pretty_type = 'Partition' icon_name = 'icon_bd_partition.png' @@ -1420,7 +1426,7 @@ contents = [] path = 'new_snapshot' pretty_type = 'New Snapshot' - pretty_name = 'no pretty name' + pretty_name = '' else: pretty_type = 'Snapshot' #pretty_name = 'Unused Space' @@ -1434,6 +1440,7 @@ data['mapper_id'] = mapper_id data['contents'] = contents data['icon'] = icon_name + data['color'] = color data['xml'] = bd_xml.cloneNode(True) actions = [] @@ -1607,6 +1614,36 @@ for name in old_props: new_props['content_variable_' + d['id'] + '_' + name] = old_props[name] d['props'] = new_props + + # content's color and icon + color = 'black' + icon_name = 'none' + type = d['xml'].getAttribute('type') + if type == 'filesystem': + pass + elif type == 'mapper_source': + mapper_type = d['xml'].getAttribute('mapper_type') + if mapper_type == MAPPER_SYS_TYPE: + pass + elif mapper_type == MAPPER_VG_TYPE: + color = '#a43737' + elif mapper_type == MAPPER_PT_TYPE: + pass + elif mapper_type == MAPPER_MDRAID_TYPE or mapper_type == MAPPER_ATARAID_TYPE: + pass + elif mapper_type == MAPPER_MULTIPATH_TYPE: + pass + elif mapper_type == MAPPER_CRYPTO_TYPE: + pass + elif mapper_type == MAPPER_iSCSI_TYPE: + pass + elif type == 'none': + pass + elif type == 'hidden': + pass + + d['color'] = color + d['icon'] = icon_name return data --- conga/luci/storage/form-macros 2006/06/30 17:00:02 1.1 +++ conga/luci/storage/form-macros 2006/07/17 20:59:43 1.2 @@ -7,7 +7,91 @@
@@ -449,7 +533,7 @@
+ style="width: 700px; min-height: 360px; "> @@ -531,68 +615,39 @@ - - - - -
-
-

- New -

-
-
-
- -
-
-
- Properties -
+ + + - - + - - + + + + + + + +
@@ -728,7 +873,9 @@ tal:define="predefines_test python:'display-content: ' + str(cont) + properties_span_id"/> -
+
+ Creating New -
- -
-
- - - - - - - +
- icon -
- - -
-
+
- -
- -
- - - - - - - - - - +
- Select - - Select to -
- + + + + +
+ + + + + + - - + + + + +
+ + Select + + + Select to + +
+ + -
( - )
-
+   +
+
- - - - -
- - -
+
@@ -639,13 +706,91 @@ - - + + +
+ + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
+   +
+
+
@@ -768,7 +915,11 @@ input { background-image: none; } input.validation_error { border: medium double red; background-color: orange; } input.selected { border: thin solid orange; } - input.form_button { background-color: #dee7ec; } + input.form_button { background-color: #fff; + -moz-border-radius-topleft: 7px; + -moz-border-radius-topright: 7px; + -moz-border-radius-bottomleft: 7px; + -moz-border-radius-bottomright: 7px; }