Commit 170c9729 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

form_builder.js partial/file/form.html match field ids

ensure that field ids match between the server side and the js-generated
form fields.
parent 0caf6010
Pipeline #33518 failed with stages
in 1347 minutes and 57 seconds
......@@ -364,6 +364,7 @@ FileFormBuilder.prototype.build_jstree = function() {
var self = this;
var w = this.build_wrapper();
var d = document.createElement('div'); = "jstree_field_" + self.index;
d.className += " jstree_field form-control";
......@@ -42,7 +42,7 @@
<div class="field_div">
<input class="date form-control" id="sampling_date_{{=i}}" name="file[{{=i}}][sampling_date]" type="text" title="sampling date"
<input class="date form-control" id="file_sampling_date_{{=i}}" name="file[{{=i}}][sampling_date]" type="text" title="sampling date"
value="{{if 'sampling_date' in file and file['sampling_date'] is not None:}}{{=file['sampling_date']}}{{pass}}"
placeholder="yyyy-mm-dd" pattern="(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment