* finish task #2306.

This commit is contained in:
wangyidong
2015-08-28 13:14:02 +08:00
parent 615ef46841
commit e53bbdf502
8 changed files with 8 additions and 8 deletions

View File

@@ -141,7 +141,7 @@ js::set('refresh', $lang->refresh);
</tr>
<tr>
<th><?php echo $lang->bug->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=2&percent=0.85');?></td>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=1&percent=0.85');?></td>
</tr>
<tr>
<td></td>

View File

@@ -52,7 +52,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
</fieldset>
<fieldset>
<legend><?php echo $lang->bug->legendAttatch;?></legend>
<div class='form-group'><?php echo $this->fetch('file', 'buildform', 'filecount=2');?></div>
<div class='form-group'><?php echo $this->fetch('file', 'buildform');?></div>
</fieldset>
<div class='actions'>
<?php

View File

@@ -45,7 +45,7 @@
</tr>
<tr>
<th><?php echo $lang->bug->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=2&percent=0.85');?></td>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=1&percent=0.85');?></td>
</tr>
<tr>
<th><?php echo $lang->comment;?></th>

View File

@@ -67,7 +67,7 @@
</tr>
<tr id='fileBox'>
<th><?php echo $lang->doc->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
<td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>
</tr>
<tr>
<td></td>

View File

@@ -75,7 +75,7 @@ $(document).ready(function()
</tr>
<tr id='fileBox' class='hide'>
<th><?php echo $lang->doc->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
<td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>
</tr>
<tr>
<td></td>

View File

@@ -19,7 +19,7 @@ class file extends control
* @access public
* @return void
*/
public function buildForm($fileCount = 2, $percent = 0.9)
public function buildForm($fileCount = 1, $percent = 0.9)
{
if(!file_exists($this->file->savePath))
{

View File

@@ -50,7 +50,7 @@
</tr>
<tr>
<th><?php echo $lang->attatch;?></th>
<td><?php echo $this->fetch('file', 'buildform', 'filecount=2');?></td>
<td><?php echo $this->fetch('file', 'buildform');?></td>
</tr>
<tr>
<th><?php echo $lang->story->checkAffection;?></th>

View File

@@ -73,7 +73,7 @@
</fieldset>
<fieldset class='fieldset-pure'>
<legend><?php echo $lang->testcase->legendAttatch;?></legend>
<div class='form-group'><?php echo $this->fetch('file', 'buildform', 'filecount=2');?></div>
<div class='form-group'><?php echo $this->fetch('file', 'buildform');?></div>
</fieldset>
<div class='text-center mgb-20'>
<?php echo html::submitButton();?>