echo $this->Form->input('Contact.id');
-
- if ($this->Login->isReferent($this->request->data['Contact']['user_id'])) {
+ // si son referent ou un coordonnateur
+ if ($this->Login->isReferent($this->request->data['Contact']['user_id'])|| $role_id == Configure::read('Constante.coordonnateurId')) {
echo $this->Form->input('Contact.referentdelegue', array(
'label' => false,
'options' => array(null => 'aucun', $users),
?>
</td>
<td>
-
- <?php if ($this->Login->isReferent($this->request->data['Contact']['user_id'])): ?>
+<!-- si son referent ou un coordonnateur-->
+ <?php if ($this->Login->isReferent($this->request->data['Contact']['user_id']) || $role_id == Configure::read('Constante.coordonnateurId')): ?>
<span title="<?php echo __d('hoverMouse', 'valider') ?>">
<button id="bt_delegue" class="btn btn-lg btn-danger ">
if ($com['Communication']['userdestination'] == CakeSession::read("Auth.User.id")) {
?>
<div class ="pull-right" id="communication-vu<?php echo $com['Communication']['id'] ?>" >
- <button type="button" class="btn btn-primary" onClick="clickCommunicationVu(<?php echo $com['Communication']['id'] ?>)">Vu</button>
+ <button type="button" class="btn btn-primary" onClick="clickCommunicationVu(<?php echo $com['Communication']['id'] ?>)">
+ <span class="glyphicon glyphicon-eye-open"></span>
+ </button>
</div><br />
<?php
} else {
<div class="well"><?php echo nl2br($echange['Echange']['contenu']); ?></div>
</fieldset>
-
- <?php
+
+ <?php
// si l'a communication échange n'as pas encore etait consultée
if (!$echange['Echange']['estvu']) {
// si on en est le referent
if ($this->Login->isReferent($this->request->data['Contact']['user_id'])) {
?>
<div class ="pull-right" id="echange-vu<?php echo $echange['Echange']['id'] ?>" >
- <button type="button" class="btn btn-primary" onClick="clickEchangeVu(<?php echo $echange['Echange']['id'] ?>)">Vu</button>
+ <button type="button" class="btn btn-primary" onClick="clickEchangeVu(<?php echo $echange['Echange']['id'] ?>)">
+ <span class="glyphicon glyphicon-eye-open"></span>
+ </button>
</div><br />
<?php
} else {
}
}
?>
-
-
+
+
</div>
<?php endforeach; ?>
</div>