Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #320 from dbca-wa/319-autosend-autodelete-default
Browse files Browse the repository at this point in the history
Use empty string as default for autosend and autodelete
  • Loading branch information
florianm authored Dec 20, 2022
2 parents 607b15a + 3b9efd3 commit c68c7b9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions server/views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
document.getElementById(divId).classList.add("hidden");
}
else
else
{
document.getElementById(divId).classList.remove("hidden");
}
Expand Down Expand Up @@ -322,18 +322,18 @@
<label for="formProperties_submissionUrl">Submission URL</label>
<input type="text" id="formProperties_submissionUrl" name="submissionUrl" />
<p>Directs your submissions somewhere other than the Aggregate that supplied the form. This is the ODK Aggregate website url with <code>Aggregate.html</code> replaced by <code>submission</code>.</p>

<label for="formProperties_autosend">Auto-send</label>
<select id="formProperties_autosend" name="autosend">
<option value="default" selected="selected">Follow ODK Collect settings</option>
<option value="" selected="selected">Follow ODK Collect settings</option>
<option value="true">Always</option>
<option value="false">Never</option>
</select>
<p>Override or follow the ODK Collect form management setting "Auto send".</p>

<label for="formProperties_autodelete">Auto-delete</label>
<select id="formProperties_autodelete" name="autodelete">
<option value="default" selected="selected">Follow ODK Collect settings</option>
<option value="" selected="selected">Follow ODK Collect settings</option>
<option value="true">Always</option>
<option value="false">Never</option>
</select>
Expand All @@ -345,7 +345,7 @@
<option value="true">Yes</option>
</select>
<p>Whether to log the timing of how and when the form is filled.
Learn about all available form audit options
Learn about all available form audit options
<a href="https://docs.getodk.org/form-audit-log/" target="_" rel="external">here</a>.</p>

<div id="form_audit_details" class="optionalProperty hidden">
Expand All @@ -372,7 +372,7 @@
<option value="on-form-edit">Yes</option>
</select>
<p>Whether to require a reason before allowing a change to a form question.</p>
</div><!-- #form_audit_reason -->
</div><!-- #form_audit_reason -->

<label for="formProperties_track_location">Track device location</label>
<select id="formProperties_track_location" name="track_location" onchange="showDiv('form_audit_loc_details', this, 'false')">
Expand All @@ -390,19 +390,19 @@
<option value="high-accuracy">High accuracy</option>
</select>
<p>Balance power comsumption through background location tracking with location accuracy.
Learn <a href="https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest"
Learn <a href="https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest"
target="_" rel="external">here</a> about the available options.
Using "balanced" will capture the location at least at specified intervals while preserving power.</p>
Using "balanced" will capture the location at least at specified intervals while preserving power.</p>



<label for="formProperties_location_min_interval">Capture location every</label>
<input type="number" id="formProperties_location_min_interval" name="location_min_interval" value="20"/>
<p>If device location is tracked, it will be attempted to be captured at least every this many seconds.</p>
<p>If device location is tracked, it will be attempted to be captured at least every this many seconds.</p>

<label for="formProperties_location_max_age">Location valid for</label>
<input type="number" id="formProperties_location_max_age" name="location_max_age" value="60"/>
<p>If device location is tracked, a captured location will be considered representative of the device location for this many seconds.</p>
</div><!-- #form_audit_loc_details -->
</div><!-- #form_audit_loc_details -->
</div><!-- #form_audit_details -->
</form>
</div>
Expand Down

0 comments on commit c68c7b9

Please sign in to comment.