diff --git a/VERSION b/VERSION
index 8cb83c1ea9..31cb111501 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-nursix-1.1.0-devel-1652-gb0ea9ac (2014-12-09 14:12:10)
+1203ab0 (2014-12-09 16:04:37)
\ No newline at end of file
diff --git a/controllers/event.py b/controllers/event.py
index 61974231eb..409d06807d 100644
--- a/controllers/event.py
+++ b/controllers/event.py
@@ -158,6 +158,36 @@ def incident_report():
RESTful CRUD controller
"""
+ def prep(r):
+ if r.http == "GET":
+ if r.method in ("create", "create.popup"):
+ # Lat/Lon from Feature?
+ # @ToDo: S3PoIWidget() instead to pickup the passed Lat/Lon/WKT
+ field = r.table.location_id
+ lat = get_vars.get("lat", None)
+ if lat is not None:
+ lon = get_vars.get("lon", None)
+ if lon is not None:
+ form_vars = Storage(lat = float(lat),
+ lon = float(lon),
+ )
+ form = Storage(vars=form_vars)
+ s3db.gis_location_onvalidation(form)
+ id = s3db.gis_location.insert(**form_vars)
+ field.default = id
+ # WKT from Feature?
+ wkt = get_vars.get("wkt", None)
+ if wkt is not None:
+ form_vars = Storage(wkt = wkt,
+ )
+ form = Storage(vars = form_vars)
+ s3db.gis_location_onvalidation(form)
+ id = s3db.gis_location.insert(**form_vars)
+ field.default = id
+
+ return True
+ s3.prep = prep
+
return s3_rest_controller()
# -----------------------------------------------------------------------------
diff --git a/languages/fr.py b/languages/fr.py
index 45ab3a96a2..b5ca0ecc33 100644
--- a/languages/fr.py
+++ b/languages/fr.py
@@ -2319,6 +2319,7 @@
'Incident Reporting': "Rapport d'incident",
'Incident Reporting System': "Système de rapport d'incidents",
'Incident Reports': "Rapport d'incident",
+'Incident Type': "Type d'incident",
'Incident updated': 'Incident mis à jour',
'Include any special requirements such as equipment which they need to bring.': "Inclure tout besoin spécial comme de l'équipement à apporter",
"includes a GroundOverlay or ScreenOverlay which aren't supported in OpenLayers yet, so it may not work properly.": "Inclut un GroundOverlay ou ScreenOverlay qui ne sont pas encore pris en charge par OpenLayers, de sorte qu'il peuvent ne pas fonctionner correctement.",
@@ -2741,7 +2742,7 @@
'Loading Locations...': 'Chargement des emplacements...',
'Local Name': 'Nom local',
'Local Names': 'Noms locaux',
-'Location': 'emplacement',
+'Location': 'Emplacement',
'Location 1': 'Emplacement 1',
'Location 2': 'Emplacement 2',
'Location added': 'Emplacement ajouté',
@@ -3850,12 +3851,13 @@
'Report Type': 'Type du rapport',
'Report Types Include': "L'inclusion dans les types de rapport",
'Report updated': 'Rapport mis à jour',
-'reported': 'Signalé',
-'Reporter': 'Journaliste',
-'Reporter Name': 'Nom journaliste',
+'Reported By': 'Rapporté par',
+'reported': 'rapporté',
+'Reporter': 'Rapporteur',
+'Reporter Name': 'Nom de Rapporteur',
'Reporting on the projects in the region': 'Rapports sur les projets dans la région',
-'Reports': 'reports',
-'reports successfully imported.': 'Rapports importé avec succès.',
+'Reports': 'Rapports',
+'reports successfully imported.': 'rapports importé avec succès.',
'representation of the Polygon/Line.': 'Représentation du polygone /ligne.',
'Request': 'Requête',
'Request added': 'Demande ajouté',
@@ -4870,7 +4872,7 @@
'Timeline Report': 'Chronologie Rapport',
'times and it is still not working. We give in. Sorry.': 'fois et cela ne marche toujours pas. Nous abandonnons. Désolé.',
'Timestamps can be correlated with the timestamps on the photos to locate them on the map.': 'Les horodatages peuvent être corrélés avec les horodatages des photos pour les localiser sur la carte.',
-'Title': 'titre',
+'Title': 'Titre',
'Title to show for the Web Map Service panel in the Tools panel.': 'Titre à afficher pour le panneau du service cartographie Web dans le panneau des outils.',
'To': 'Vers',
'To %(site)s': 'Vers %(site)s',
@@ -4973,7 +4975,7 @@
'tweepy module not available within the running Python - this needs installing for non-Tropo Twitter support!': "tweepy Module non disponibles dans l'exécution Python-il faut installer pour le support Twitter non Tropo!",
'Twitter ID or #hashtag': 'ID Twitter ou #hashtag',
'Twitter Settings': 'Paramètres Twitter',
-'Type': 'type',
+'Type': 'Type',
'Type of cause': 'Type de cause',
'Type of Construction': 'Type de construction',
'Type of water source before the disaster': "Type de source d'eau avant la catastrophe",
@@ -5002,7 +5004,7 @@
'Units': 'Unités',
'Units of Measure': 'Unités de mesure',
'Unknown': 'Inconnu',
-'unknown': 'Inconnu',
+'unknown': 'inconnu',
'Unknown Peer': 'Homologue inconnu',
'Unknown type of facility': "Type inconnu d'installation",
'Unreinforced masonry': 'Maçonnerie non-renforcé',
diff --git a/modules/s3db/event.py b/modules/s3db/event.py
index accad13f82..dbf96c60ec 100644
--- a/modules/s3db/event.py
+++ b/modules/s3db/event.py
@@ -960,7 +960,7 @@ def model(self):
#self.event_incident_id(ondelete = "CASCADE"),
s3_datetime(),
Field("name", notnull=True,
- label = T("Name"),
+ label = T("Title"),
),
self.event_incident_type_id(),
self.gis_location_id(),
diff --git a/private/templates/Magnu/config.py b/private/templates/Magnu/config.py
index 4aa1f535b3..739fdd53b2 100644
--- a/private/templates/Magnu/config.py
+++ b/private/templates/Magnu/config.py
@@ -49,6 +49,8 @@
settings.gis.countries = ("CF",) # Initially, will change
# Uncomment to display the Map Legend as a floating DIV
settings.gis.legend = "float"
+# Uncomment to Disable the Postcode selector in the LocationSelector
+settings.gis.postcode_selector = False # @ToDo: Vary by country (include in the gis_config!)
# L10n settings
# Languages used in the deployment (used for Language Toolbar & GIS Locations)
diff --git a/private/templates/Magnu/menus.py b/private/templates/Magnu/menus.py
index 6c424a7841..3b4cbeef4b 100644
--- a/private/templates/Magnu/menus.py
+++ b/private/templates/Magnu/menus.py
@@ -27,7 +27,7 @@ def menu_modules(cls):
MM("Contacts", c="pr", f="person", args="summary"),
MM("Demographics", c="stats", f="demographic_data", args="summary"),
MM("Health", c="hms", f="hospital", args="summary"),
- MM("Incidents", c="event", f="ireport", args="summary"),
+ MM("Incidents", c="event", f="incident_report", args="summary"),
MM("Offices", c="org", f="office", args="summary"),
MM("Organisations", c="org", f="organisation", args="summary"),
MM("Projects", c="project", f="project", args="summary"),
diff --git a/private/templates/default/config.py b/private/templates/default/config.py
index c50df095b4..d3c7f06f61 100644
--- a/private/templates/default/config.py
+++ b/private/templates/default/config.py
@@ -359,6 +359,8 @@
# restricted to MapAdmins.
# Uncomment to disable that LatLons are within boundaries of their parent
#settings.gis.check_within_parent_boundaries = False
+# Uncomment to Disable the Postcode selector in the LocationSelector
+#settings.gis.postcode_selector = False
# Enable this for a UN-style deployment
#settings.ui.cluster = True
diff --git a/static/formats/s3csv/labels.xml b/static/formats/s3csv/labels.xml
index e39ac37fdd..84d1d8f3f0 100644
--- a/static/formats/s3csv/labels.xml
+++ b/static/formats/s3csv/labels.xml
@@ -138,8 +138,9 @@
|Name|name|Office|office|
-
+
+
diff --git a/static/formats/s3csv/org/office.xsl b/static/formats/s3csv/org/office.xsl
index a0340342e6..f6688c8c63 100644
--- a/static/formats/s3csv/org/office.xsl
+++ b/static/formats/s3csv/org/office.xsl
@@ -42,7 +42,7 @@
- Name
+ OfficeName
@@ -218,18 +218,20 @@
+
+
+
+
+
-
-
-
-
+
@@ -256,7 +258,7 @@
-
+
@@ -757,7 +759,6 @@
-
@@ -780,6 +781,12 @@
+
+
+
+
+
+
@@ -813,7 +820,7 @@
-
+
@@ -864,7 +871,7 @@
-
+