add Achievement condition ?qrcode? to trigger Achievements by scanning a QR-code (implements #126)
This commit is contained in:
parent
3939def456
commit
28c914a926
12 changed files with 319 additions and 35 deletions
1
views/binary/qrcodes/achievement.tpl
Normal file
1
views/binary/qrcodes/achievement.tpl
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?=$file?>
|
||||
|
|
@ -71,6 +71,10 @@
|
|||
</select><br />
|
||||
<label for="condition-<?=$condition['id']?>-groupby"><?=_('Group by')?>:</label>
|
||||
<input id="condition-<?=$condition['id']?>-groupby" type="text" name="conditions[<?=$condition['id']?>][groupby]" placeholder="<?=_('Group by')?>" value="<?=$condition['groupby']?>" />
|
||||
<?php elseif($achievement['condition'] == 'qrcode') : ?>
|
||||
<a href="<?=$linker->link(array('qrcodes','achievement',$seminary['url'],$achievement['url'],50))?>">
|
||||
<img src="<?=$linker->link(array('qrcodes','achievement',$seminary['url'],$achievement['url'],10))?>" />
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<br />
|
||||
<input id="delete-<?=$condition['id']?>" type="checkbox" name="deletes[<?=$condition['id']?>]" <?php if(array_key_exists($condition['id'], $deletes)) : ?>checked="checked"<?php endif ?> />
|
||||
|
|
@ -138,8 +142,9 @@
|
|||
</select><br />
|
||||
<label for="condition-new-groupby"><?=_('Group by')?>:</label>
|
||||
<input id="condition-new-groupby" type="text" name="conditions[new][groupby]" placeholder="<?=_('Group by')?>" value="" />
|
||||
<?php else : ?>
|
||||
hallo
|
||||
<?php elseif($achievement['condition'] == 'qrcode') : ?>
|
||||
<input id="condition-new-qrcode" type="checkbox" name="conditions[new][qrcode]" />
|
||||
<label for="condition-new-qrcode"><?=_('create new QR-Code')?></label><br />
|
||||
<?php endif ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@
|
|||
break;
|
||||
case 'achievement': echo _('Achievement conditions Achievement');
|
||||
break;
|
||||
case 'qrcode': echo _('QR-Code');
|
||||
break;
|
||||
} ?>
|
||||
</option>
|
||||
<?php endforeach ?>
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@
|
|||
break;
|
||||
case 'achievement': echo _('Achievement conditions Achievement');
|
||||
break;
|
||||
case 'qrcode': echo _('QR-Code');
|
||||
break;
|
||||
} ?>
|
||||
</option>
|
||||
<?php endforeach ?>
|
||||
|
|
|
|||
0
views/html/qr/a.tpl
Normal file
0
views/html/qr/a.tpl
Normal file
Loading…
Add table
Add a link
Reference in a new issue