From ad5de5b2fb255e84e2e6be7250aebc756faae734 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 4 Nov 2013 15:02:46 +0100 Subject: Imports: add an automatic update option When set to True: * can be imported automatically by the chimere_import command * new items are directly available (and not at the Imported state) Admin interface and model updated. --- chimere/static/chimere/js/importer_interface.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'chimere/static') diff --git a/chimere/static/chimere/js/importer_interface.js b/chimere/static/chimere/js/importer_interface.js index f66b306..e15aacd 100644 --- a/chimere/static/chimere/js/importer_interface.js +++ b/chimere/static/chimere/js/importer_interface.js @@ -1,26 +1,30 @@ django.jQuery(function($) { var importer_form_filter = { OSM:new Array('field-filtr', 'field-default_name', 'field-categories', - 'field-source', 'field-overwrite'), + 'field-source', 'field-overwrite', + 'field-automatic_update'), KML:new Array('field-source', 'field-source_file', 'field-default_name', 'field-filtr', 'field-zipped', 'field-origin', 'field-license', 'field-categories', 'field-overwrite', - 'field-get_description'), + 'field-get_description', 'field-automatic_update'), SHP:new Array('field-source', 'field-source_file', 'field-default_name', 'field-zipped', 'field-origin', 'field-srid', - 'field-license', 'field-categories', 'field-overwrite'), + 'field-license', 'field-categories', 'field-overwrite', + 'field-automatic_update'), RSS:new Array('field-source', 'field-default_name', 'field-origin', 'field-srid', 'field-license', 'field-categories', - 'field-overwrite', 'field-get_description'), + 'field-overwrite', 'field-get_description', + 'field-automatic_update'), CSV:new Array('field-source', 'field-source_file', 'field-default_name', 'field-origin', 'field-srid', 'field-license', 'field-categories', 'field-overwrite', - 'field-get_description'), + 'field-get_description', 'field-automatic_update'), XSLT:new Array('field-source', 'field-source_file', 'field-source_file_alt', 'field-default_name', 'field-origin', 'field-srid', 'field-license', 'field-categories', 'field-overwrite', - 'field-get_description', 'field-default_localisation') + 'field-get_description', 'field-default_localisation', + 'field-automatic_update') } var osm_map_initialized; var edit_map_initialized; -- cgit v1.2.3