#7 New forms
* fixes bug in case of unset dates for intervention * adds missing template formater * adds/updates translations
This commit is contained in:
@@ -276,9 +276,9 @@ class SimpleGeomForm(BaseForm):
|
||||
geom = Polygon.from_bbox([0, 0, 0, 0])
|
||||
# Zoom out to a very high level, so the user can see directly that there is no geometry for this entry
|
||||
self.fields["geom"].widget.attrs["default_zoom"] = 1
|
||||
self.initialize_form_field("geom", geom)
|
||||
self.area = geom.area
|
||||
if read_only:
|
||||
self.initialize_form_field("geom", geom)
|
||||
self.area = geom.area
|
||||
self.fields["geom"].disabled = True
|
||||
|
||||
def save(self, action: UserActionLogEntry):
|
||||
|
||||
Reference in New Issue
Block a user