* finish task #2558.

* add manage contacts and refresh button for task and testtask module.
This commit is contained in:
chenfeiCF
2016-03-28 16:05:03 +08:00
parent 7767e14eb5
commit 2306be7eaf
9 changed files with 32 additions and 11 deletions
+2
View File
@@ -1,6 +1,8 @@
.dropdown-pris > .btn {background-color: #fff;}
#mailto + .chosen-container-multi .chosen-choices {border-top-left-radius: 0; border-bottom-left-radius: 0}
#mailtoGroup .input-group-btn > .btn {margin-left: -1px!important;}
.chosen-container {max-width: 980px}
.minw-80px {min-width: 80px;}
+10 -1
View File
@@ -94,10 +94,19 @@
</div>
</td>
<td colspan='2'>
<div class='input-group'>
<div id='mailtoGroup' class='input-group'>
<span class='input-group-addon'><?php echo $lang->task->mailto;?></span>
<?php echo html::select('mailto[]', $project->acl == 'private' ? $members : $users, str_replace(' ', '', $task->mailto), "multiple class='form-control'");?>
<?php if($contactLists) echo html::select('', $contactLists, '', "class='form-control chosen' onchange=\"setMailto('mailto', this.value)\"");?>
<?php
if(empty($contactLists))
{
echo '<span class="input-group-btn">';
echo '<a data-toggle="tooltip" title="' . $lang->user->contacts->manage . '" href="' . $this->createLink('my', 'managecontacts', "listID=0&mode=new") . '" target="_blank" class="btn"><i class="icon icon-cog"></i></a>';
echo '<a data-toggle="tooltip" title="' . $lang->refresh . '" href="###" class="btn" onclick="ajaxGetContacts(this)"><i class="icon icon-refresh"></i></a>';
echo '</span>';
}
?>
</div>
</td>
</tr>