Skip to content

Commit

Permalink
Merge pull request #1178 from willkoua/1090-user-competence
Browse files Browse the repository at this point in the history
Modification du champs competence
  • Loading branch information
willkoua committed May 20, 2016
2 parents 8ec57a9 + ede6294 commit ad5d66a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@
* the following line and set the port accordingly
*/
//'port' => 'nonstandard_port_number',
'username' => 'mllAdmin',
'password' => 'toto',
'username' => 'root', //mllAdmin
'password' => '', //toto
'database' => 'mll_site',
'encoding' => 'utf8',
'timezone' => 'UTC',
Expand Down
6 changes: 5 additions & 1 deletion src/Template/Users/edit.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@
]
); ?>
<div id="bloodhound">
<?= $this->Form->input('skills', ['type' => 'text', 'disabled' => true, 'placeholder' => __('Enter and select your skills')]); ?>
<?php
if ($user->isStudent && !$user->isProfessor && !$user->isAvailableMentoring) {
echo $this->Form->input('skills', ['type' => 'text', 'disabled' => true, 'placeholder' => __('Enter and select your skills')]);
}
?>
</div>
<br />
<h3 class="header-title"><?= __('Contact information'); ?></h3>
Expand Down

0 comments on commit ad5d66a

Please sign in to comment.