Commit 6de70d21 authored by Chenu Denis's avatar Chenu Denis

[feature] More easy to update quickstatpanel title via css

parent 08772160
......@@ -7,7 +7,7 @@
* @copyright 2016 Advantage <http://www.advantage.fr>
* @license AGPL v3
* @version 4.0.0
* @version 4.1.0
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......
<h3 class="text-info"><?php echo $aResponse['title'] ?></h3>
<h3 class="text-info quickstatpanel-title"><?php echo $aResponse['title'] ?></h3>
<?php
echo CHtml::tag("div",array("id"=>"chart-r{$repKey}-s{$iSatId}",'class'=>'graph'),"",true);
?>
......
<h3 class="text-info"><?php echo $aResponse['title'] ?></h3>
<h3 class="text-info quickstatpanel-title"><?php echo $aResponse['title'] ?></h3>
<table class="table table-bordered table-striped">
<thead>
<tr class="bg-primary">
......
<h1><?php echo gT('Surveys') ?></h1>
<h1 class=" quickstatpanel-title"><?php echo gT('Surveys') ?></h1>
<?php
//echo CHtml::tag('pre',array(),print_r($aSurveys,1));
......
<h1 class="text-info"><?php echo $titre; ?></h1>
<h1 class="text-info quickstatpanel-title"><?php echo $titre; ?></h1>
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="#"><?php echo \Yii::t('',"Participation",array(),$className) ?></a></li>
<?php if($showSatisfaction) { ?>
......@@ -55,7 +55,7 @@
'className'=>$className,
));
}?>
<h2 class="text-info"><?php echo \Yii::t('',"Participation rate",array(),$className); ?></h2>
<h2 class="text-info quickstatpanel-title"><?php echo \Yii::t('',"Participation rate",array(),$className); ?></h2>
<?php foreach($aResponses as $aResponse){ ?>
<table class="table table-bordered <?php echo ($aResponse['max']>0) ? "" :" nopercentage"; ?>">
<thead>
......
<?php
echo CHtml::tag("h2",array("class"=>'text-info'),$title);
echo CHtml::tag("h2",array("class"=>'text-info quickstatpanel-title'),$title);
if(!empty($showSum))
{
echo CHtml::tag("h4",array("class"=>''),sprintf(\Yii::t('',"Total responses: %s",array(),$className),array_sum($aResponses)));
......
<h1 class="text-info"><?php echo $titre; ?></h1>
<h1 class="text-info quickstatpanel-title"><?php echo $titre; ?></h1>
<ul class="nav nav-tabs">
<li role="presentation"><?php echo CHtml::link(\Yii::t('',"Participation",array(),$className),array("plugins/direct","plugin"=>$className,"function"=>"participation","sid"=>$oSurvey->sid)); ?></li>
<?php if($showSatisfaction) { ?>
......@@ -35,7 +35,7 @@
<?php foreach($aReorederSatisfactions as $iSatId=>$aSatisfaction){ ?>
<h2 class="text-info"><?php echo $aSatisfaction['title'] ?></h2>
<h2 class="text-info quickstatpanel-title"><?php echo $aSatisfaction['title'] ?></h2>
<?php foreach($aSatisfaction['aResponses'] as $repKey=>$aResponse){ ?>
<?php
switch($aResponse['type']){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment