mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use Fluid layout be default
https://fedorahosted.org/freeipa/ticket/3904
This commit is contained in:
committed by
Martin Kosek
parent
ab719d6f3e
commit
f821d786df
@@ -116,7 +116,7 @@ return {
|
||||
],
|
||||
widgets: [
|
||||
{
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
name: 'identity',
|
||||
label: '@i18n:objects.permission.identity',
|
||||
widgets: [
|
||||
@@ -124,7 +124,7 @@ return {
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
name: 'rights',
|
||||
label: '@i18n:objects.permission.rights',
|
||||
widgets: [
|
||||
@@ -136,7 +136,7 @@ return {
|
||||
},
|
||||
{
|
||||
$type: 'permission_target',
|
||||
container_factory: IPA.details_table_section,
|
||||
container_factory: IPA.details_section,
|
||||
label: '@i18n:objects.permission.target',
|
||||
name: 'target',
|
||||
show_target: false
|
||||
@@ -216,7 +216,7 @@ return {
|
||||
],
|
||||
widgets: [
|
||||
{
|
||||
$type: 'details_table_section_nc',
|
||||
$type: 'details_section',
|
||||
name: 'general',
|
||||
widgets: [
|
||||
'cn',
|
||||
@@ -646,13 +646,13 @@ IPA.rights_widget = function(spec) {
|
||||
|
||||
/**
|
||||
* @class IPA.permission_target_widget
|
||||
* @extends IPA.details_table_section_nc
|
||||
* @extends IPA.details_section
|
||||
*/
|
||||
IPA.permission_target_widget = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var factory = spec.container_factory || IPA.details_table_section_nc;
|
||||
var factory = spec.container_factory || IPA.details_section;
|
||||
|
||||
var that = factory(spec);
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ IPA.automember.rule_details_facet = function(spec) {
|
||||
|
||||
spec.widgets = [
|
||||
{
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
name: 'general',
|
||||
label: '@i18n:details.general',
|
||||
widgets: [
|
||||
|
||||
@@ -208,7 +208,7 @@ exp.section_builder = IPA.section_builder = function(spec) {
|
||||
* TODO: should be modified so it can be a class too
|
||||
* @property {IPA.composite_widget}
|
||||
*/
|
||||
that.section_factory = spec.section_factory || IPA.details_table_section;
|
||||
that.section_factory = spec.section_factory || IPA.details_section;
|
||||
|
||||
/**
|
||||
* Field builder
|
||||
@@ -624,47 +624,6 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) {
|
||||
that.facet_create_header(container);
|
||||
|
||||
that.create_controls();
|
||||
|
||||
that.expand_button = IPA.action_button({
|
||||
name: 'expand_all',
|
||||
href: 'expand_all',
|
||||
label: '@i18n:details.expand_all',
|
||||
'class': 'right-aligned-facet-controls',
|
||||
style: 'display: none;',
|
||||
click: function() {
|
||||
that.expand_button.css('display', 'none');
|
||||
that.collapse_button.css('display', 'inline-block');
|
||||
|
||||
var widgets = that.widgets.get_widgets();
|
||||
for (var i=0; i<widgets.length; i++) {
|
||||
var widget = widgets[i];
|
||||
if(widget.toggle) {
|
||||
widget.toggle(true);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}).appendTo(that.controls);
|
||||
|
||||
that.collapse_button = IPA.action_button({
|
||||
name: 'collapse_all',
|
||||
href: 'collapse_all',
|
||||
label: '@i18n:details.collapse_all',
|
||||
'class': 'right-aligned-facet-controls',
|
||||
click: function() {
|
||||
that.expand_button.css('display', 'inline-block');
|
||||
that.collapse_button.css('display', 'none');
|
||||
|
||||
var widgets = that.widgets.get_widgets();
|
||||
for (var i=0; i<widgets.length; i++) {
|
||||
var widget = widgets[i];
|
||||
if(widget.toggle) {
|
||||
widget.toggle(false);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}).appendTo(that.controls);
|
||||
};
|
||||
|
||||
that.widgets.create_widget_delimiter = function(container) {
|
||||
|
||||
@@ -423,7 +423,7 @@ IPA.dialog = function(spec) {
|
||||
});
|
||||
var section_builder = IPA.section_builder({
|
||||
container: that,
|
||||
section_factory: IPA.details_table_section_nc,
|
||||
section_factory: IPA.details_section,
|
||||
widget_builder: widget_builder,
|
||||
field_builder: field_builder
|
||||
});
|
||||
|
||||
@@ -1207,7 +1207,7 @@ return {
|
||||
{
|
||||
name: 'identity',
|
||||
label: '@i18n:details.identity',
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
widgets: [
|
||||
{
|
||||
$type: 'dnsrecord_host_link',
|
||||
@@ -1237,7 +1237,7 @@ return {
|
||||
widgets: [
|
||||
{
|
||||
name: 'general',
|
||||
$type: 'details_table_section_nc',
|
||||
$type: 'details_section',
|
||||
widgets: [
|
||||
'idnsname',
|
||||
{
|
||||
@@ -1375,7 +1375,7 @@ IPA.dns.record_prepare_editor_for_type = function(type, fields, widgets, update)
|
||||
|
||||
var section = {
|
||||
name: type.name,
|
||||
$type: 'details_table_section_nc',
|
||||
$type: 'details_section',
|
||||
widgets: []
|
||||
};
|
||||
widgets.push(section);
|
||||
@@ -1430,14 +1430,14 @@ IPA.dns.record_prepare_details_spec = function(spec, type_prepare_method) {
|
||||
|
||||
var standard_record_section = {
|
||||
name: 'standard_types',
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
label: '@i18n:objects.dnsrecord.standard',
|
||||
widgets: []
|
||||
};
|
||||
|
||||
var other_record_section = {
|
||||
name: 'other_types',
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
label: '@i18n:objects.dnsrecord.other',
|
||||
widgets: []
|
||||
};
|
||||
|
||||
@@ -248,7 +248,7 @@ var add_hbacrule_details_facet_widgets = function (spec) {
|
||||
|
||||
spec.widgets = [
|
||||
{
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
name: 'general',
|
||||
label: '@i18n:details.general',
|
||||
widgets: [
|
||||
|
||||
@@ -104,7 +104,7 @@ var add_netgroup_details_facet_widgets = function (spec) {
|
||||
|
||||
spec.widgets = [
|
||||
{
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
name: 'identity',
|
||||
label: '@i18n:details.general',
|
||||
widgets: [
|
||||
|
||||
@@ -141,7 +141,7 @@ var add_selinux_details_facet_widgets = function (spec) {
|
||||
|
||||
spec.widgets = [
|
||||
{
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
name: 'general',
|
||||
label: '@i18n:details.general',
|
||||
widgets: [
|
||||
|
||||
@@ -250,7 +250,7 @@ var add_sudorule_details_facet_widgets = function (spec) {
|
||||
|
||||
spec.widgets = [
|
||||
{
|
||||
$type: 'details_table_section',
|
||||
$type: 'details_section',
|
||||
name: 'general',
|
||||
label: '@i18n:details.general',
|
||||
widgets: [
|
||||
|
||||
@@ -163,7 +163,7 @@ return {
|
||||
],
|
||||
widgets: [
|
||||
{
|
||||
$type: 'details_table_section_nc',
|
||||
$type: 'details_section',
|
||||
name: 'realm',
|
||||
widgets: [
|
||||
'realm_server'
|
||||
@@ -207,7 +207,7 @@ return {
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'details_table_section_nc',
|
||||
$type: 'details_section',
|
||||
name: 'range',
|
||||
widgets: [
|
||||
{
|
||||
|
||||
@@ -4088,7 +4088,7 @@ IPA.multiple_choice_section = function(spec) {
|
||||
|
||||
var that = IPA.composite_widget(spec);
|
||||
that.choices = $.ordered_map().put_array(spec.choices, 'name');
|
||||
that.layout = IPA.build(spec.layout || IPA.table_layout);
|
||||
that.layout = IPA.build(spec.layout || IPA.fluid_layout);
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user