Commit aff1d082 authored by Raph El's avatar Raph El
Browse files

Hotfix

parent c21b29e5
......@@ -4,16 +4,24 @@ class NewAction extends CAction
public function run($id=null, $tpl=null)
{
$this->getController()->layout = "//layouts/empty";
$params = array(
"canEdit" => true,
"answerId"=>"new"
);
if( isset($test) ){
$params["tpl"]=$id;
$params = array();
// $params = array(
// "canEdit" => true,
// "answerId"=>"new"
// );
// if( isset($test) ){
// $params["tpl"]=$id;
// }
// $params = Form::getDataForAnswer($params);
// $tpl=(!empty($tpl)) ? $tpl : "survey.views.tpls.forms.formWizard";
if(!empty(Yii::app()->session['userId'])){
echo "HERE";
}else{
$tpl= "survey.views.tpls.views.new";
echo $this->getController()->renderPartial($tpl,$params );
}
$params = Form::getDataForAnswer($params);
$tpl=(!empty($tpl)) ? $tpl : "survey.views.tpls.forms.formWizard";
echo $this->getController()->renderPartial($tpl,$params );
}
}
\ No newline at end of file
<div class="col-xs-12">
<h2 class="text-center">Déposer une candidature</h2>
<div class="col-sm-10 col-sm-offset-1">
<h4>Etape</h4>
<div class="col-xs-12">
BLA BLA BLALALA
</div>
<div class="col-xs-12 padding-10">
<?php
if(!empty(Yii::app()->session['userId'])){ ?>
<a class="lbh " href="#answer.index" style="font-size: 17px;"></a>
<?php } else { ?>
<button class="letter-green font-montserrat btn-menu-connect margin-left-10 margin-right-10 menu-btn-top" data-toggle="modal" data-target="#modalLogin" style="font-size: 17px;">
<i class="fa fa-sign-in"></i>
<span class="hidden-xs"><small style="width:70%;">Se connecter</small></span>
</button>
<button class="letter-green font-montserrat btn-menu-connect margin-left-10 margin-right-10 menu-btn-top" data-toggle="modal" data-target="#modalLogin" style="font-size: 17px;">
<i class="fa fa-sign-in"></i>
<span class="hidden-xs"><small style="width:70%;">Crée un compte</small></span>
</button>
<?php } ?>
</div>
</div>
</div>
\ No newline at end of file
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