Merge branch 'release/v15.6.6'
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<p><input class="button" type="submit" value="Save" name="_save"></p>
|
<p><input class="button" type="submit" value="Save" name="_save"></p>
|
||||||
<p><input class="button" type="submit" value="Save and Keep Editing" name="_continue"></p>
|
<p><input class="button" type="submit" value="Save and Keep Editing" name="_continue"></p>
|
||||||
<p><input class="button" type="submit" value="Save and Create New Session" name="_addanother"></p>
|
<p><input class="button" type="submit" value="Save and Create Another Session" name="_addanother"></p>
|
||||||
</form>
|
</form>
|
||||||
<div class="padded" id="id_guidance">
|
<div class="padded" id="id_guidance">
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
</table>
|
</table>
|
||||||
<p><input class="button" type="submit" value="Save" name="_save"></p>
|
<p><input class="button" type="submit" value="Save" name="_save"></p>
|
||||||
<p><input class="button" type="submit" value="Save and Keep Editing" name="_continue"></p>
|
<p><input class="button" type="submit" value="Save and Keep Editing" name="_continue"></p>
|
||||||
<p><input class="button" type="submit" value="Save and Create New Session" name="_addanother"></p>
|
<p><input class="button" type="submit" value="Save and Create Another Session" name="_addanother"></p>
|
||||||
<div id="id_guidance" class="padded">
|
<div id="id_guidance" class="padded">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p><input class="button" type="submit" value="Save" name="_save"></p>
|
<p><input class="button" type="submit" value="Save" name="_save"></p>
|
||||||
<p><input class="button" type="submit" value="Save and Keep Editing" name="_continue"></p>
|
<p><input class="button" type="submit" value="Save and Keep Editing" name="_continue"></p>
|
||||||
<p><input class="button" type="submit" value="Save and Create New Session" name="_addanother"></p>
|
<p><input class="button" type="submit" value="Save and Create Another Library Session" name="_addanother"></p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -772,7 +772,8 @@ def step_to_string(step):
|
|||||||
|
|
||||||
durationtype = step['durationType']
|
durationtype = step['durationType']
|
||||||
if step['durationValue'] == 0:
|
if step['durationValue'] == 0:
|
||||||
return '',type, -1, -1
|
if durationtype not in ['RepeatUntilStepsCmplt','RepeatUntilHrLessThan','RepeatUntilHrGreaterThan']:
|
||||||
|
return '',type, -1, -1,1
|
||||||
|
|
||||||
if durationtype == 'Time':
|
if durationtype == 'Time':
|
||||||
unit = 'min'
|
unit = 'min'
|
||||||
@@ -976,8 +977,10 @@ def step_to_string(step):
|
|||||||
|
|
||||||
name = step['wkt_step_name']
|
name = step['wkt_step_name']
|
||||||
|
|
||||||
intensity = step['intensity']
|
try:
|
||||||
|
intensity = step['intensity']
|
||||||
|
except KeyError:
|
||||||
|
intensity = 0
|
||||||
|
|
||||||
s = '{name} {intensity} {duration} {unit} {target} {repeat}'.format(
|
s = '{name} {intensity} {duration} {unit} {target} {repeat}'.format(
|
||||||
nr = nr,
|
nr = nr,
|
||||||
|
|||||||
Reference in New Issue
Block a user