Skip to content

Commit

Permalink
Merge branch 'L41-T637/show-button-create-question-on-Question-summar…
Browse files Browse the repository at this point in the history
…y-page'
  • Loading branch information
olleharstedt committed May 7, 2021
2 parents cd0340b + a0eebe2 commit 64abb86
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions application/views/questionAdministration/create.php
Expand Up @@ -176,6 +176,28 @@ class="btn navbar-btn button white btn-success"
]
); ?>
</div>
<?php if (Permission::model()->hasSurveyPermission($oSurvey->sid, 'surveycontent', 'update')): ?>
<div id="survey-action-title" class="pagetitle h3"><?php eT('Question quick actions'); ?></div>
<div class="row welcome survey-action">
<div class="col-lg-12 content-right">

<!-- create question in this group -->
<div class="col-lg-3">
<div class="panel panel-primary <?php if ($oSurvey->isActive) { echo 'disabled'; } else { echo 'panel-clickable'; } ?>" id="panel-1" data-url="<?php echo $this->createUrl('questionAdministration/create/surveyid/'.$oSurvey->sid.'/gid/'.$oQuestion->gid); ?>">
<div class="panel-heading">
<div class="panel-title h4"><?php eT("Add new question to group");?></div>
</div>
<div class="panel-body">
<span class="icon-add text-success" style="font-size: 3em;"></span>
<p class='btn-link'>
<?php eT("Add new question to group");?>
</p>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</form>
</div>
Expand Down

0 comments on commit 64abb86

Please sign in to comment.