* Task #46524, refactor some pages with user-picker.

This commit is contained in:
Hao Sun
2021-12-30 17:35:41 +08:00
parent dff300cf88
commit 1bdc313562
8 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -23,6 +23,7 @@
<?php js::set('multiBranchProducts', $multiBranchProducts);?>
<?php js::set('selectedProductID', $productID);?>
<?php js::set('selectedBranchID', $branchID);?>
<?php js::set('pickerUsers', $userInfos);?>
<?php $requiredFields = $config->project->create->requiredFields;?>
<div id='mainContent' class='main-content'>
<div class='center-block'>
@@ -55,7 +56,7 @@
</tr>
<tr>
<th><?php echo $lang->project->PM;?></th>
<td><?php echo html::select('PM', $pmUsers, '', "class='form-control chosen'" . (strpos($requiredFields, 'PM') !== false ? ' required' : ''));?></td>
<td><?php echo html::select('PM', $pmUsers, '', "class='form-control user-picker'" . (strpos($requiredFields, 'PM') !== false ? ' required' : ''));?></td>
</tr>
<tr>
<th><?php echo $lang->project->budget;?></th>
@@ -159,7 +160,7 @@
</tr>
<tr class="hidden" id="whitelistBox">
<th><?php echo $lang->whitelist;?></th>
<td><?php echo html::select('whitelist[]', $users, '', 'class="form-control chosen" multiple');?></td>
<td><?php echo html::select('whitelist[]', $users, '', 'class="form-control user-picker" multiple');?></td>
<td></td>
<td></td>
</tr>