Skip to content

Commit

Permalink
Merge pull request #2 from mondada/development
Browse files Browse the repository at this point in the history
Title & Patch Error Feedback
  • Loading branch information
duncan-mccracken authored May 25, 2018
2 parents 77cb672 + 196dd6d commit 33be526
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion patchserver/var/www/webadmin/manageTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,14 @@ function setModeEditor<?php echo $ext_attr['id']; ?>() {
<?php foreach ($patches as $patch) { ?>
<tr>
<td>
<?php if (sizeof($patch['error']) == 0) { ?>
<div class="checkbox checkbox-primary">
<input type="checkbox" class="styled" name="enable_patch" id="enable_patch" value="<?php echo $patch['id']; ?>" onChange="togglePatch(this); updateTimestamp(<?php echo $title_id; ?>);" <?php echo (sizeof($patch['error']) > 0) ? "disabled " : ""; ?><?php echo ($patch['enabled'] == "1" && sizeof($patch['error']) == 0) ? "checked " : ""; ?>/>
<input type="checkbox" class="styled" name="enable_patch" id="enable_patch" value="<?php echo $patch['id']; ?>" onChange="togglePatch(this); updateTimestamp(<?php echo $title_id; ?>);" <?php echo ($patch['enabled'] == "1") ? "checked" : ""; ?>/>
<label/>
</div>
<?php } else { ?>
<div style="padding-left: 16px; padding-top: 2px;"><a href="managePatch.php?id=<?php echo $patch['id']; ?>"><span class="glyphicon glyphicon-exclamation-sign text-danger" style="font-size: 17px;"></span></a></div>
<?php } ?>
</td>
<td><input type="hidden" name="patch_order[<?php echo $patch['id']; ?>]" value="<?php echo $patch['sort_order']; ?>"/><?php echo $patch['sort_order']; ?></td>
<td nowrap><a href="managePatch.php?id=<?php echo $patch['id']; ?>"><?php echo $patch['version']; ?></a></td>
Expand Down
6 changes: 5 additions & 1 deletion patchserver/var/www/webadmin/patchTitles.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,14 @@
<?php foreach ($sw_titles as $sw_title) { ?>
<tr>
<td>
<?php if (sizeof($sw_title['error']) == 0) { ?>
<div class="checkbox checkbox-primary">
<input type="checkbox" class="styled" name="enable_title" id="enable_title" value="<?php echo $sw_title['id']; ?>" onChange="javascript:ajaxPost('patchCtl.php?title_id='+this.value, 'title_enabled='+this.checked);" <?php echo (sizeof($sw_title['error']) > 0) ? "disabled " : ""; ?><?php echo ($sw_title['enabled'] == "1" && sizeof($sw_title['error']) == 0) ? "checked " : ""; ?>/>
<input type="checkbox" class="styled" name="enable_title" id="enable_title" value="<?php echo $sw_title['id']; ?>" onChange="javascript:ajaxPost('patchCtl.php?title_id='+this.value, 'title_enabled='+this.checked);" <?php echo ($sw_title['enabled'] == "1") ? "checked " : ""; ?>/>
<label/>
</div>
<?php } else { ?>
<div style="padding-left: 16px; padding-top: 2px;"><a href="manageTitle.php?id=<?php echo $sw_title['id']; ?>"><span class="glyphicon glyphicon-exclamation-sign text-danger" style="font-size: 17px;"></span></a></div>
<?php } ?>
</td>
<td nowrap><a href="manageTitle.php?id=<?php echo $sw_title['id']; ?>"><?php echo $sw_title['name']; ?></a></td>
<td nowrap><?php echo $sw_title['publisher']; ?></td>
Expand Down

0 comments on commit 33be526

Please sign in to comment.