Commit e6e95dd1 authored by Tibor Katelbach's avatar Tibor Katelbach

tweaking lartevolution

parent a5decce9
......@@ -37,9 +37,6 @@ if( isset(Yii::app()->session["costum"]["tpls"][$keyTpl]) ) {
.swMain > ul li > a.selected::before, .swMain li > a.done::before{
border-color: <?php echo ( @$color1 ) ? $color1 : $defaultColor ?>;
}
.bgFormColor{
background-color:black;
}
</style>
......@@ -47,20 +44,20 @@ if( isset(Yii::app()->session["costum"]["tpls"][$keyTpl]) ) {
foreach ($formList as $k => $v) {
?>
<div id='<?php echo $v ?>' class='col-sm-offset-1 col-sm-10 sectionStep bgFormColor' style="padding-bottom:40px">
<div id='<?php echo $v ?>xx' class='col-sm-offset-1 col-sm-10 sectionStep ' style="padding-bottom:40px">
<?php
$form = PHDB::findOne( Form::COLLECTION,[ "id"=>$v ] );
?>
$form = PHDB::findOne( Form::COLLECTION,[ "id"=>$v ] );
?>
<script type="text/javascript">
formInputs["<?php echo $v ?>"] = <?php echo json_encode( $form['inputs'] ); ?>;
var formInputsHere = formInputs;
</script>
<?php
if( !empty($form) )
{
echo '<h1 class="text-center" style="color:'.$color1.'" >'.@$form["name"].'</h1>';
<?php
if( !empty($form) )
{
echo '<h1 class="text-center" style="color:'.$color1.'" >'.@$form["name"].'</h1>';
echo "<div class='text-center'>";
if(isset(Yii::app()->session["costum"]["cms"][$form["id"]."desc"]))
echo htmlentities(Yii::app()->session["costum"]["cms"][$form["id"]."desc"]);
......@@ -70,24 +67,24 @@ var formInputsHere = formInputs;
echo "<a class='btn btn-xs btn-danger editBtn' href='javascript:;' data-key='".@$form["id"]."desc' data-type='textarea' data-markdown='1' data-path='costum.cms.".@$form["id"]."desc' data-label='Expliquez les objectifs de cette étape ? '> <i class='fa fa-pencil'></i></a>";
echo "</div>";
//echo "<div class='markdown'>";
//echo "<div class='markdown'>";
echo "<div class=''>";
echo $this->renderPartial("survey.views.tpls.forms.formSection",
[ "formId" => $v,
"form" => $form,
"wizard" => false,
"answer"=>$answer,
echo $this->renderPartial("survey.views.tpls.forms.formSection",
[ "formId" => $v,
"form" => $form,
"wizard" => false,
"answer"=>$answer,
"mode" => "w",
"showForm" => $showForm,
"canEdit" => $canEdit,
"el" => $el ] ,true );
echo "</div>";
}
else
{
echo "";
}
?>
"showForm" => $showForm,
"canEdit" => $canEdit,
"el" => $el ] ,true );
echo "</div>";
}
else
{
echo "";
}
?>
</div>
<?php
}
......@@ -110,4 +107,5 @@ jQuery(document).ready(function() {
</div>
</div>
\ No newline at end of file
</div>
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