* Optimize.

This commit is contained in:
liugang
2019-08-09 17:35:34 +08:00
parent 9cf4d28a79
commit 551acd6ddb
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -58,11 +58,11 @@
<th><?php echo $lang->product->status;?></th>
<td><?php echo html::select('status', $lang->product->statusList, $product->status, "class='form-control'");?></td><td></td>
</tr>
<?php $this->printExtendFields($product, 'table', 'columns=1');?>
<tr>
<th><?php echo $lang->product->desc;?></th>
<td colspan='2'><?php echo html::textarea('desc', htmlspecialchars($product->desc), "rows='8' class='form-control'");?></td>
</tr>
<?php $this->printExtendFields($product, 'table', 'columns=1');?>
<tr>
<th><?php echo $lang->product->acl;?></th>
<td colspan='2'><?php echo nl2br(html::radio('acl', $lang->product->aclList, $product->acl, "onclick='setWhite(this.value);'", 'block'));?></td>
+1 -1
View File
@@ -52,11 +52,11 @@
<td><?php echo html::input('end', $plan->end != '2030-01-01' ? formatTime($plan->end) : '', 'class="form-control form-date"');?></td>
<td colspan='2'><?php echo html::radio('delta', $lang->productplan->endList , '', "onclick='computeEndDate(this.value)'");?></td>
</tr>
<?php $this->printExtendFields($plan, 'table', 'columns=1');?>
<tr>
<th><?php echo $lang->productplan->desc;?></th>
<td colspan='3'><?php echo html::textarea('desc', htmlspecialchars($plan->desc), "rows='10' class='form-control kindeditor' hidefocus='true'");?></td>
</tr>
<?php $this->printExtendFields($plan, 'table', 'columns=3');?>
<tr>
<td colspan='4' class='text-center form-actions'>
<?php echo html::submitButton();?>
+1 -1
View File
@@ -130,7 +130,7 @@ class releaseModel extends model
->add('builder', $this->app->user->account)
->add('branch', $branch)
->stripTags($this->config->release->editor->create['id'], $this->config->allowedTags)
->remove('marker,build,files,labels,uid')
->remove('marker,build,files,labels,uid,subStatus') // There is the subStatus field in the biz version.
->get();
$build = $this->loadModel('file')->processImgURL($build, $this->config->release->editor->create['id']);
$this->dao->insert(TABLE_BUILD)->data($build)
+1 -1
View File
@@ -47,11 +47,11 @@
<th><?php echo $lang->release->status;?></th>
<td><?php echo html::select('status', $lang->release->statusList, $release->status, "class='form-control'");?></td><td></td>
</tr>
<?php $this->printExtendFields($release, 'table', 'columns=1');?>
<tr>
<th><?php echo $lang->release->desc;?></th>
<td colspan='2'><?php echo html::textarea('desc', htmlspecialchars($release->desc), "rows=10 class='form-control kindeditor' hidefocus='true'");?></td>
</tr>
<?php $this->printExtendFields($release, 'table', 'columns=2');?>
<tr>
<th><?php echo $lang->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>