2010-08-06 09:01:44 -05:00
|
|
|
/* Authors:
|
|
|
|
* Pavel Zuna <pzuna@redhat.com>
|
|
|
|
* Adam Young <ayoung@redhat.com>
|
SUDO adjustments
The SUDO rule details facet has been updated to support the latest UI
spec. The facet consists of 5 sections: general, users, hosts, commands,
and run-as.
The general section contains the SUDO rule description and status. If
the status is changed, the sudorule-enable/disable will be invoked.
The other sections contain radio buttons for the association category
and tables for the members. When a member is added or removed, the
category will be adjusted appropriately. If the category is changed to
'all', 'allow', or 'deny', all members will be removed.
The last section is currently not working because backend support is
not yet available.
The adder dialog boxes for users, groups, and hosts has been modified
to accept external identities. The layout for the base adder dialog
was updated. The base dialog class was updated to support templates.
The SUDO dialog boxes were implemented using templates. New CSS
classes were added to ipa.css.
The HBAC rule details facet has been updated as well.
2010-12-07 01:51:51 -06:00
|
|
|
* Endi Sukma Dewata <edewata@redhat.com>
|
2010-12-09 15:32:22 -06:00
|
|
|
* Kyle Baker <kybaker@redhat.com>
|
2010-08-06 09:01:44 -05:00
|
|
|
*
|
|
|
|
* 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-12-09 15:32:22 -06:00
|
|
|
@font-face {font-family: "FreeWay"; src:url("fonts/FreeWay.otf");}
|
|
|
|
@font-face {font-family: "FreeWayBold"; src:url("fonts/FreeWay-Bold.otf");}
|
|
|
|
|
|
|
|
.input_link {
|
|
|
|
padding: .4em 1em .4em 2em;
|
|
|
|
text-decoration: none;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input_link span.ui-icon {
|
|
|
|
-moz-border-radius: 0.3em;
|
|
|
|
border: 1px solid #B8B8B8;
|
|
|
|
margin: -9px 0.4em 0em -0.3em;
|
|
|
|
position: absolute;
|
|
|
|
left: .2em;
|
|
|
|
top: 50%;
|
|
|
|
|
|
|
|
}
|
2010-09-16 14:13:48 -05:00
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
/* ---- Header ---- */
|
|
|
|
div.header {
|
2010-11-23 15:32:17 -06:00
|
|
|
background-color:#0C3B00;
|
2010-11-12 14:23:58 -06:00
|
|
|
width: 100%;
|
2010-12-09 15:32:22 -06:00
|
|
|
height: 40px;
|
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-09-16 09:28:07 -05:00
|
|
|
div.header span.header-loggedinas {
|
2010-11-23 15:32:17 -06:00
|
|
|
width: 960px;
|
2010-08-06 09:01:44 -05:00
|
|
|
color: #fff;
|
2010-12-09 15:32:22 -06:00
|
|
|
display: block;
|
|
|
|
padding-left: none;
|
|
|
|
margin-top: -26px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: 276px;
|
|
|
|
width: 200px;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
2010-11-23 15:32:17 -06:00
|
|
|
|
|
|
|
|
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 {
|
2010-12-09 15:32:22 -06:00
|
|
|
font-family: "FreeWayBold","Liberation Sans", Arial, sans-serif;
|
|
|
|
font-size: 1.5em;
|
|
|
|
font-weight: normal;
|
|
|
|
color: #333333;
|
|
|
|
text-transform: uppercase;
|
2010-08-06 09:01:44 -05:00
|
|
|
margin-left: 15px;
|
|
|
|
margin-bottom: 0px;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2010-12-09 15:32:22 -06:00
|
|
|
.section-expand{
|
|
|
|
float:left;
|
|
|
|
-moz-border-radius: 0.3em;
|
|
|
|
background-color: -moz-linear-gradient(top, #959595, #5e5e5e);
|
|
|
|
border: 1px solid #b8b8b8;
|
|
|
|
color: #fff;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
margin-top: 0.1em;
|
|
|
|
}
|
|
|
|
|
2010-08-06 09:01:44 -05:00
|
|
|
hr {
|
2010-12-09 15:32:22 -06:00
|
|
|
background-color: #EEEEEE;
|
2010-08-06 09:01:44 -05:00
|
|
|
clear: both;
|
2010-12-09 15:32:22 -06:00
|
|
|
color: #FFFFFF;
|
2010-08-06 09:01:44 -05:00
|
|
|
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-12-20 15:56:14 -06:00
|
|
|
.undo {
|
|
|
|
cursor:pointer;
|
|
|
|
}
|
|
|
|
|
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;
|
2010-12-09 15:32:22 -06:00
|
|
|
margin: 0.5em -0.5em 0 -6em;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs dd {
|
|
|
|
float: left;
|
|
|
|
padding-bottom: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs dd.first {
|
|
|
|
margin-left: 0px;
|
2010-12-09 15:32:22 -06:00
|
|
|
margin-top: 7px;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs dd.other {
|
|
|
|
clear: both;
|
2010-12-09 15:32:22 -06:00
|
|
|
margin-left: 107px;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dl.entryattrs input {
|
|
|
|
margin-right: 5px;
|
2010-12-09 15:32:22 -06:00
|
|
|
margin-top: -12px;
|
|
|
|
min-width: 275px;
|
2010-08-06 09:01:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
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-12-09 15:32:22 -06:00
|
|
|
overflow-x: hidden;
|
2010-08-25 11:49:30 -05:00
|
|
|
}
|
|
|
|
|
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-23 15:32:17 -06:00
|
|
|
padding-left: 5.5em;
|
2010-11-17 13:13:33 -06:00
|
|
|
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-12-09 15:32:22 -06:00
|
|
|
-moz-border-radius: 0;
|
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-12-09 15:32:22 -06:00
|
|
|
.ui-icon-plus {
|
|
|
|
background-position: -16px -129px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-icon-minus {
|
|
|
|
background-position: -48px -129px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-icon-trash {
|
|
|
|
background-position: -176px -97px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-widget-content .ui-icon {
|
|
|
|
background-image: url("ui-icons_222222_256x240.png");
|
|
|
|
background-color: #e2e2e2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-widget-content {
|
|
|
|
background: -moz-linear-gradient(top, #F9F9F9, #fff);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ui-widget-content a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: #1d85d5;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-widget-header {
|
|
|
|
background: url("modal-background.png")
|
|
|
|
repeat scroll 50% 50% #1f9123;
|
|
|
|
border: 1px solid #244c16;
|
|
|
|
color: #EEEEEE;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs1 .ui-tabs-nav {
|
|
|
|
height: 3em;
|
|
|
|
}
|
|
|
|
|
2010-12-09 15:32:22 -06:00
|
|
|
.ui-widget input, .ui-widget select,
|
|
|
|
.ui-widget textarea, .ui-widget button {
|
|
|
|
font-family: "Liberation Sans", Arial, sans-serif;
|
|
|
|
font-size: 1.3em;
|
|
|
|
margin-right: .1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
|
|
|
-moz-border-radius: .3em;
|
|
|
|
background: -moz-linear-gradient(top, #959595, #5e5e5e);
|
|
|
|
border: 1px solid #777777;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs1 .ui-tabs-nav li {
|
2010-12-09 15:32:22 -06:00
|
|
|
-moz-border-radius: 0 !important;
|
2010-11-17 13:13:33 -06:00
|
|
|
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 {
|
2010-11-23 15:32:17 -06:00
|
|
|
padding: 0 0;
|
2010-11-17 13:13:33 -06:00
|
|
|
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-12-09 15:32:22 -06:00
|
|
|
-moz-border-radius: 0 !important;
|
|
|
|
font-family: "FreeWayBold", "Liberation Sans", Arial, Sans;
|
|
|
|
width:5.5em;
|
|
|
|
padding: none;
|
2010-11-17 13:13:33 -06:00
|
|
|
color: #7E7E7E;
|
|
|
|
margin: 0 auto;
|
2010-11-19 10:40:44 -06:00
|
|
|
text-align:center;
|
2010-12-09 15:32:22 -06:00
|
|
|
font-size:1.5em;
|
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-12-09 15:32:22 -06:00
|
|
|
overflow-x: hidden;
|
2010-11-12 14:23:58 -06:00
|
|
|
}
|
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs2 .ui-tabs-nav {
|
2010-12-09 15:32:22 -06:00
|
|
|
padding: 0.3em 6em 0 7em;
|
2010-11-17 13:13:33 -06:00
|
|
|
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 {
|
2010-11-19 10:40:44 -06:00
|
|
|
width:auto;
|
2010-12-09 15:32:22 -06:00
|
|
|
padding-left: 1em;
|
2010-11-17 13:13:33 -06:00
|
|
|
margin: 0px 0;
|
2010-12-09 15:32:22 -06:00
|
|
|
background: #326122 !important;
|
2010-11-19 10:40:44 -06:00
|
|
|
color: white;
|
2010-11-17 13:13:33 -06:00
|
|
|
}
|
2010-08-06 09:01:44 -05:00
|
|
|
|
2010-11-17 13:13:33 -06:00
|
|
|
.tabs2 .ui-tabs-nav li.ui-tabs-selected {
|
2010-12-09 15:32:22 -06:00
|
|
|
padding-left: 1em;
|
2010-11-17 13:13:33 -06:00
|
|
|
height: 1em;
|
2010-12-09 15:32:22 -06:00
|
|
|
background: #326122 !important;
|
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-23 15:32:17 -06:00
|
|
|
width:auto;
|
2010-12-09 15:32:22 -06:00
|
|
|
padding: 0.4em 0.6em ;
|
|
|
|
-moz-border-radius: 2em !important;
|
|
|
|
border-radius: 2em !important;
|
2010-11-09 19:04:49 -06:00
|
|
|
color: white;
|
2010-11-23 15:32:17 -06:00
|
|
|
font-size: 1em;
|
2010-12-09 15:32:22 -06:00
|
|
|
font-family: "Liberation Sans", Arial, Sans;
|
2010-11-09 19:04:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.tabs2 .ui-tabs-nav li > a:link, span.main-nav-off > a:visited{
|
|
|
|
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{
|
2010-12-09 15:32:22 -06:00
|
|
|
background: none repeat scroll 0 0 #1C3612;
|
2010-11-17 13:13:33 -06:00
|
|
|
}
|
|
|
|
|
2010-09-16 20:41:24 -05:00
|
|
|
.tabs2 .ui-tabs-nav li.ui-tabs-selected a{
|
2010-12-09 15:32:22 -06:00
|
|
|
# border:1px solid #1C3612;
|
|
|
|
background: none repeat scroll 0 0 #1C3612;
|
2010-11-09 19:04:49 -06:00
|
|
|
color: white;
|
2010-11-17 13:13:33 -06:00
|
|
|
|
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;
|
2010-12-09 15:32:22 -06:00
|
|
|
height: 330px;
|
2010-11-17 13:13:33 -06:00
|
|
|
left: 3em;
|
|
|
|
border: none;
|
2010-11-09 19:04:49 -06:00
|
|
|
float: left;
|
2010-12-09 15:32:22 -06:00
|
|
|
margin-top: 6.3em;
|
2010-11-15 14:06:43 -06:00
|
|
|
margin-left: 2.5em;
|
2010-11-23 21:24:50 -06:00
|
|
|
padding-left: 0.5em;
|
2010-11-15 14:06:43 -06:00
|
|
|
padding-bottom: 1em;
|
2010-12-09 15:32:22 -06:00
|
|
|
width: 15.5em;
|
|
|
|
background-image:url('panel-background.png');
|
|
|
|
background-repeat:no-repeat;
|
|
|
|
background-position:right;
|
2010-11-09 19:04:49 -06:00
|
|
|
}
|
|
|
|
|
2010-12-09 15:32:22 -06:00
|
|
|
.action-panel h3{
|
|
|
|
font-family: "FreeWayBold", "Liberation Sans", Arial, sans-serif;
|
|
|
|
color: #333333;
|
|
|
|
margin: 0;
|
|
|
|
background: #EEEEEE;
|
|
|
|
padding: .5em;
|
|
|
|
border-right: 1px solid #dfdfdf;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
2010-11-23 21:24:50 -06:00
|
|
|
|
|
|
|
.action-panel ul {
|
|
|
|
list-style-type:none;
|
2010-12-09 15:32:22 -06:00
|
|
|
padding-left: .5em;
|
2010-11-23 21:24:50 -06:00
|
|
|
}
|
|
|
|
|
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-12-09 15:32:22 -06:00
|
|
|
font-family: "FreeWayBold", "Liberation Sans", Arial, sans-serif;
|
|
|
|
font-size: 1.1em;
|
|
|
|
color: #1d85d5;
|
|
|
|
list-style-type: none;
|
|
|
|
height: 2.1em;
|
|
|
|
padding: none;
|
2010-11-09 19:04:49 -06:00
|
|
|
}
|
|
|
|
|
2010-11-15 15:41:21 -06:00
|
|
|
.action-panel li.search-facet {
|
2010-12-09 15:32:22 -06:00
|
|
|
font-family: "FreeWayBold", "Liberation Sans", Arial, Sans;
|
|
|
|
color: #333333;
|
2010-11-15 15:41:21 -06:00
|
|
|
cursor: pointer;
|
2010-12-09 15:32:22 -06:00
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 1.2em;
|
2010-11-15 15:41:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.action-panel li.entity-facet {
|
2010-12-09 15:32:22 -06:00
|
|
|
font-family: "Liberation Sans",Arial,sans-serif;
|
|
|
|
color: #1d85d5;
|
2010-11-15 15:41:21 -06:00
|
|
|
cursor: pointer;
|
2010-12-09 15:32:22 -06:00
|
|
|
margin-left:1.8em;
|
|
|
|
text-transform: none;
|
2010-11-15 15:41:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.action-panel li.entity-facet-disabled {
|
2010-12-09 15:32:22 -06:00
|
|
|
font-family: "Liberation Sans",Arial,sans-serif;
|
2010-11-15 15:41:21 -06:00
|
|
|
color: gray;
|
|
|
|
cursor: default;
|
|
|
|
text-decoration: none;
|
2010-12-09 15:32:22 -06:00
|
|
|
text-transform: none;
|
2010-11-15 15:41:21 -06:00
|
|
|
}
|
|
|
|
|
2010-12-09 15:32:22 -06:00
|
|
|
.action-button {
|
|
|
|
background: none;
|
|
|
|
background-image:none;
|
|
|
|
font-family: "Liberation Sans", Arial, sans-serif;
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
2010-11-15 15:41:21 -06:00
|
|
|
|
|
|
|
|
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;
|
2010-12-09 15:32:22 -06:00
|
|
|
min-width: 700px;
|
2010-11-09 19:04:49 -06: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
|
|
|
/* Search */
|
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-controls {
|
2010-12-09 15:32:22 -06:00
|
|
|
-moz-border-radius: .7em .7em 0 0;
|
2010-11-13 20:34:31 -06:00
|
|
|
height: 25px;
|
2010-12-09 15:32:22 -06:00
|
|
|
background: -moz-linear-gradient(top, #eeeeee, #dfdfdf);
|
2010-11-13 20:34:31 -06:00
|
|
|
position: relative;
|
2010-12-09 15:32:22 -06:00
|
|
|
padding: 1em 1.5em;
|
|
|
|
margin-top: 15px;
|
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-12-09 15:32:22 -06:00
|
|
|
.search-table td{
|
|
|
|
padding-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2010-09-15 10:00:00 -05:00
|
|
|
.search-table th{
|
2010-12-09 15:32:22 -06:00
|
|
|
padding-left: 0.5em;
|
|
|
|
background-color:#f6f6f6;
|
|
|
|
color:#333333;
|
2010-09-15 10:00:00 -05:00
|
|
|
text-align: left;
|
2010-12-09 15:32:22 -06:00
|
|
|
border: 1px solid #dfdfdf;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-table tfoot tr td span{
|
|
|
|
border-top: 1px solid #dfdfdf;
|
|
|
|
padding: 0.9em 0 0 1em;
|
|
|
|
display: block;
|
|
|
|
margin-top: 2em;
|
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;
|
|
|
|
}
|
SUDO adjustments
The SUDO rule details facet has been updated to support the latest UI
spec. The facet consists of 5 sections: general, users, hosts, commands,
and run-as.
The general section contains the SUDO rule description and status. If
the status is changed, the sudorule-enable/disable will be invoked.
The other sections contain radio buttons for the association category
and tables for the members. When a member is added or removed, the
category will be adjusted appropriately. If the category is changed to
'all', 'allow', or 'deny', all members will be removed.
The last section is currently not working because backend support is
not yet available.
The adder dialog boxes for users, groups, and hosts has been modified
to accept external identities. The layout for the base adder dialog
was updated. The base dialog class was updated to support templates.
The SUDO dialog boxes were implemented using templates. New CSS
classes were added to ipa.css.
The HBAC rule details facet has been updated as well.
2010-12-07 01:51:51 -06:00
|
|
|
|
|
|
|
table.scrollable thead {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.scrollable tbody {
|
|
|
|
display: block;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-filter {
|
|
|
|
height: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-filter {
|
|
|
|
height: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-results {
|
|
|
|
position: relative;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-available {
|
|
|
|
border: 1px solid black;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
width: 250px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-buttons {
|
|
|
|
position: absolute;
|
|
|
|
top: 15px;
|
|
|
|
left: 250px;
|
|
|
|
right: 250px;
|
|
|
|
bottom: 0px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-selected {
|
|
|
|
border: 1px solid black;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
right: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
width: 250px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-internal {
|
|
|
|
border: 1px solid black;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
bottom: 45px;
|
|
|
|
width: 250px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adder-dialog-external {
|
|
|
|
border: 1px solid black;
|
|
|
|
position: absolute;
|
|
|
|
left: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
width: 250px;
|
|
|
|
height: 40px;
|
|
|
|
}
|