2010-08-06 09:01:44 -05:00
|
|
|
/* Authors:
|
|
|
|
* Pavel Zuna <pzuna@redhat.com>
|
|
|
|
* Adam Young <ayoung@redhat.com>
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Red Hat
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2010-11-12 14:23:58 -06:00
|
|
|
body{
|
2010-11-17 13:13:33 -06:00
|
|
|
border-width: 0;
|
|
|
|
font-family:"Liberation Sans",Arial,Sans;
|
|
|
|
font-size:62.5%;
|
|
|
|
margin: 0;
|
2010-11-12 14:23:58 -06:00
|
|
|
}
|
|
|
|
|
2010-09-16 20:41:24 -05:00
|
|
|
|
|
|
|
|
2010-11-15 14:06:43 -06:00
|
|
|
.input_link {padding: .4em 1em .4em 1.5em;text-decoration: none;position: relative; cursor: pointer; }
|
|
|
|
.input_link span.ui-icon {margin: 0 0.4em 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
|
2010-09-16 14:13:48 -05:00
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
/* ---- Header ---- */
|
|
|
|
div.header {
|
|
|
|
background-image: url(header_background.png);
|
2010-11-17 13:13:33 -06:00
|
|
|
height: 3.5em;
|
2010-11-12 14:23:58 -06:00
|
|
|
width: 100%;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
2010-09-16 09:28:07 -05:00
|
|
|
|
|
|
|
div.header a {
|
|
|
|
text-decoration: none;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-09-16 09:28:07 -05:00
|
|
|
div.header a:link {
|
|
|
|
text-decoration: none;
|
2010-09-24 09:47:40 -05:00
|
|
|
color: white;
|
2010-09-16 09:28:07 -05:00
|
|
|
}
|
2010-08-06 09:01:44 -05:00
|
|
|
|
2010-09-16 09:28:07 -05:00
|
|
|
div.header a:visited {
|
|
|
|
text-decoration: none;
|
2010-09-24 09:47:40 -05:00
|
|
|
color: white;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-12 14:23:58 -06:00
|
|
|
div.header span.header-logo {
|
2010-11-15 14:06:43 -06:00
|
|
|
padding-left: 6em;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-12 14:23:58 -06:00
|
|
|
div.header span.header-logo a img {
|
2010-08-06 09:01:44 -05:00
|
|
|
border: 0;
|
2010-11-17 13:13:33 -06:00
|
|
|
height: 3em;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-09-16 09:28:07 -05:00
|
|
|
div.header span.header-loggedinas {
|
2010-08-06 09:01:44 -05:00
|
|
|
color: #fff;
|
2010-09-16 09:28:07 -05:00
|
|
|
float: right;
|
2010-08-06 09:01:44 -05:00
|
|
|
line-height: 35px;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
|
2010-09-16 09:28:07 -05:00
|
|
|
/* ---- Navigation ---- */
|
|
|
|
div.tabs {
|
|
|
|
overflow: auto;
|
2010-11-12 14:23:58 -06:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2010-11-13 20:34:31 -06:00
|
|
|
min-height: 400px;
|
2010-09-16 09:28:07 -05:00
|
|
|
}
|
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
h1 {
|
|
|
|
font-size: 26pt;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
margin-left: 15px;
|
|
|
|
margin-top: 18px;
|
|
|
|
}
|
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
div#content {
|
2010-11-17 13:13:33 -06:00
|
|
|
margin-top: 0;
|
2010-11-09 19:04:49 -06:00
|
|
|
position: relative;
|
2010-08-10 15:59:18 -05:00
|
|
|
width: 100%;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-08-23 21:32:23 -05:00
|
|
|
ul#viewtype {
|
2010-08-06 09:01:44 -05:00
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
2010-08-23 21:32:23 -05:00
|
|
|
ul#viewtype li {
|
2010-08-06 09:01:44 -05:00
|
|
|
color: #656565;
|
|
|
|
display: inline;
|
|
|
|
font-weight: bold;
|
|
|
|
list-style-type: none;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-08-23 21:32:23 -05:00
|
|
|
ul#viewtype li img {
|
2010-08-06 09:01:44 -05:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2010-08-23 21:32:23 -05:00
|
|
|
ul#viewtype li a {
|
2010-08-06 09:01:44 -05:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
div.content div.content-buttons {
|
2010-08-10 15:59:18 -05:00
|
|
|
float: right;
|
|
|
|
margin-right: 15px;
|
|
|
|
}
|
2010-08-06 09:01:44 -05:00
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
div.content div.content-buttons img {
|
2010-08-06 09:01:44 -05:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 18pt;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-left: 15px;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0px;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
background-color: #b2b2b2;
|
|
|
|
clear: both;
|
|
|
|
color: #b2b2b2;
|
|
|
|
height: 1px;
|
|
|
|
margin-left: 15px;
|
|
|
|
margin-right: 15px;
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
HBAC Details Page
The UI framework has been extended to include a collection of widgets:
- ipa_widget: base class
- ipa_text_widget: text field
- ipa_radio_widget: radio button
- ipa_textarea_widget: textarea
- ipa_button_widget: button
- ipa_column_widget: column for table
- ipa_table_widget: table
These widgets can be used to create input controls. They can also be
extended to create custom controls.
The framework has also been enhanced to support custom layouts. This
can be used to change the look of the application without changing
the code. Initially this is only available in details section.
Layout consists of a collection of HTML templates. Each template is a
complete and valid HTML file representing a portion of a page. The
template will be loaded and initialized by the code, then filled with
the data from the server. The layouts are located in
install/static/layouts/<name> folder.
By default, if no templates are used, the fields in the details page
are rendered vertically using dd/dt/dd tags. For pages that require
different layout, a custom UI needs to be developed. There are two ways
to do that:
- write a custom widget to generate the UI dynamically
- create an HTML template and write the initialization code
For components that are quite complex or used frequently, it's might
be better to use the first method. For simple pages that are used only
in one location or need to support customization, the second method
might be preferable. Other benefits of templates:
- cleaner code and UI separation
- more flexibility in customization
- new pages can be developed quickly and require less coding
- multiple templates can be used with the same initialization code
- easier to maintain
The HBAC details page has been implemented using both methods. By
default it will use custom widgets to generate the page. To use a
custom layout, add the following parameter to the URL, then reload
the page:
&layout=<name>
Currently the only available layout is 'default' which produces the
same look as the custom widgets.
The HBAC details page is usable, but it still needs additional work.
The access time is not working yet. There is no undo button, hint,
or validation yet.
The table in the association facet has also been changed to use
ipa_association_widget which is derived from ipa_table_widget.
The Makefile has been updated to include the layouts. The unit tests
have been updated as well.
2010-11-02 20:16:55 -05:00
|
|
|
.details-section {
|
|
|
|
margin-left: 45px;
|
|
|
|
margin-right: 15px;
|
|
|
|
margin-top: 18px;
|
|
|
|
white-space: nowrap;
|
|
|
|
padding-bottom: 18px;
|
|
|
|
padding-right: 18px;
|
|
|
|
}
|
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
dl.entryattrs {
|
|
|
|
clear: both;
|
|
|
|
margin-left: 15px;
|
|
|
|
margin-top: 18px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs dt {
|
|
|
|
clear: left;
|
|
|
|
float: left;
|
|
|
|
padding-bottom: 18px;
|
|
|
|
padding-right: 18px;
|
|
|
|
text-align: right;
|
|
|
|
width: 160px;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs dd {
|
|
|
|
float: left;
|
|
|
|
padding-bottom: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs dd.first {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs dd.other {
|
|
|
|
clear: both;
|
|
|
|
margin-left: 178px;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs input {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#backtotop {
|
|
|
|
margin-left: 20px;
|
|
|
|
margin-right: 20px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2010-08-25 11:49:30 -05:00
|
|
|
span.attrhint {
|
|
|
|
font-size: 8pt;
|
|
|
|
left: 40em;
|
|
|
|
margin-left: 100px;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2010-11-12 14:23:58 -06:00
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
/*Navigation */
|
2010-09-16 14:13:48 -05:00
|
|
|
.tabs1 .ui-tabs-nav{
|
2010-11-17 13:13:33 -06:00
|
|
|
padding-left: 3em;
|
|
|
|
padding-top: 2em;
|
2010-11-12 14:23:58 -06:00
|
|
|
margin: 0;
|
2010-11-17 13:13:33 -06:00
|
|
|
border: none;
|
2010-11-09 19:04:49 -06:00
|
|
|
background-image: url(Mainnav-background.png);
|
2010-11-17 13:13:33 -06:00
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.ui-tabs {
|
|
|
|
padding:0;
|
|
|
|
}
|
2010-11-09 19:04:49 -06:00
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs1 .ui-tabs-nav {
|
|
|
|
height: 3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs1 .ui-tabs-nav li {
|
|
|
|
padding: 0.5em 0;
|
|
|
|
width:144px;
|
|
|
|
background-image: url(Mainnav-offtab.png);
|
|
|
|
margin: 0;
|
2010-11-12 14:23:58 -06:00
|
|
|
border-width: 0;
|
2010-11-17 13:13:33 -06:00
|
|
|
text-align: center;
|
|
|
|
vertical-align:baseline;
|
2010-11-12 14:23:58 -06:00
|
|
|
}
|
2010-11-09 19:04:49 -06:00
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs1 .ui-tabs-nav li.ui-tabs-selected {
|
|
|
|
# padding: 0.5em 0;
|
|
|
|
background-image: url(Mainnav-ontab.png);
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2010-11-09 19:04:49 -06:00
|
|
|
|
|
|
|
.tabs1 .ui-tabs-nav li a{
|
2010-11-17 13:13:33 -06:00
|
|
|
color: #7E7E7E;
|
|
|
|
margin: 0 auto;
|
|
|
|
text-align:left;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
|
2010-09-16 14:13:48 -05:00
|
|
|
.tabs1 .ui-tabs-nav li > a:link, span.main-nav-off > a:visited{
|
2010-11-17 13:13:33 -06:00
|
|
|
color: #7E7E7E;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
.tabs1 .ui-tabs-nav li.ui-tabs-selected a{
|
2010-11-17 13:13:33 -06:00
|
|
|
color: #3D752A;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-12 14:23:58 -06:00
|
|
|
.tabs1 .ui-tabs-panel {
|
2010-11-17 13:13:33 -06:00
|
|
|
display: block;
|
|
|
|
border-width: 0;
|
|
|
|
padding: 0 0 0 0;
|
2010-11-12 14:23:58 -06:00
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs2 .ui-tabs-nav {
|
|
|
|
padding: 0.3em 6em 0 6em;
|
|
|
|
margin: 0px;
|
|
|
|
height: 2.5em;
|
|
|
|
background-image: url(Subnav-background.png);
|
|
|
|
}
|
2010-08-06 09:01:44 -05:00
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs2 .ui-tabs-nav li {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0px 0;
|
|
|
|
height: 3em;
|
|
|
|
}
|
2010-08-06 09:01:44 -05:00
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs2 .ui-tabs-nav li.ui-tabs-selected {
|
|
|
|
padding: 0;
|
|
|
|
height: 1em;
|
2010-08-06 09:01:44 -05:00
|
|
|
background-image: url(Subnav-background.png);
|
2010-09-16 14:13:48 -05:00
|
|
|
}
|
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
|
2010-09-16 20:41:24 -05:00
|
|
|
.tabs2 .ui-tabs-nav li a{
|
2010-11-17 13:13:33 -06:00
|
|
|
-moz-border-radius: 2em;
|
|
|
|
border-radius: 2em;
|
2010-11-09 19:04:49 -06:00
|
|
|
background-image: url(Subnav-background.png);
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs2 .ui-tabs-nav li > a:link, span.main-nav-off > a:visited{
|
|
|
|
color:white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs2 .ui-tabs-nav li{
|
2010-11-17 13:13:33 -06:00
|
|
|
height: 30%;
|
2010-11-09 19:04:49 -06:00
|
|
|
background-image: url(Subnav-background.png);
|
|
|
|
color: white;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs2 .ui-tabs-nav li a:hover{
|
|
|
|
background: none repeat scroll 0 0 #254718;
|
|
|
|
}
|
|
|
|
|
2010-09-16 20:41:24 -05:00
|
|
|
.tabs2 .ui-tabs-nav li.ui-tabs-selected a{
|
2010-11-15 14:06:43 -06:00
|
|
|
-moz-border-radius: 2em;
|
|
|
|
border-radius: 2em;
|
2010-11-17 13:13:33 -06:00
|
|
|
border:1px solid #1C3612;
|
|
|
|
background: none repeat scroll 0 0 #254718;
|
2010-11-09 19:04:49 -06:00
|
|
|
color: white;
|
2010-11-17 13:13:33 -06:00
|
|
|
height: 1em;
|
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-09-16 14:13:48 -05:00
|
|
|
span.sub-nav-off > a:link, span.sub-nav-off > a:visited{
|
|
|
|
color:white;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.main-nav-off > a:link, span.main-nav-off > a:visited{
|
|
|
|
color:white;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.main-separator{
|
|
|
|
background: #333339;
|
2010-11-15 14:06:43 -06:00
|
|
|
padding:0.1em;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-09-16 14:13:48 -05:00
|
|
|
|
HBAC Details Page
The UI framework has been extended to include a collection of widgets:
- ipa_widget: base class
- ipa_text_widget: text field
- ipa_radio_widget: radio button
- ipa_textarea_widget: textarea
- ipa_button_widget: button
- ipa_column_widget: column for table
- ipa_table_widget: table
These widgets can be used to create input controls. They can also be
extended to create custom controls.
The framework has also been enhanced to support custom layouts. This
can be used to change the look of the application without changing
the code. Initially this is only available in details section.
Layout consists of a collection of HTML templates. Each template is a
complete and valid HTML file representing a portion of a page. The
template will be loaded and initialized by the code, then filled with
the data from the server. The layouts are located in
install/static/layouts/<name> folder.
By default, if no templates are used, the fields in the details page
are rendered vertically using dd/dt/dd tags. For pages that require
different layout, a custom UI needs to be developed. There are two ways
to do that:
- write a custom widget to generate the UI dynamically
- create an HTML template and write the initialization code
For components that are quite complex or used frequently, it's might
be better to use the first method. For simple pages that are used only
in one location or need to support customization, the second method
might be preferable. Other benefits of templates:
- cleaner code and UI separation
- more flexibility in customization
- new pages can be developed quickly and require less coding
- multiple templates can be used with the same initialization code
- easier to maintain
The HBAC details page has been implemented using both methods. By
default it will use custom widgets to generate the page. To use a
custom layout, add the following parameter to the URL, then reload
the page:
&layout=<name>
Currently the only available layout is 'default' which produces the
same look as the custom widgets.
The HBAC details page is usable, but it still needs additional work.
The access time is not working yet. There is no undo button, hint,
or validation yet.
The table in the association facet has also been changed to use
ipa_association_widget which is derived from ipa_table_widget.
The Makefile has been updated to include the layouts. The unit tests
have been updated as well.
2010-11-02 20:16:55 -05:00
|
|
|
/* Entity */
|
2010-08-06 09:01:44 -05:00
|
|
|
|
HBAC Details Page
The UI framework has been extended to include a collection of widgets:
- ipa_widget: base class
- ipa_text_widget: text field
- ipa_radio_widget: radio button
- ipa_textarea_widget: textarea
- ipa_button_widget: button
- ipa_column_widget: column for table
- ipa_table_widget: table
These widgets can be used to create input controls. They can also be
extended to create custom controls.
The framework has also been enhanced to support custom layouts. This
can be used to change the look of the application without changing
the code. Initially this is only available in details section.
Layout consists of a collection of HTML templates. Each template is a
complete and valid HTML file representing a portion of a page. The
template will be loaded and initialized by the code, then filled with
the data from the server. The layouts are located in
install/static/layouts/<name> folder.
By default, if no templates are used, the fields in the details page
are rendered vertically using dd/dt/dd tags. For pages that require
different layout, a custom UI needs to be developed. There are two ways
to do that:
- write a custom widget to generate the UI dynamically
- create an HTML template and write the initialization code
For components that are quite complex or used frequently, it's might
be better to use the first method. For simple pages that are used only
in one location or need to support customization, the second method
might be preferable. Other benefits of templates:
- cleaner code and UI separation
- more flexibility in customization
- new pages can be developed quickly and require less coding
- multiple templates can be used with the same initialization code
- easier to maintain
The HBAC details page has been implemented using both methods. By
default it will use custom widgets to generate the page. To use a
custom layout, add the following parameter to the URL, then reload
the page:
&layout=<name>
Currently the only available layout is 'default' which produces the
same look as the custom widgets.
The HBAC details page is usable, but it still needs additional work.
The access time is not working yet. There is no undo button, hint,
or validation yet.
The table in the association facet has also been changed to use
ipa_association_widget which is derived from ipa_table_widget.
The Makefile has been updated to include the layouts. The unit tests
have been updated as well.
2010-11-02 20:16:55 -05:00
|
|
|
.entity-container{
|
2010-11-09 19:04:49 -06:00
|
|
|
position: relative;
|
2010-11-17 13:13:33 -06:00
|
|
|
left: 250px;
|
2010-11-15 14:06:43 -06:00
|
|
|
width: 80%;
|
|
|
|
margin: 0.06em;
|
|
|
|
padding: 0.06em;
|
2010-08-06 09:01:44 -05:00
|
|
|
background: #e8e8e8;
|
|
|
|
}
|
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
.action-panel {
|
2010-11-17 13:13:33 -06:00
|
|
|
position: fixed;
|
|
|
|
left: 3em;
|
|
|
|
border: none;
|
2010-11-09 19:04:49 -06:00
|
|
|
float: left;
|
2010-11-15 14:06:43 -06:00
|
|
|
margin-top: 5em;
|
|
|
|
margin-left: 2.5em;
|
|
|
|
padding-bottom: 1em;
|
2010-11-17 13:13:33 -06:00
|
|
|
width: 17.5em;
|
2010-11-09 19:04:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.action-panel h3{
|
2010-11-12 14:23:58 -06:00
|
|
|
margin: 0;
|
2010-11-09 19:04:49 -06:00
|
|
|
background: #e8e8e8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-panel li {
|
2010-11-15 14:06:43 -06:00
|
|
|
height: 2em;
|
|
|
|
padding: 0.2em;
|
2010-11-09 19:04:49 -06:00
|
|
|
}
|
|
|
|
|
2010-11-15 15:41:21 -06:00
|
|
|
.action-panel li.search-facet {
|
|
|
|
color: black;
|
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-panel li.entity-facet {
|
|
|
|
color: black;
|
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-panel li.entity-facet-disabled {
|
|
|
|
color: gray;
|
|
|
|
cursor: default;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-09 19:04:49 -06:00
|
|
|
.client {
|
2010-11-15 14:06:43 -06:00
|
|
|
margin-top: 0.4em;
|
2010-11-09 19:04:49 -06:00
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
HBAC Details Page
The UI framework has been extended to include a collection of widgets:
- ipa_widget: base class
- ipa_text_widget: text field
- ipa_radio_widget: radio button
- ipa_textarea_widget: textarea
- ipa_button_widget: button
- ipa_column_widget: column for table
- ipa_table_widget: table
These widgets can be used to create input controls. They can also be
extended to create custom controls.
The framework has also been enhanced to support custom layouts. This
can be used to change the look of the application without changing
the code. Initially this is only available in details section.
Layout consists of a collection of HTML templates. Each template is a
complete and valid HTML file representing a portion of a page. The
template will be loaded and initialized by the code, then filled with
the data from the server. The layouts are located in
install/static/layouts/<name> folder.
By default, if no templates are used, the fields in the details page
are rendered vertically using dd/dt/dd tags. For pages that require
different layout, a custom UI needs to be developed. There are two ways
to do that:
- write a custom widget to generate the UI dynamically
- create an HTML template and write the initialization code
For components that are quite complex or used frequently, it's might
be better to use the first method. For simple pages that are used only
in one location or need to support customization, the second method
might be preferable. Other benefits of templates:
- cleaner code and UI separation
- more flexibility in customization
- new pages can be developed quickly and require less coding
- multiple templates can be used with the same initialization code
- easier to maintain
The HBAC details page has been implemented using both methods. By
default it will use custom widgets to generate the page. To use a
custom layout, add the following parameter to the URL, then reload
the page:
&layout=<name>
Currently the only available layout is 'default' which produces the
same look as the custom widgets.
The HBAC details page is usable, but it still needs additional work.
The access time is not working yet. There is no undo button, hint,
or validation yet.
The table in the association facet has also been changed to use
ipa_association_widget which is derived from ipa_table_widget.
The Makefile has been updated to include the layouts. The unit tests
have been updated as well.
2010-11-02 20:16:55 -05:00
|
|
|
/* Search */
|
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-controls {
|
2010-11-13 20:34:31 -06:00
|
|
|
height: 25px;
|
2010-11-17 13:13:33 -06:00
|
|
|
background: white; ##a5a5a5;
|
2010-11-13 20:34:31 -06:00
|
|
|
position: relative;
|
2010-11-15 14:06:43 -06:00
|
|
|
padding: 0.7em;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-table > a:link,a:visted{
|
|
|
|
color:black;
|
|
|
|
}
|
2010-08-06 09:01:44 -05:00
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-table{
|
2010-11-15 14:06:43 -06:00
|
|
|
padding: 0;
|
2010-08-06 09:01:44 -05:00
|
|
|
width:100%;
|
2010-11-17 13:13:33 -06:00
|
|
|
border: none;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-table th{
|
2010-08-06 09:01:44 -05:00
|
|
|
background-color:gray;
|
|
|
|
color:white;
|
2010-09-15 10:00:00 -05:00
|
|
|
text-align: left;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-table tr:nth-child(even){
|
2010-11-17 13:13:33 -06:00
|
|
|
# background-color:#CCC;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-table tr:nth-child(odd){
|
2010-11-17 13:13:33 -06:00
|
|
|
# background-color:#FFF;
|
2010-09-16 14:13:48 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.entity-views{
|
2010-09-16 20:41:24 -05:00
|
|
|
list-style-type:none;
|
2010-09-16 14:13:48 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.entity-views li {
|
|
|
|
display:inline;
|
2010-09-16 20:44:03 -05:00
|
|
|
cursor: pointer;
|
2010-11-15 14:06:43 -06:00
|
|
|
padding: 0.4em;
|
2010-09-16 14:13:48 -05:00
|
|
|
}
|
2010-10-13 12:07:43 -05:00
|
|
|
|
|
|
|
.strikethrough { text-decoration: line-through; }
|
2010-10-15 23:40:38 -05:00
|
|
|
|
2010-10-15 13:06:23 -05:00
|
|
|
|
2010-11-16 18:10:40 -06:00
|
|
|
.key-status-valid {
|
|
|
|
list-style-type: circle;
|
|
|
|
color: #008000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.key-status-missing {
|
|
|
|
list-style-type: circle;
|
|
|
|
color: #daa520;
|
|
|
|
}
|
|
|
|
|
|
|
|
.key-status-active {
|
|
|
|
list-style-type: disc;
|
|
|
|
}
|
|
|
|
|
2010-10-15 23:40:38 -05:00
|
|
|
.certificate-status-valid {
|
|
|
|
list-style-type: circle;
|
|
|
|
color: #008000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.certificate-status-revoked {
|
|
|
|
list-style-type: circle;
|
|
|
|
color: #ff0000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.certificate-status-missing {
|
|
|
|
list-style-type: circle;
|
|
|
|
color: #daa520;
|
|
|
|
}
|
|
|
|
|
|
|
|
.certificate-status-active {
|
|
|
|
list-style-type: disc;
|
|
|
|
}
|
2010-10-15 13:06:23 -05:00
|
|
|
|
|
|
|
dl.modal {
|
|
|
|
clear: both;
|
2010-11-15 14:06:43 -06:00
|
|
|
margin-left: 1em;
|
|
|
|
margin-top: 1em;
|
2010-10-15 13:06:23 -05:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl.modal dt {
|
|
|
|
clear: left;
|
|
|
|
float: left;
|
2010-11-15 14:06:43 -06:00
|
|
|
padding-bottom: 0;
|
|
|
|
padding-right: 0;
|
2010-10-15 13:06:23 -05:00
|
|
|
text-align: right;
|
2010-11-15 14:06:43 -06:00
|
|
|
width: 10em;
|
2010-10-15 13:06:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dl.modal dd {
|
|
|
|
float: left;
|
2010-11-15 14:06:43 -06:00
|
|
|
padding-bottom: 0;
|
|
|
|
margin-left: 0.8em;
|
2010-10-15 13:06:23 -05:00
|
|
|
}
|
2010-11-17 13:13:33 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ui-widget-content {
|
|
|
|
border:0;
|
|
|
|
}
|