Skip to content
Snippets Groups Projects
Commit c6698d67 authored by Armand Bahi's avatar Armand Bahi
Browse files

Ajout de listes déroulantes au formulaire objet métier

parent e996ab25
No related branches found
No related tags found
No related merge requests found
...@@ -250,6 +250,21 @@ var oFormScope; ...@@ -250,6 +250,21 @@ var oFormScope;
oFormValues['id_field']['options'] = aColumnsOptions; oFormValues['id_field']['options'] = aColumnsOptions;
} }
} }
if (angular.isDefined(oFormValues['geom_column'])) {
if (angular.isDefined(oFormValues['geom_column']['options'])) {
oFormValues['geom_column']['options'] = aColumnsOptions;
}
}
if (angular.isDefined(oFormValues['search_field'])) {
if (angular.isDefined(oFormValues['search_field']['options'])) {
oFormValues['search_field']['options'] = aColumnsOptions;
}
}
if (angular.isDefined(oFormValues['result_field'])) {
if (angular.isDefined(oFormValues['result_field']['options'])) {
oFormValues['result_field']['options'] = aColumnsOptions;
}
}
}); });
}, },
......
...@@ -291,41 +291,76 @@ ...@@ -291,41 +291,76 @@
}, },
{ {
"fields": [{ "fields": [{
"type": "text", "type": "editable_select",
"name": "geom_column", "name": "geom_column",
"label": "FORM_GEOM_COLUMN_DEVELOPMENT_0", "label": "FORM_GEOM_COLUMN_DEVELOPMENT_0",
"required": true, "required": true,
"pattern": "", "nb_cols": 5
"nb_cols": 6, }, {
"id": "New_el_10_12_1" "type": "button",
"class": "btn-group btn-group-sm margin-top-20",
"nb_cols": 1,
"buttons": [{
"type": "button",
"name": "table-datalist",
"label": "FORM_GEOM_COLUMN_DEVELOPMENT_0",
"class": "btn-primary",
"event": "loadVMapBoFormColumns()",
"glyphicon": "refresh"
}
]
}] }]
}, },
{ {
"fields": [{ "fields": [{
"type": "text", "type": "editable_select",
"name": "search_field", "name": "search_field",
"label": "FORM_SEARCH_FIELD_0", "label": "FORM_SEARCH_FIELD_0",
"nb_cols": 6, "nb_cols": 5,
"id": "New_el_11_13_1",
"tooltip": { "tooltip": {
"title": "", "title": "",
"content": "FORM_SEARCH_FIELD_0_TOOLTIP", "content": "FORM_SEARCH_FIELD_0_TOOLTIP",
"container": "body" "container": "body"
} }
}, {
"type": "button",
"class": "btn-group btn-group-sm margin-top-20",
"nb_cols": 1,
"buttons": [{
"type": "button",
"name": "table-datalist",
"label": "FORM_SEARCH_FIELD_0",
"class": "btn-primary",
"event": "loadVMapBoFormColumns()",
"glyphicon": "refresh"
}
]
}] }]
}, },
{ {
"fields": [{ "fields": [{
"type": "text", "type": "editable_select",
"name": "result_field", "name": "result_field",
"label": "FORM_RESULT_FIELD_0", "label": "FORM_RESULT_FIELD_0",
"nb_cols": 6, "nb_cols": 5,
"id": "New_el_12_14_1",
"tooltip": { "tooltip": {
"title": "", "title": "",
"content": "FORM_RESULT_FIELD_0_TOOLTIP", "content": "FORM_RESULT_FIELD_0_TOOLTIP",
"container": "body" "container": "body"
} }
}, {
"type": "button",
"class": "btn-group btn-group-sm margin-top-20",
"nb_cols": 1,
"buttons": [{
"type": "button",
"name": "table-datalist",
"label": "FORM_RESULT_FIELD_0",
"class": "btn-primary",
"event": "loadVMapBoFormColumns()",
"glyphicon": "refresh"
}
]
}] }]
}, },
{ {
...@@ -685,41 +720,76 @@ ...@@ -685,41 +720,76 @@
}, },
{ {
"fields": [{ "fields": [{
"type": "text", "type": "editable_select",
"name": "geom_column", "name": "geom_column",
"label": "FORM_GEOM_COLUMN_DEVELOPMENT_0", "label": "FORM_GEOM_COLUMN_DEVELOPMENT_0",
"required": true, "required": true,
"pattern": "", "nb_cols": 5
"nb_cols": 6, }, {
"id": "New_el_10_12_1" "type": "button",
"class": "btn-group btn-group-sm margin-top-20",
"nb_cols": 1,
"buttons": [{
"type": "button",
"name": "table-datalist",
"label": "FORM_GEOM_COLUMN_DEVELOPMENT_0",
"class": "btn-primary",
"event": "loadVMapBoFormColumns()",
"glyphicon": "refresh"
}
]
}] }]
}, },
{ {
"fields": [{ "fields": [{
"type": "text", "type": "editable_select",
"name": "search_field", "name": "search_field",
"label": "FORM_SEARCH_FIELD_0", "label": "FORM_SEARCH_FIELD_0",
"nb_cols": 6, "nb_cols": 5,
"id": "New_el_11_13_1",
"tooltip": { "tooltip": {
"title": "", "title": "",
"content": "FORM_SEARCH_FIELD_0_TOOLTIP", "content": "FORM_SEARCH_FIELD_0_TOOLTIP",
"container": "body" "container": "body"
} }
}, {
"type": "button",
"class": "btn-group btn-group-sm margin-top-20",
"nb_cols": 1,
"buttons": [{
"type": "button",
"name": "table-datalist",
"label": "FORM_SEARCH_FIELD_0",
"class": "btn-primary",
"event": "loadVMapBoFormColumns()",
"glyphicon": "refresh"
}
]
}] }]
}, },
{ {
"fields": [{ "fields": [{
"type": "text", "type": "editable_select",
"name": "result_field", "name": "result_field",
"label": "FORM_RESULT_FIELD_0", "label": "FORM_RESULT_FIELD_0",
"nb_cols": 6, "nb_cols": 5,
"id": "New_el_12_14_1",
"tooltip": { "tooltip": {
"title": "", "title": "",
"content": "FORM_RESULT_FIELD_0_TOOLTIP", "content": "FORM_RESULT_FIELD_0_TOOLTIP",
"container": "body" "container": "body"
} }
}, {
"type": "button",
"class": "btn-group btn-group-sm margin-top-20",
"nb_cols": 1,
"buttons": [{
"type": "button",
"name": "table-datalist",
"label": "FORM_RESULT_FIELD_0",
"class": "btn-primary",
"event": "loadVMapBoFormColumns()",
"glyphicon": "refresh"
}
]
}] }]
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment