Skip to content

Commit

Permalink
[FEATURE] Added warning_on_change to items settings override page
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsharman committed Dec 11, 2013
1 parent 0f04c0e commit 540dc2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 9 additions & 2 deletions src/views/modals/settings-items.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@
<input type="radio" name="navigation[show_submit]" value="false"<?php if (isset($nav['show_submit']) && $nav['show_submit'] === false) { echo ' checked'; }; ?>> False
</div>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label for="show_fullscreencontrol" class="col-sm-6 control-label">Show Fullscreen</label>
<div class="col-sm-6">
<input type="radio" name="navigation[show_fullscreencontrol]" value="true"<?php if (isset($nav['show_fullscreencontrol']) && $nav['show_fullscreencontrol'] === true) { echo ' checked'; }; ?>> True
<input type="radio" name="navigation[show_fullscreencontrol]" value="false"<?php if (isset($nav['show_fullscreencontrol']) && $nav['show_fullscreencontrol'] === false) { echo ' checked'; }; ?>> False
</div>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label for="show_calculator" class="col-sm-6 control-label">Show Calculator</label>
<div class="col-sm-6">
Expand All @@ -108,6 +108,13 @@
<input type="radio" name="navigation[show_itemcount]" value="false"<?php if (isset($nav['show_itemcount']) && $nav['show_itemcount'] === false) { echo ' checked'; }; ?>> False
</div>
</div>
<div class="form-group">
<label for="show_fullscreencontrol" class="col-sm-6 control-label">Show warning if not question not attempted</label>
<div class="col-sm-6">
<input type="radio" name="navigation[warning_on_change]" value="true"<?php if (isset($nav['warning_on_change']) && $nav['warning_on_change'] === true) { echo ' checked'; }; ?>> True
<input type="radio" name="navigation[warning_on_change]" value="false"<?php if (isset($nav['warning_on_change']) && $nav['warning_on_change'] === false) { echo ' checked'; }; ?>> False
</div>
</div>
</div>

</div>
Expand Down
5 changes: 3 additions & 2 deletions www/assessment/items/itemsapi_assess.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
'show_itemcount' => true,
'toc' => true,
'transition' => 'slide',
'transition_speed' => 400
'transition_speed' => 400,
'warning_on_change' => false
),
'time' => array(
'max_time' => 1500,
Expand Down Expand Up @@ -124,7 +125,7 @@

<!-- Container for the items api to load into -->
<span id="learnosity_assess"></span>
<script src="http://items.learnosity.com"></script>
<script src="http://items.vg.learnosity.com?latest"></script>
<script>
var activity = <?php echo $signedRequest; ?>;
LearnosityItems.init(activity);
Expand Down

0 comments on commit 540dc2d

Please sign in to comment.