mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Removed custom layouts using HTML templates.
The code for supporting custom layouts using HTML templates has been removed. If it's needed again in the future the code can be restored. Ticket #1501
This commit is contained in:
committed by
Adam Young
parent
b5fe1e8f61
commit
4ff959f55d
@@ -415,9 +415,6 @@ fi
|
||||
%{_usr}/share/ipa/ui/*.svg
|
||||
%{_usr}/share/ipa/ui/*.ttf
|
||||
%{_usr}/share/ipa/ui/*.woff
|
||||
%dir %{_usr}/share/ipa/ui/layouts
|
||||
%dir %{_usr}/share/ipa/ui/layouts/default
|
||||
%{_usr}/share/ipa/ui/layouts/default/*.html
|
||||
%dir %{_sysconfdir}/ipa
|
||||
%dir %{_sysconfdir}/ipa/html
|
||||
%config(noreplace) %{_sysconfdir}/ipa/html/ssbrowser.html
|
||||
|
@@ -73,8 +73,6 @@ AC_CONFIG_FILES([
|
||||
migration/Makefile
|
||||
share/Makefile
|
||||
ui/Makefile
|
||||
ui/layouts/Makefile
|
||||
ui/layouts/default/Makefile
|
||||
tools/Makefile
|
||||
tools/man/Makefile
|
||||
updates/Makefile
|
||||
|
@@ -3,7 +3,6 @@ AUTOMAKE_OPTIONS = 1.7
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
layouts \
|
||||
$(NULL)
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui
|
||||
|
@@ -37,7 +37,6 @@ IPA.details_section = function(spec) {
|
||||
|
||||
that.name = spec.name || '';
|
||||
that.label = spec.label || '';
|
||||
that.template = spec.template;
|
||||
that._entity_name = spec.entity_name;
|
||||
|
||||
that.fields = $.ordered_map();
|
||||
@@ -105,8 +104,6 @@ IPA.details_section = function(spec) {
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
if (that.template) return;
|
||||
|
||||
var fields = that.fields.values;
|
||||
for (var i=0; i<fields.length; i++) {
|
||||
var field = fields[i];
|
||||
@@ -123,8 +120,6 @@ IPA.details_section = function(spec) {
|
||||
|
||||
that.container = container;
|
||||
|
||||
if (that.template) return;
|
||||
|
||||
var fields = that.fields.values;
|
||||
for (var i=0; i<fields.length; i++) {
|
||||
var field = fields[i];
|
||||
@@ -139,23 +134,6 @@ IPA.details_section = function(spec) {
|
||||
that.record = record;
|
||||
|
||||
var fields = that.fields.values;
|
||||
|
||||
if (that.template) {
|
||||
var template = IPA.get_template(that.template);
|
||||
this.container.load(
|
||||
template,
|
||||
function(data, text_status, xhr) {
|
||||
for (var i=0; i<fields.length; i++) {
|
||||
var field = fields[i];
|
||||
var span = $('span[name='+field.name+']', this.container).first();
|
||||
field.setup(span);
|
||||
field.load(record);
|
||||
}
|
||||
}
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
for (var j=0; j<fields.length; j++) {
|
||||
var field = fields[j];
|
||||
field.load(record);
|
||||
@@ -230,8 +208,6 @@ IPA.details_list_section = function(spec) {
|
||||
|
||||
// do not call section_create() here
|
||||
|
||||
if (that.template) return;
|
||||
|
||||
var dl = $('<dl/>', {
|
||||
'id': that.name,
|
||||
'class': 'entryattrs'
|
||||
|
@@ -32,7 +32,6 @@ IPA.dialog = function(spec) {
|
||||
|
||||
that.name = spec.name;
|
||||
that.title = spec.title;
|
||||
that.template = spec.template;
|
||||
that._entity_name = spec.entity_name;
|
||||
|
||||
that.width = spec.width || 400;
|
||||
@@ -254,26 +253,6 @@ IPA.dialog = function(spec) {
|
||||
container.append(that.container);
|
||||
}
|
||||
|
||||
if (that.template) {
|
||||
var template = IPA.get_template(that.template);
|
||||
that.container.load(
|
||||
template,
|
||||
function(data, text_status, xhr) {
|
||||
that.setup();
|
||||
that.container.dialog({
|
||||
'title': that.title,
|
||||
'modal': true,
|
||||
'width': that.width,
|
||||
'height': that.height,
|
||||
'buttons': that.buttons,
|
||||
close: function(event, ui) {
|
||||
that.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
} else {
|
||||
that.create();
|
||||
that.setup();
|
||||
|
||||
@@ -287,7 +266,6 @@ IPA.dialog = function(spec) {
|
||||
that.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
that.option = function(name, value) {
|
||||
|
@@ -156,22 +156,11 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
|
||||
that.init = function() {
|
||||
|
||||
var section;
|
||||
|
||||
if (IPA.layout) {
|
||||
section = that.create_section({
|
||||
'name': 'general',
|
||||
'label': IPA.messages.details.general,
|
||||
'template': 'hbacrule-details-general.html #contents'
|
||||
});
|
||||
|
||||
} else {
|
||||
section = IPA.hbacrule_details_general_section({
|
||||
var section = IPA.hbacrule_details_general_section({
|
||||
'name': 'general',
|
||||
'label': IPA.messages.details.general
|
||||
});
|
||||
that.add_section(section);
|
||||
}
|
||||
|
||||
section.text({name: 'cn', read_only: true});
|
||||
section.radio({name: 'accessruletype'});
|
||||
@@ -180,14 +169,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
|
||||
var param_info = IPA.get_entity_param('hbacrule', 'usercategory');
|
||||
|
||||
if (IPA.layout) {
|
||||
section = that.create_section({
|
||||
'name': 'user',
|
||||
'label': IPA.messages.objects.hbacrule.user,
|
||||
'template': 'hbacrule-details-user.html #contents'
|
||||
});
|
||||
|
||||
} else {
|
||||
section = IPA.rule_details_section({
|
||||
'name': 'user',
|
||||
'label': IPA.messages.objects.hbacrule.user,
|
||||
@@ -203,7 +184,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
]
|
||||
});
|
||||
that.add_section(section);
|
||||
}
|
||||
|
||||
var category = section.add_field(IPA.radio_widget({
|
||||
name: 'usercategory'
|
||||
@@ -221,14 +201,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
|
||||
param_info = IPA.get_entity_param('hbacrule', 'hostcategory');
|
||||
|
||||
if (IPA.layout) {
|
||||
section = that.create_section({
|
||||
'name': 'host',
|
||||
'label': IPA.messages.objects.hbacrule.host,
|
||||
'template': 'hbacrule-details-host.html #contents'
|
||||
});
|
||||
|
||||
} else {
|
||||
section = IPA.rule_details_section({
|
||||
'name': 'host',
|
||||
'label': IPA.messages.objects.hbacrule.host,
|
||||
@@ -244,7 +216,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
]
|
||||
});
|
||||
that.add_section(section);
|
||||
}
|
||||
|
||||
category = section.add_field(IPA.radio_widget({
|
||||
name: 'hostcategory'
|
||||
@@ -262,14 +233,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
|
||||
param_info = IPA.get_entity_param('hbacrule', 'servicecategory');
|
||||
|
||||
if (IPA.layout) {
|
||||
section = that.create_section({
|
||||
'name': 'service',
|
||||
'label': IPA.messages.objects.hbacrule.service,
|
||||
'template': 'hbacrule-details-service.html #contents'
|
||||
});
|
||||
|
||||
} else {
|
||||
section = IPA.rule_details_section({
|
||||
'name': 'service',
|
||||
'label': IPA.messages.objects.hbacrule.service,
|
||||
@@ -285,7 +248,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
]
|
||||
});
|
||||
that.add_section(section);
|
||||
}
|
||||
|
||||
category = section.add_field(IPA.radio_widget({
|
||||
name: 'servicecategory'
|
||||
@@ -303,14 +265,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
|
||||
param_info = IPA.get_entity_param('hbacrule', 'sourcehostcategory');
|
||||
|
||||
if (IPA.layout) {
|
||||
section = that.create_section({
|
||||
'name': 'sourcehost',
|
||||
'label': IPA.messages.objects.hbacrule.sourcehost,
|
||||
'template': 'hbacrule-details-sourcehost.html #contents'
|
||||
});
|
||||
|
||||
} else {
|
||||
section = IPA.rule_details_section({
|
||||
'name': 'sourcehost',
|
||||
'label': IPA.messages.objects.hbacrule.sourcehost,
|
||||
@@ -326,7 +280,6 @@ IPA.hbacrule_details_facet = function(spec) {
|
||||
]
|
||||
});
|
||||
that.add_section(section);
|
||||
}
|
||||
|
||||
category = section.add_field(IPA.radio_widget({
|
||||
name: 'sourcehostcategory'
|
||||
|
@@ -52,16 +52,8 @@ var IPA = ( function () {
|
||||
that.entities = $.ordered_map();
|
||||
that.entity_factories = {};
|
||||
|
||||
that.layout = $.bbq.getState('layout');
|
||||
that.layouts_dir = 'layouts';
|
||||
|
||||
that.network_call_count = 0;
|
||||
|
||||
that.get_template = function(path) {
|
||||
var layout = that.layout || 'default';
|
||||
return that.layouts_dir+'/'+layout+'/'+path;
|
||||
};
|
||||
|
||||
/* initialize the IPA JSON-RPC helper
|
||||
* arguments:
|
||||
* url - JSON-RPC URL to use (optional) */
|
||||
|
@@ -1,22 +0,0 @@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
default \
|
||||
$(NULL)
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui/layouts
|
||||
app_DATA = \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
*~ \
|
||||
Makefile.in
|
||||
$(NULL)
|
||||
|
||||
distclean:
|
@@ -1,30 +0,0 @@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
$(NULL)
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui/layouts/default
|
||||
app_DATA = \
|
||||
hbacrule-details-accesstime.html \
|
||||
hbacrule-details-general.html \
|
||||
hbacrule-details-host.html \
|
||||
hbacrule-details-service.html \
|
||||
hbacrule-details-sourcehost.html \
|
||||
hbacrule-details-user.html \
|
||||
sudorule-details-general.html \
|
||||
sudorule-group-dialog.html \
|
||||
sudorule-host-dialog.html \
|
||||
sudorule-hostgroup-dialog.html \
|
||||
sudorule-user-dialog.html \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
*~ \
|
||||
Makefile.in
|
||||
$(NULL)
|
@@ -1,49 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>When</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
<span name="accesstime">
|
||||
<span name="text">Rule applies when access is being requested at:</span>
|
||||
<input type="radio" name="accesstime" value="all"/>Any Time
|
||||
<input type="radio" name="accesstime" value=""/>Specified Times
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
<br/>
|
||||
|
||||
<span name="table">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">Access Time</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Access Times"/>
|
||||
<input type="button" name="add" value="Add Access Times"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="time"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="accesstime">time</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,57 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>General</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
<table style="width: 100%; border: 0 solid black;">
|
||||
<tr>
|
||||
<td style="width: 100px; text-align: right;">
|
||||
Name:
|
||||
</td>
|
||||
<td>
|
||||
<span name="cn">
|
||||
<input type="text" name="cn" size="30"/>
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
Rule type:
|
||||
<span name="accessruletype">
|
||||
<input type="radio" name="accessruletype" value="allow"/>Allow
|
||||
<input type="radio" name="accessruletype" value="deny"/>Deny
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: top;">
|
||||
Description:
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span name="description">
|
||||
<textarea name="description" rows="5" style="width: 100%;" cols="40"></textarea>
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: top;">
|
||||
Rule status:
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span name="ipaenabledflag">
|
||||
<input type="radio" name="ipaenabledflag" value="TRUE"/>Active
|
||||
<input type="radio" name="ipaenabledflag" value="FALSE"/>Inactive
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,78 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Accessing</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
Rule applies when access is requested to:
|
||||
<span name="hostcategory">
|
||||
<input type="radio" name="hostcategory" value="all"/>Any Host
|
||||
<input type="radio" name="hostcategory" value=""/>Specified Hosts and Groups
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
<br/>
|
||||
|
||||
<span name="memberhost_host">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">Host</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Hosts"/>
|
||||
<input type="button" name="add" value="Add Hosts"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="host"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="memberhost_host">host</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
|
||||
<span name="memberhost_hostgroup">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">Host Group</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Host Groups"/>
|
||||
<input type="button" name="add" value="Add Host Groups"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="hostgroups"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="memberhost_hostgroup">hostgroups</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,78 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Via Service</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
Rule applies when access is requested via:
|
||||
<span name="servicecategory">
|
||||
<input type="radio" name="servicecategory" value="all"/>Any Service
|
||||
<input type="radio" name="servicecategory" value=""/>Specified Services and Groups
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
<br/>
|
||||
|
||||
<span name="memberservice_hbacsvc">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">Service</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Services"/>
|
||||
<input type="button" name="add" value="Add Services"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="service"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="memberservice_hbacsvc">service</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
|
||||
<span name="memberservice_hbacsvcgroup">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">Service Group</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Service Groups"/>
|
||||
<input type="button" name="add" value="Add Service Groups"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="services"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="memberservice_hbacsvcgroup">services</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,78 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>From</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
Rule applies when access is being initiated from:
|
||||
<span name="sourcehostcategory">
|
||||
<input type="radio" name="sourcehostcategory" value="all"/>Any Host
|
||||
<input type="radio" name="sourcehostcategory" value=""/>Specified Hosts and Groups
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
<br/>
|
||||
|
||||
<span name="sourcehost_host">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">Host</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Hosts"/>
|
||||
<input type="button" name="add" value="Add Hosts"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="host"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="sourcehost_host">host</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
|
||||
<span name="sourcehost_hostgroup">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">Host Group</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Host Groups"/>
|
||||
<input type="button" name="add" value="Add Host Groups"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="hosts"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="sourcehost_hostgroup">hosts</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,78 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Who</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
Rule applies when access is requested by:
|
||||
<span name="usercategory">
|
||||
<input type="radio" name="usercategory" value="all"/>Anyone
|
||||
<input type="radio" name="usercategory" value=""/>Specified Users and Groups
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
<br/>
|
||||
|
||||
<span name="memberuser_user">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">User</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove Users"/>
|
||||
<input type="button" name="add" value="Add Users"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="user"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="memberuser_user">user</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
|
||||
<span name="memberuser_group">
|
||||
<table class="search-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25px;">
|
||||
<input type="checkbox" name="select"/>
|
||||
</th>
|
||||
<th>
|
||||
<span style="float: left;">User Group</span>
|
||||
<span name="buttons" style="float: right;">
|
||||
<input type="button" name="remove" value="Remove User Groups"/>
|
||||
<input type="button" name="add" value="Add User Groups"/>
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="select" value="users"/>
|
||||
</td>
|
||||
<td>
|
||||
<span name="memberuser_group">users</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,49 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>General</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
<table style="width: 100%; border: 0 solid black;">
|
||||
<tr>
|
||||
<td style="width: 100px; text-align: right;">
|
||||
Name:
|
||||
</td>
|
||||
<td>
|
||||
<span name="cn">
|
||||
<input type="text" name="cn" size="30"/>
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: top;">
|
||||
Description:
|
||||
</td>
|
||||
<td>
|
||||
<span name="description">
|
||||
<textarea name="description" rows="5" style="width: 100%;" cols="40"></textarea>
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: top;">
|
||||
Rule status:
|
||||
</td>
|
||||
<td>
|
||||
<span name="ipaenabledflag">
|
||||
<input type="radio" name="ipaenabledflag" value="TRUE"/>Active
|
||||
<input type="radio" name="ipaenabledflag" value="FALSE"/>Inactive
|
||||
<span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,110 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Adder Dialog</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
|
||||
<div class="adder-dialog-filter">
|
||||
<input type="text" name="filter" style="width: 244px">
|
||||
<input type="button" name="find" value="Find">
|
||||
</div>
|
||||
|
||||
<div class="adder-dialog-results">
|
||||
|
||||
<div name="available" class="adder-dialog-internal">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Available
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Groups
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 106px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="cn"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="buttons" class="adder-dialog-buttons">
|
||||
<p><input type="button" name="remove" value="<<"></p>
|
||||
<p><input type="button" name="add" value=">>"></p>
|
||||
</div>
|
||||
|
||||
<div name="selected" class="adder-dialog-selected">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Prospective
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Groups
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 151px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="cn"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="external" class="adder-dialog-external">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
External
|
||||
</div>
|
||||
|
||||
<input type="text" name="external" style="width: 244px">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,110 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Adder Dialog</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
|
||||
<div class="adder-dialog-filter">
|
||||
<input type="text" name="filter" style="width: 244px">
|
||||
<input type="button" name="find" value="Find">
|
||||
</div>
|
||||
|
||||
<div class="adder-dialog-results">
|
||||
|
||||
<div name="available" class="adder-dialog-internal">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Available
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Hosts
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 106px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="fqdn"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="buttons" class="adder-dialog-buttons">
|
||||
<p><input type="button" name="remove" value="<<"></p>
|
||||
<p><input type="button" name="add" value=">>"></p>
|
||||
</div>
|
||||
|
||||
<div name="selected" class="adder-dialog-selected">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Prospective
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Hosts
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 151px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="fqdn"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="external" class="adder-dialog-external">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
External
|
||||
</div>
|
||||
|
||||
<input type="text" name="external" style="width: 244px">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,110 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Adder Dialog</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
|
||||
<div class="adder-dialog-filter">
|
||||
<input type="text" name="filter" style="width: 244px">
|
||||
<input type="button" name="find" value="Find">
|
||||
</div>
|
||||
|
||||
<div class="adder-dialog-results">
|
||||
|
||||
<div name="available" class="adder-dialog-internal">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Available
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Host Groups
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 106px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="cn"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="buttons" class="adder-dialog-buttons">
|
||||
<p><input type="button" name="remove" value="<<"></p>
|
||||
<p><input type="button" name="add" value=">>"></p>
|
||||
</div>
|
||||
|
||||
<div name="selected" class="adder-dialog-selected">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Prospective
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Host Groups
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 151px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="cn"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="external" class="adder-dialog-external">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
External
|
||||
</div>
|
||||
|
||||
<input type="text" name="external" style="width: 244px">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,110 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Adder Dialog</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../jquery-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../ipa.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="contents">
|
||||
|
||||
<div class="adder-dialog-filter">
|
||||
<input type="text" name="filter" style="width: 244px">
|
||||
<input type="button" name="find" value="Find">
|
||||
</div>
|
||||
|
||||
<div class="adder-dialog-results">
|
||||
|
||||
<div name="available" class="adder-dialog-internal">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Available
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead style="display: block;">
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Users
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 106px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="uid"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="buttons" class="adder-dialog-buttons">
|
||||
<p><input type="button" name="remove" value="<<"></p>
|
||||
<p><input type="button" name="add" value=">>"></p>
|
||||
</div>
|
||||
|
||||
<div name="selected" class="adder-dialog-selected">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
Prospective
|
||||
</div>
|
||||
|
||||
<table class="search-table scrollable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</th>
|
||||
<th style="width: 216px;">
|
||||
Users
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="height: 151px;">
|
||||
<tr>
|
||||
<td style="width: 22px;">
|
||||
<input type="checkbox" name="select">
|
||||
</td>
|
||||
<td style="width: 200px;">
|
||||
<span name="uid"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span name="summary"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div name="external" class="adder-dialog-external">
|
||||
|
||||
<div class="ui-widget-header">
|
||||
External
|
||||
</div>
|
||||
|
||||
<input type="text" name="external" style="width: 244px">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -36,8 +36,6 @@ IPA.rule_details_section = function(spec) {
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
if (that.template) return;
|
||||
|
||||
if (that.text) container.append(that.text);
|
||||
|
||||
var field = that.get_field(that.field_name);
|
||||
|
@@ -263,21 +263,11 @@ IPA.sudorule_details_facet = function(spec) {
|
||||
|
||||
var that = IPA.details_facet(spec);
|
||||
|
||||
var section;
|
||||
|
||||
if (IPA.layout) {
|
||||
section = that.create_section({
|
||||
'name': 'general',
|
||||
'label': IPA.messages.details.general,
|
||||
'template': 'sudorule-details-general.html #contents'
|
||||
});
|
||||
} else {
|
||||
section = IPA.sudo.rule_details_general_section({
|
||||
var section = IPA.sudo.rule_details_general_section({
|
||||
'name': 'general',
|
||||
'label': IPA.messages.details.general
|
||||
});
|
||||
that.add_section(section);
|
||||
}
|
||||
|
||||
section.text({name: 'cn', read_only: true});
|
||||
section.textarea({name: 'description'});
|
||||
@@ -929,8 +919,6 @@ IPA.sudo.rule_details_command_section = function(spec) {
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
if (that.template) return;
|
||||
|
||||
var field = that.get_field('cmdcategory');
|
||||
var param_info = IPA.get_entity_param(that.entity_name, 'cmdcategory');
|
||||
|
||||
@@ -1098,8 +1086,6 @@ IPA.sudo.rule_details_runas_section = function(spec) {
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
if (that.template) return;
|
||||
|
||||
var field = that.get_field('ipasudorunasusercategory');
|
||||
var param_info = IPA.get_entity_param(that.entity_name, 'ipasudorunasusercategory');
|
||||
|
||||
@@ -1287,18 +1273,12 @@ IPA.sudorule_association_table_widget = function(spec) {
|
||||
var label = IPA.metadata.objects[that.other_entity].label;
|
||||
var title = 'Add '+label+' to '+that.entity_name+' '+pkey;
|
||||
|
||||
var template;
|
||||
if (IPA.layout) {
|
||||
template = 'sudorule-'+that.other_entity+'-dialog.html #contents';
|
||||
}
|
||||
|
||||
return IPA.sudo.rule_association_adder_dialog({
|
||||
'title': title,
|
||||
'entity_name': that.entity_name,
|
||||
'pkey': pkey,
|
||||
'other_entity': that.other_entity,
|
||||
'external': that.external,
|
||||
'template': template
|
||||
'external': that.external
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user