Skip to content

Commit

Permalink
Dev: added template name in carroussel
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Nov 1, 2017
1 parent 14d14dc commit c70ece0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/views/admin/survey/subview/_template_carousel.php
Expand Up @@ -17,11 +17,12 @@

<?php foreach($templates as $key=>$template):?>
<?php if (Permission::model()->hasGlobalPermission('superadmin','read') || Permission::model()->hasGlobalPermission('templates','read') || hasTemplateManageRights(Yii::app()->session["loginID"], $key) == 1 || $oSurvey->template==htmlspecialchars($key) ): ?>
<div class="item text-center <?php if($key==$oSurvey->template){echo ' active ';}else{echo ' inactive ';}?>" id="template-big-<?php echo $key;?>">
<div class="item text-center <?php if($key==$oSurvey->template){echo ' active ';}else{echo ' inactive ';}?>" id="template-big-<?php echo $key;?>">
<?php echo $template['preview']; ?>
<h3><?php echo $key;?></h3>
<?php if($key==$oSurvey->template):?>
<button
class="selectTemplate btn btn-default btn-success btn-xs disabled"
class="selectTemplate btn btn-default btn-success disabled"
data-selectedtext="<?php eT("Selected!");?>"
data-unselectedtext="<?php eT('Select');?> &nbsp; <?php echo $key;?>">
<?php eT('Selected!');?>
Expand Down

0 comments on commit c70ece0

Please sign in to comment.