Skip to content

Commit

Permalink
Dev: add new question to group from question summary (nicole)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 11, 2015
1 parent 8741dcc commit 28bb219
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
24 changes: 23 additions & 1 deletion application/views/admin/survey/Question/question_view.php
Expand Up @@ -113,7 +113,29 @@
</td>
</tr>
<?php } ?>
</table>
</table>

<!-- Quick Actions -->
<h3 id="survey-action-title"><?php eT('Survey quick actions'); ?></h3>
<div class="row welcome survey-action">
<div class="col-lg-12 content-right">
<!-- create new question in this group -->
<div class="col-lg-3">
<div class="panel panel-primary panel-clickable" id="pannel-1" aria-data-url="<?php echo $this->createUrl('admin/questions/sa/newquestion/surveyid/'.$surveyid.'/gid/'.$gid); ?>">
<div class="panel-heading">
<h4 class="panel-title"><?php eT("Add new question to group");?></h4>
</div>
<div class="panel-body">
<a href="<?php echo $this->createUrl('admin/questions/sa/newquestion/surveyid/'.$surveyid.'/gid/'.$gid); ?>" >
<span class="icon-add text-success" style="font-size: 3em;"></span>

This comment has been minimized.

Copy link
@Shnoulle

Shnoulle Dec 11, 2015

Collaborator

Same link to time ? One time without string ?

</a>
<p> <a href="<?php echo $this->createUrl('admin/questions/sa/newquestion/surveyid/'.$surveyid.'/gid/'.$gid); ?>">
<?php eT("Add new question to group");?>
</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
5 changes: 3 additions & 2 deletions application/views/admin/survey/Question/questionbar_view.php
Expand Up @@ -88,8 +88,9 @@

<!-- Delete -->
<?php if( $activated != "Y" && Permission::model()->hasSurveyPermission($surveyid,'surveycontent','delete' )):?>
<a class="btn btn-default btn-danger" onclick="if (confirm('<?php eT("Deleting will also delete any answer options and subquestions it includes. Are you sure you want to continue?","js"); ?>')) { <?php echo convertGETtoPOST($this->createUrl("admin/questions/sa/delete/surveyid/$surveyid/gid/$gid/qid/$qid")); ?>}">
<span class="glyphicon glyphicon-trash"></span>
<a class="btn btn-default"
onclick="if (confirm('<?php eT("Deleting will also delete any answer options and subquestions it includes. Are you sure you want to continue?","js"); ?>')) { <?php echo convertGETtoPOST($this->createUrl("admin/questions/sa/delete/surveyid/$surveyid/gid/$gid/qid/$qid")); ?>}">
<span class="glyphicon glyphicon-trash text-danger"></span>
<?php eT("Delete"); ?>
</a>
<?php else:?>
Expand Down

0 comments on commit 28bb219

Please sign in to comment.