Commit 6088d7ee authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

tweaks

parent a793d6f5
...@@ -97,6 +97,7 @@ if( $mode != "pdf" ){ ...@@ -97,6 +97,7 @@ if( $mode != "pdf" ){
// var_dump($paramsData['canValidRoles']); // var_dump($paramsData['canValidRoles']);
if( (!isset($answer["validation"][$form['id']]) || (isset( $answer["validation"][ $form['id'] ]["valid"] ) && $answer["validation"][ $form['id'] ]["valid"] == "notValid")) && if( (!isset($answer["validation"][$form['id']]) || (isset( $answer["validation"][ $form['id'] ]["valid"] ) && $answer["validation"][ $form['id'] ]["valid"] == "notValid")) &&
//isset( $answ) &&
isset( Yii::app()->session["costum"][$el['costum']['slug']]["hasRoles"][0]) && isset( Yii::app()->session["costum"][$el['costum']['slug']]["hasRoles"][0]) &&
in_array(Yii::app()->session["costum"][$el['costum']['slug']]["hasRoles"][0], $paramsData['canRequestRoles']) ) in_array(Yii::app()->session["costum"][$el['costum']['slug']]["hasRoles"][0], $paramsData['canRequestRoles']) )
echo '<a href="javascript:;" data-type="'.$form['id'].'" class="requestValid btn btn-primary">Étape terminé , Demander la Validation</a>'; echo '<a href="javascript:;" data-type="'.$form['id'].'" class="requestValid btn btn-primary">Étape terminé , Demander la Validation</a>';
...@@ -119,6 +120,8 @@ if( $mode != "pdf" ){ ...@@ -119,6 +120,8 @@ if( $mode != "pdf" ){
</tbody> </tbody>
</table> </table>
<?php <?php
......
...@@ -61,7 +61,8 @@ if( isset($parentForm["subForms"]) && count($parentForm["subForms"]) > 1 ) { ...@@ -61,7 +61,8 @@ if( isset($parentForm["subForms"]) && count($parentForm["subForms"]) > 1 ) {
// if(isset($parentForm["hasStepValidations"]) ) // if(isset($parentForm["hasStepValidations"]) )
// $lbl = ""; // $lbl = "";
$forms[$v]['open'] = false; $forms[$v]['open'] = false;
if( (!isset($answer["step"]) && !isset($parentForm["hasStepValidations"])) || if( $mode == "fa" ||
(!isset($answer["step"]) && !isset($parentForm["hasStepValidations"])) ||
$k == 0 || $k == 0 ||
(isset($answer["step"]) && $answer["step"] == "all" ) || (isset($answer["step"]) && $answer["step"] == "all" ) ||
......
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