* Finish task #71588,#71589,#71590,#71591.
This commit is contained in:
@@ -25,6 +25,8 @@ class build extends control
|
||||
{
|
||||
$project = $this->loadModel('project')->getByID($projectID);
|
||||
if(!$project->hasProduct) $hidden = 'hide';
|
||||
|
||||
$this->view->multipleProject = $project->multiple;
|
||||
}
|
||||
|
||||
$this->view->hidden = $hidden;
|
||||
|
||||
@@ -20,10 +20,14 @@
|
||||
<form class='load-indicator main-form form-ajax' id='dataform' method='post' enctype='multipart/form-data'>
|
||||
<table class='table table-form'>
|
||||
<?php if($app->tab == 'project'):?>
|
||||
<?php if(!empty($multipleProject)):?>
|
||||
<tr>
|
||||
<th><?php echo $lang->executionCommon;?></th>
|
||||
<td><?php echo html::select('execution', $executions, $executionID, "onchange='loadProducts(this.value);' class='form-control chosen' required");?></td>
|
||||
</tr>
|
||||
<?php else:?>
|
||||
<?php echo html::hidden('execution', $executionID);?>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
<tr class="<?php echo $hidden;?>">
|
||||
<th><?php echo $lang->build->product;?></th>
|
||||
|
||||
@@ -42,12 +42,14 @@
|
||||
</td>
|
||||
<td><?php if($disabled) echo $lang->build->notice->changeProduct;?></td>
|
||||
</tr>
|
||||
<?php if(!empty($multipleProject)):?>
|
||||
<tr>
|
||||
<?php $disabled = $testtaskID ? 'disabled' : '';?>
|
||||
<th><?php echo $lang->build->execution;?></th>
|
||||
<td id='executionsBox'><?php echo html::select('execution', $executions, $build->execution, "class='form-control chosen' required $disabled");?></td>
|
||||
<td><?php if($disabled) echo $lang->build->notice->changeExecution;?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<tr>
|
||||
<th><?php echo $lang->build->name;?></th>
|
||||
<td><?php echo html::input('name', $build->name, "class='form-control' required");?></td>
|
||||
|
||||
Reference in New Issue
Block a user