* finish task #5992.

This commit is contained in:
wangyidong
2019-07-08 17:16:20 +08:00
parent 6e1774bdc2
commit ef17ab7f01
3 changed files with 10 additions and 4 deletions
+6 -4
View File
@@ -33,7 +33,8 @@
</div>
</div>
<table class='table table-form mw-800px'>
<?php $colWidth = $app->getClientLang() == 'en' ? 'w-200px' : 'w-100px';?>
<?php $colWidth = $app->getClientLang() == 'en' ? 'w-250px' : 'w-120px';?>
<?php $i = 0;?>
<?php foreach($requiredFields as $method => $requiredField):?>
<tr>
<th class='<?php echo $colWidth;?>'>
@@ -49,15 +50,16 @@
$fields = $this->custom->getFormFields('testcase', $method);
$method = 'createCase';
}
echo $lang->$moduleName->$method;
echo $lang->$moduleName->$method . $lang->custom->page;
?>
</th>
<td><?php echo html::select("requiredFields[{$method}][]", $fields, $requiredField, "class='form-control chosen' multiple");?></td>
<td><?php echo html::select("requiredFields[{$method}][]", $fields, $requiredField, "class='form-control chosen' multiple " . ($i == 0 ? "data-placeholder='{$lang->custom->notice->required}'" : ''));?></td>
<td></td>
</tr>
<?php $i++;?>
<?php endforeach;?>
<tr>
<td colspan='2' class='text-center form-actions'>
<td colspan='3' class='text-center form-actions'>
<?php echo html::submitButton();?>
<?php if(common::hasPriv('custom', 'resetRequired')) echo html::a(inlink('resetRequired', "module=$moduleName"), $lang->custom->restore, 'hiddenwin', "class='btn btn-wide'");?>
</td>