forked from inasafe/inasafe-fba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request inasafe#6 from kartoza/upload-form
update upload form to receive any hazard
Showing
18 changed files
with
332 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<label for="upload_return_period">Return period</label> | ||
<select class="form-control" name="return_period" id="upload_return_period"> | ||
<option value="0">Unspecified</option> | ||
<option value="1">1 year</option> | ||
<option value="5">5 years</option> | ||
<option value="10">10 years</option> | ||
<option value="20">20 years</option> | ||
<option value="100">100 years</option> | ||
</select> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Hazard type model | ||
* - id | ||
* - name | ||
*/ | ||
define([ | ||
'backbone', | ||
'moment' | ||
], function (Backbone) { | ||
|
||
const HazardType = Backbone.Model.extend({ | ||
urlRoot: postgresUrl + 'hazard_type', | ||
url: function () { | ||
return `${this.urlRoot}?id=eq.${this.id}` | ||
} | ||
}); | ||
|
||
return Backbone.Collection.extend({ | ||
model: HazardType, | ||
urlRoot: postgresUrl + 'hazard_type?order=name', | ||
url: function () { | ||
return this.urlRoot; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.