Commit 4a98a6fe authored by Raph El's avatar Raph El
Browse files

Form : contact mail modif

parent e6620388
......@@ -183,8 +183,8 @@
"deal14" : {
"label" : "Contacter les auteurs de ce dossier",
"buttonLabel" : "Envoyer un email",
"accessRoles" : [
"financeur"
"canAccess" : [
"Financeur"
],
"selectContact" : {
"answered" : "Demandeur(s)",
......
<?php $inputsObj=$form["inputs"][$key];
if(!isset($inputsObj["canAccess"]) || Form::canAccess($inputsObj["canAccess"])){ ?>
<div class="contactFormEmail col-xs-12 no-padding margin-bottom-20">
<br/><h4 style="color:<?php echo ($titleColor) ? $titleColor : "black"; ?>"><?php echo @$inputsObj["label"] ?></h4>
<?php if(isset($inputsObj["info"])){ ?>
<?php
if($mode != "pdf" && ( !isset($inputsObj["canAccess"]) || Form::canAccess($inputsObj["canAccess"]) ) ) {
$inputsObj=$form["inputs"][$key];
?>
<div class="contactFormEmail col-xs-12 no-padding margin-bottom-20">
<br/>
<h4 style="color:<?php echo ($titleColor) ? $titleColor : "black"; ?>"><?php echo @$inputsObj["label"] ?></h4>
<?php if(isset($inputsObj["info"])){ ?>
<span class="italic">
<?php echo $inputsObj["info"] ?>
</span>
<?php } ?>
<?php } ?>
<button class="btn btn-success contactMail" data-key="<?php echo $key ?>">
<?php echo $inputsObj["buttonLabel"] ?>
</button>
</div>
<!-- check on select answer + add default obj + add default content-->
<?php if(isset($inputsObj["formAdmin"])){ ?>
<?php }else if (isset($inputsObj["selectContact"])){
</div>
<!-- check on select answer + add default obj + add default content-->
<?php
if(isset($inputsObj["formAdmin"])){
}else if (isset($inputsObj["selectContact"])){
$inputsObj["selectOptByGroup"]=array();
foreach($inputsObj["selectContact"] as $k => $v){
$inputsObj["selectOptByGroup"][$k]=array();
......@@ -29,8 +36,8 @@ if(!isset($inputsObj["canAccess"]) || Form::canAccess($inputsObj["canAccess"])){
}
}
//$inputsObj["selectOptByGroup"]=$selectOptByGroup;
} ?>
<script type="text/javascript">
} ?>
<script type="text/javascript">
//if(typeof answerMailConfig =="undefined") var answerMailConfig={};
//var answerObject.mailConfig.inputs[<?php echo $key ?>]=new Object;
answerObject.mailConfig.inputs["<?php echo $key; ?>"]=<?php echo json_encode($inputsObj); ?>;
......@@ -113,5 +120,5 @@ if(!isset($inputsObj["canAccess"]) || Form::canAccess($inputsObj["canAccess"])){
});
});
});
</script>
</script>
<?php } ?>
\ 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