* Finish Task #78664

This commit is contained in:
lanzongjun
2022-12-05 16:22:32 +08:00
parent 7bef1eaf28
commit 9746936437
6 changed files with 45 additions and 16 deletions
+10 -6
View File
@@ -33,12 +33,6 @@
<td>
<div class='input-group' id='productBox'>
<?php echo html::select('product', $products, empty($product) ? '' : $product->id, "onchange='loadBranches(this.value);' class='form-control chosen' required");?>
<?php
if(!empty($product) and $product->type != 'normal')
{
echo "<span class='input-group-addon fix-padding fix-border'></span>" . html::select('branch', $branches, key($product->branches), "class='form-control chosen'");
}
?>
</div>
</td>
<?php else:?>
@@ -50,6 +44,16 @@
<?php endif;?>
<td></td>
</tr>
<?php if(!empty($product) and $product->type != 'normal'): ?>
<tr>
<th class='w-120px'><?php echo $lang->build->branch;?></th>
<td>
<div class='input-group' id='branchBox'>
<?php echo html::select('branch[]', $branches, key($product->branches), "class='form-control chosen' multiple required"); ?>
</div>
</td>
</tr>
<?php endif; ?>
<tr class='hide'>
<th class='w-120px'><?php echo $lang->build->builds;?></th>
<td id='buildBox'><?php echo html::select('builds[]', array(), '', "class='form-control chosen' multiple data-placeholder='{$lang->build->placeholder->multipleSelect}'");?></td>