add abstract method edittask() to QuesttypeController for editing the task of a Quest

This commit is contained in:
coderkun 2014-07-31 11:15:14 +02:00
commit d955fd0c72
6 changed files with 159 additions and 13 deletions

View file

@ -108,5 +108,8 @@
<label for="wrongtext"><?=('Wrong text')?>:</label><br />
<textarea name="wrongtext" placeholder="<?=_('Wrong text')?>" style="width:100%; height:10em;"><?=$wrongText?></textarea><br />
</fieldset>
<input type="submit" name="edit" value="<?=_('edit')?>" />
<?php if(!is_null($quest['type']['classname'])) : ?>
<input type="submit" name="edit-task" value="<?=_('edit task')?>" />
<?php endif ?>
<input type="submit" name="edit" value="<?=_('save')?>" />
</form>

View file

@ -0,0 +1,11 @@
<?php if(!is_null($questgroup['picture'])) : ?>
<div class="moodpic">
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$questgroup['picture']['url']))?>" />
</div>
<?php endif ?>
<?=$questgroupshierarchypath?>
<h1><?=_('Edit Quest task')?></h1>
<?php if(!is_null($task)) : ?>
<?=$task?>
<?php endif ?>