* changed css names.
* added method 'setSyncTrigger' in 'my.full.js'.
This commit is contained in:
@@ -939,7 +939,7 @@ class bug extends control
|
||||
$bugs = $this->bug->getUserBugPairs($account);
|
||||
|
||||
if($id) die(html::select("bugs[$id]", $bugs, '', 'class="select-1 f-left"'));
|
||||
die(html::select('bug', $bugs, '', 'class=select-1'));
|
||||
die(html::select('bug', $bugs, '', 'class=form-control'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<td class='text-left' style='overflow:visible'><?php echo html::select("modules[$i]", $moduleOptionMenu, $moduleID, "class='select-1'");?></td>
|
||||
<td><?php echo html::select("projects[$i]", $projects, $projectID, "class='select-1' onchange='loadProjectBuilds($productID, this.value, $i)'");?></td>
|
||||
<td class='text-left' style='overflow:visible' id='buildBox<?php echo $i;?>'><?php echo html::select("openedBuilds[$i][]", $builds, '', "class='select-1 chosen' multiple data-placeholder=' '");?></td>
|
||||
<td><?php echo html::input("titles[$i]", '', 'class=select-1');?></td>
|
||||
<td><?php echo html::input("titles[$i]", '', 'class=form-control');?></td>
|
||||
<td><?php echo html::textarea("stepses[$i]", '', "rows='1' class=text-1");?></td>
|
||||
<td><?php echo html::select("types[$i]", $lang->bug->typeList, '');?></td>
|
||||
<td><?php echo html::select("severities[$i]", $lang->bug->severityList, '');?></td>
|
||||
|
||||
@@ -37,13 +37,13 @@
|
||||
?>
|
||||
<tr class='text-center'>
|
||||
<td><?php echo $bugID . html::hidden("bugIDList[$bugID]", $bugID);?></td>
|
||||
<td><?php echo html::select("types[$bugID]", $lang->bug->typeList, $bugs[$bugID]->type, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("severities[$bugID]", (array)$lang->bug->severityList, $bugs[$bugID]->severity, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("pris[$bugID]", (array)$lang->bug->priList, $bugs[$bugID]->pri, 'class=select-1');?></td>
|
||||
<td><?php echo html::input("titles[$bugID]", $bugs[$bugID]->title, 'class=text-1');?></td>
|
||||
<td><?php echo html::select("assignedTos[$bugID]", $users, $bugs[$bugID]->assignedTo, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("statuses[$bugID]", (array)$lang->bug->statusList, $bugs[$bugID]->status, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("resolvedBys[$bugID]", $users, $bugs[$bugID]->resolvedBy, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("types[$bugID]", $lang->bug->typeList, $bugs[$bugID]->type, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("severities[$bugID]", (array)$lang->bug->severityList, $bugs[$bugID]->severity, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("pris[$bugID]", (array)$lang->bug->priList, $bugs[$bugID]->pri, 'class=form-control');?></td>
|
||||
<td><?php echo html::input("titles[$bugID]", $bugs[$bugID]->title, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("assignedTos[$bugID]", $users, $bugs[$bugID]->assignedTo, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("statuses[$bugID]", (array)$lang->bug->statusList, $bugs[$bugID]->status, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("resolvedBys[$bugID]", $users, $bugs[$bugID]->resolvedBy, 'class=form-control');?></td>
|
||||
<td>
|
||||
<div class='f-left'><?php echo html::select("resolutions[$bugID]", $this->lang->bug->resolutionList, $bugs[$bugID]->resolution, "class=w-80px onchange=setDuplicate(this.value,$bugID)");?></div>
|
||||
<div class='f-left' id='<?php echo 'duplicateBugBox' . $bugID;?>' <?php if($bugs[$bugID]->resolution != 'duplicate') echo "style='display:none'";?>><?php echo html::input("duplicateBugs[$bugID]", '', "class=w-40px placeholder='{$lang->bug->duplicateBug}'");?></div>
|
||||
|
||||
@@ -32,7 +32,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
|
||||
<div id='titlebar'>
|
||||
<div id='main'>
|
||||
BUG #<?php echo $bug->id . $lang->colon;?>
|
||||
<?php echo html::input('title', str_replace("'","'",$bug->title), 'class=text-1');?>
|
||||
<?php echo html::input('title', str_replace("'","'",$bug->title), 'class=form-control');?>
|
||||
</div>
|
||||
<div><?php echo html::submitButton()?></div>
|
||||
</div>
|
||||
@@ -165,7 +165,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->bug->resolvedDate;?></td>
|
||||
<td><?php echo html::input('resolvedDate', $bug->resolvedDate, 'class=text-1');?></td>
|
||||
<td><?php echo html::input('resolvedDate', $bug->resolvedDate, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->bug->resolvedBuild;?></td>
|
||||
@@ -177,7 +177,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
|
||||
</tr>
|
||||
<tr id='duplicateBugBox' <?php if($bug->resolution != 'duplicate') echo "style='display:none'";?>>
|
||||
<td class='rowhead'><?php echo $lang->bug->duplicateBug;?></td>
|
||||
<td><?php echo html::input('duplicateBug', $bug->duplicateBug, 'class=text-1');?></td>
|
||||
<td><?php echo html::input('duplicateBug', $bug->duplicateBug, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->bug->closedBy;?></td>
|
||||
@@ -185,7 +185,7 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->bug->closedDate;?></td>
|
||||
<td><?php echo html::input('closedDate', $bug->closedDate, 'class=text-1');?></td>
|
||||
<td><?php echo html::input('closedDate', $bug->closedDate, 'class=form-control');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
@@ -364,6 +364,8 @@ $lang->downNotify = "Down notify";
|
||||
$lang->suhosinInfo = "Warming:data is too large! Please enlarge the setting of <font color=red>sohusin.post.max_vars</font> and <font color=red>sohusin.request.max_vars</font> in php.ini. Otherwise partial data can't be saved.";
|
||||
|
||||
$lang->noResultsMatch = "No results match";
|
||||
$lang->selectAnOption = "Select an option";
|
||||
$lang->selectSomeOptions = "Select some options";
|
||||
$lang->chooseUsersToMail = "Choose users to mail...";
|
||||
|
||||
/* Date times. */
|
||||
|
||||
@@ -365,7 +365,7 @@ $lang->suhosinInfo = "警告:数据太多,请在php.ini中修改<font color=
|
||||
|
||||
$lang->noResultsMatch = "没有匹配结果";
|
||||
$lang->selectAnOption = "选择一个选项";
|
||||
$lang->selectSoomeOptions = "选择一些选项";
|
||||
$lang->selectSomeOptions = "选择一些选项";
|
||||
$lang->chooseUsersToMail = "选择要发信通知的用户...";
|
||||
|
||||
/* 时间格式设置。*/
|
||||
@@ -421,6 +421,7 @@ $lang->icons['team'] = 'group';
|
||||
|
||||
$lang->icons['create'] = 'plus';
|
||||
$lang->icons['batchCreate'] = 'plus-sign';
|
||||
$lang->icons['batchEdit'] = 'edit-sign';
|
||||
$lang->icons['edit'] = 'pencil';
|
||||
$lang->icons['delete'] = 'remove';
|
||||
$lang->icons['copy'] = 'copy';
|
||||
|
||||
@@ -10,15 +10,16 @@ if($config->debug)
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{z-index:9999;}
|
||||
</style>
|
||||
<script>
|
||||
noResultsMatch = '<?php echo $lang->noResultsMatch;?>';
|
||||
chooseUsersToMail = '<?php echo $lang->chooseUsersToMail;?>';
|
||||
selectAnOption = '<?php echo $lang->selectAnOption;?>';
|
||||
selectSoomeOptions = '<?php echo $lang->selectSoomeOptions;?>';
|
||||
noResultsMatch = '<?php echo $lang->noResultsMatch;?>';
|
||||
chooseUsersToMail = '<?php echo $lang->chooseUsersToMail;?>';
|
||||
selectAnOption = '<?php echo $lang->selectAnOption;?>';
|
||||
selectSomeOptions = '<?php echo $lang->selectSomeOptions;?>';
|
||||
defaultChosenOptions = {no_results_text: noResultsMatch, allow_single_deselect: true, disable_search_threshold: 10, width: '100%', placeholder_text_single: selectAnOption, placeholder_text_multiple: selectSomeOptions};
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#mailto").attr('data-placeholder', chooseUsersToMail);
|
||||
$("#productID").chosen({no_results_text: noResultsMatch, width: '100%'});
|
||||
$("#projectID").chosen({no_results_text: noResultsMatch, width: '100%'});
|
||||
$(".chosen").chosen({no_results_text: noResultsMatch, allow_single_deselect: true, disable_search_threshold: 10, width: '100%', placeholder_text_single: selectAnOption, placeholder_text_multiple: selectSoomeOptions});
|
||||
$(".chosen").chosen(defaultChosenOptions);
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -478,8 +478,11 @@ class product extends control
|
||||
$output = html::select('plan', $plans, $planID, "class='form-control'");
|
||||
if(count($plans) == 1 and $needCreate)
|
||||
{
|
||||
$output .= "<span class='input-group-addon'>";
|
||||
$output .= html::a($this->createLink('productplan', 'create', "productID=$productID"), $this->lang->productplan->create, '_blank');
|
||||
$output .= ' ';
|
||||
$output .= html::a("javascript:loadProductPlans($productID)", $this->lang->refresh);
|
||||
$output .= '</span>';
|
||||
}
|
||||
die($output);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</div>
|
||||
<div class='main'>
|
||||
<form method='post' id='productStoryForm'>
|
||||
<table class='table table-condensed table-hover table-striped table-borderless tablesorter' id='storyList'>
|
||||
<table class='table table-condensed table-hover table-striped table-borderless tablesorter table-fixed' id='storyList'>
|
||||
<thead>
|
||||
<tr>
|
||||
<?php $vars = "productID=$productID&browseType=$browseType¶m=$moduleID&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>
|
||||
|
||||
@@ -209,6 +209,7 @@ class story extends control
|
||||
$plans['same'] = $this->lang->story->same;
|
||||
|
||||
$this->view->title = $product->name . $this->lang->colon . $this->lang->story->batchCreate;
|
||||
$this->view->productName = $product->name;
|
||||
$this->view->position[] = html::a($this->createLink('product', 'browse', "product=$productID"), $product->name);
|
||||
$this->view->position[] = $this->lang->story->common;
|
||||
$this->view->position[] = $this->lang->story->batchCreate;
|
||||
@@ -376,6 +377,7 @@ class story extends control
|
||||
$this->view->productID = $productID;
|
||||
$this->view->storyIDList = $storyIDList;
|
||||
$this->view->stories = $stories;
|
||||
$this->view->productName = $product->name;
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,40 +17,48 @@
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['story']);?></span>
|
||||
<strong><small class='text-muted'><i class='icon icon-plus'></i></small> <?php echo $lang->story->create;?></strong>
|
||||
<strong><small class='text-muted'><?php echo html::icon($lang->icons['create']);?></small> <?php echo $lang->story->create;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->product;?></th>
|
||||
<td>
|
||||
<?php echo html::select('product', $products, $productID, "onchange=loadProduct(this.value); class='form-control'");?>
|
||||
<span id='moduleIdBox'>
|
||||
<th class='w-80px'><?php echo $lang->story->product;?></th>
|
||||
<td class='w-p35'>
|
||||
<?php echo html::select('product', $products, $productID, "onchange='loadProduct(this.value);' class='form-control'");?>
|
||||
</td>
|
||||
<td class='w-p25'>
|
||||
<div class='input-group' id='moduleIdBox'>
|
||||
<?php
|
||||
echo html::select('module', $moduleOptionMenu, $moduleID, "class='form-control'");
|
||||
if(count($moduleOptionMenu) == 1)
|
||||
{
|
||||
echo "<span class='input-group-addon'>";
|
||||
echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=story"), $lang->tree->manage, '_blank');
|
||||
echo ' ';
|
||||
echo html::a("javascript:loadProductModules($productID)", $lang->refresh);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->plan;?></th>
|
||||
<td>
|
||||
<span id='planIdBox'>
|
||||
<div class='input-group' id='planIdBox'>
|
||||
<?php
|
||||
echo html::select('plan', $plans, $planID, "class='form-control'");
|
||||
if(count($plans) == 1)
|
||||
{
|
||||
echo "<span class='input-group-addon'>";
|
||||
echo html::a($this->createLink('productplan', 'create', "productID=$productID"), $lang->productplan->create, '_blank');
|
||||
echo ' ';
|
||||
echo html::a("javascript:loadProductPlans($productID)", $lang->refresh);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -59,15 +67,15 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->title;?></th>
|
||||
<td><?php echo html::input('title', $storyTitle, "class='form-control'");?></td>
|
||||
<td colspan='3'><?php echo html::input('title', $storyTitle, "class='form-control'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->spec;?></th>
|
||||
<td><?php echo html::textarea('spec', $spec, "rows='9' class='form-control'");?><br /><?php echo $lang->story->specTemplate;?></td>
|
||||
<td colspan='3'><?php echo html::textarea('spec', $spec, "rows='9' class='form-control'");?><div class='help-block'><?php echo $lang->story->specTemplate;?></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->verify;?></th>
|
||||
<td><?php echo html::textarea('verify', $verify, "rows='6' class='form-control'");?></td>
|
||||
<td colspan='3'><?php echo html::textarea('verify', $verify, "rows='6' class='form-control'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->pri;?></th>
|
||||
@@ -75,15 +83,21 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->estimate;?></th>
|
||||
<td><?php echo html::input('estimate', $estimate, "class='form-control'") . $lang->story->hour;?></td>
|
||||
<td>
|
||||
<div class='input-group'>
|
||||
<?php echo html::input('estimate', $estimate, "class='form-control'");?>
|
||||
<span class='input-group-addon'><?php echo $lang->story->hour;?></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->reviewedBy;?></th>
|
||||
<td><?php echo html::select('assignedTo', $users, '', "class='form-control chosen'") . html::checkbox('needNotReview', $lang->story->needNotReview, '', "id='needNotReview'");?></td>
|
||||
<td><?php echo html::select('assignedTo', $users, '', "class='form-control chosen'");?></td>
|
||||
<td><?php echo html::checkbox('needNotReview', $lang->story->needNotReview, '', "id='needNotReview'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><nobr><?php echo $lang->story->mailto;?></nobr></th>
|
||||
<td>
|
||||
<td colspan='3'>
|
||||
<?php
|
||||
echo html::select('mailto[]', $users, str_replace(' ' , '', $mailto), "multiple");
|
||||
if($contactLists) echo html::select('', $contactLists, '', "class='text-right' onchange=\"setMailto('mailto', this.value)\"");
|
||||
@@ -93,13 +107,13 @@
|
||||
|
||||
<tr>
|
||||
<th><nobr><?php echo $lang->story->keywords;?></nobr></th>
|
||||
<td><?php echo html::input('keywords', $keywords, 'class="form-control"');?></td>
|
||||
<td colspan='3'><?php echo html::input('keywords', $keywords, 'class="form-control"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->legendAttatch;?></th>
|
||||
<td><?php echo $this->fetch('file', 'buildform');?></td>
|
||||
<td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>
|
||||
</tr>
|
||||
<tr><td colspan='2' class='text-center'><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
<tr><td></td><td colspan='3'><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
</table>
|
||||
<span id='responser'></span>
|
||||
</form>
|
||||
|
||||
@@ -21,7 +21,7 @@ function loadProductPlans(productID)
|
||||
|
||||
$(function()
|
||||
{
|
||||
$("#reviewedBy").chosen({no_results_text:noResultsMatch});
|
||||
$("#mailto").chosen({no_results_text:noResultsMatch});
|
||||
$("#reviewedBy").chosen(defaultChosenOptions);
|
||||
$("#mailto").chosen(defaultChosenOptions);
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -824,7 +824,7 @@ class task extends control
|
||||
$tasks = $this->task->getUserTaskPairs($account, $status);
|
||||
|
||||
if($id) die(html::select("tasks[$id]", $tasks, '', 'class="select-1 f-left"'));
|
||||
die(html::select('task', $tasks, '', 'class=select-1'));
|
||||
die(html::select('task', $tasks, '', 'class=form-control'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,13 +57,13 @@
|
||||
echo html::a("javascript:copyStoryTitle($i)", "<i class='icon-green-same'></i>", '', "class='sameAsStory' title='{$lang->task->copyStoryTitle}'");
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo html::input("name[$i]", '', 'class=text-1');?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->task->typeList, $type, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("module[$i]", $modules, $module, 'class=select-1')?></td>
|
||||
<td><?php echo html::select("assignedTo[$i]", $members, $member, 'class=select-1');?></td>
|
||||
<td><?php echo html::input("estimate[$i]", '', 'class=text-1');?></td>
|
||||
<td><?php echo html::input("name[$i]", '', 'class=form-control');?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->task->typeList, $type, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("module[$i]", $modules, $module, 'class=form-control')?></td>
|
||||
<td><?php echo html::select("assignedTo[$i]", $members, $member, 'class=form-control');?></td>
|
||||
<td><?php echo html::input("estimate[$i]", '', 'class=form-control');?></td>
|
||||
<td><?php echo html::textarea("desc[$i]", '', "rows='1' class=text-1");?></td>
|
||||
<td><?php echo html::select("pri[$i]", (array)$lang->task->priList, $pri, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("pri[$i]", (array)$lang->task->priList, $pri, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<?php endfor;?>
|
||||
<tr><td colspan='8' class='text-center'><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
|
||||
@@ -39,18 +39,18 @@
|
||||
?>
|
||||
<tr class='text-center'>
|
||||
<td><?php echo $taskID . html::hidden("taskIDList[$taskID]", $taskID);?></td>
|
||||
<td><?php echo html::input("names[$taskID]", $tasks[$taskID]->name, 'class=text-1');?></td>
|
||||
<td><?php echo html::select("modules[$taskID]", $modules, $tasks[$taskID]->module, 'class=select-1')?></td>
|
||||
<td><?php echo html::select("assignedTos[$taskID]", $members, $tasks[$taskID]->assignedTo, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("types[$taskID]", $lang->task->typeList, $tasks[$taskID]->type, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("statuses[$taskID]", $lang->task->statusList, $tasks[$taskID]->status, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("pris[$taskID]", (array)$lang->task->priList, $tasks[$taskID]->pri, 'class=select-1');?></td>
|
||||
<td><?php echo html::input("names[$taskID]", $tasks[$taskID]->name, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("modules[$taskID]", $modules, $tasks[$taskID]->module, 'class=form-control')?></td>
|
||||
<td><?php echo html::select("assignedTos[$taskID]", $members, $tasks[$taskID]->assignedTo, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("types[$taskID]", $lang->task->typeList, $tasks[$taskID]->type, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("statuses[$taskID]", $lang->task->statusList, $tasks[$taskID]->status, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("pris[$taskID]", (array)$lang->task->priList, $tasks[$taskID]->pri, 'class=form-control');?></td>
|
||||
<td><?php echo html::input("estimates[$taskID]", $tasks[$taskID]->estimate, "class='text-1 a-center'");?></td>
|
||||
<td><?php echo html::input("consumeds[$taskID]", '', "class='text-1 a-center'");?></td>
|
||||
<td><?php echo html::input("lefts[$taskID]", $tasks[$taskID]->left, "class='text-1 a-center'");?></td>
|
||||
<td><?php echo html::select("finishedBys[$taskID]", $members, $tasks[$taskID]->finishedBy, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("closedBys[$taskID]", $members, $tasks[$taskID]->closedBy, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("closedReasons[$taskID]", $lang->task->reasonList, $tasks[$taskID]->closedReason, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("finishedBys[$taskID]", $members, $tasks[$taskID]->finishedBy, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("closedBys[$taskID]", $members, $tasks[$taskID]->closedBy, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("closedReasons[$taskID]", $lang->task->reasonList, $tasks[$taskID]->closedReason, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
|
||||
@@ -27,11 +27,11 @@
|
||||
<?php if(!$productID) $moduleOptionMenu = $this->tree->getOptionMenu($cases[$caseID]->product, $viewType = 'case', $startModuleID = 0); ?>
|
||||
<tr class='text-center'>
|
||||
<td><?php echo $caseID . html::hidden("caseIDList[$caseID]", $caseID);?></td>
|
||||
<td><?php echo html::select("pris[$caseID]", $lang->testcase->priList, $cases[$caseID]->pri, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("statuses[$caseID]", (array)$lang->testcase->statusList, $cases[$caseID]->status, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("pris[$caseID]", $lang->testcase->priList, $cases[$caseID]->pri, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("statuses[$caseID]", (array)$lang->testcase->statusList, $cases[$caseID]->status, 'class=form-control');?></td>
|
||||
<td><?php echo html::select("modules[$caseID]", $moduleOptionMenu, $cases[$caseID]->module, "class='select-1'");?></span></td>
|
||||
<td><?php echo html::input("titles[$caseID]", $cases[$caseID]->title, 'class=text-1'); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::select("types[$caseID]", $lang->testcase->typeList, $cases[$caseID]->type, 'class=select-1');?></td>
|
||||
<td><?php echo html::input("titles[$caseID]", $cases[$caseID]->title, 'class=form-control'); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::select("types[$caseID]", $lang->testcase->typeList, $cases[$caseID]->type, 'class=form-control');?></td>
|
||||
<td class='text-left' style='overflow:visible'><?php echo html::select("stages[$caseID][]", $lang->testcase->stageList, $cases[$caseID]->stage, "class='select-1 chosen' multiple data-placeholder='{$lang->testcase->stage}'");?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<div id='titlebar'>
|
||||
<div id='main'>
|
||||
CASE #<?php echo $case->id . $lang->colon;?>
|
||||
<?php echo html::input('title', $case->title, 'class=text-1');?>
|
||||
<?php echo html::input('title', $case->title, 'class=form-control');?>
|
||||
</div>
|
||||
<div><?php echo html::submitButton();?></div>
|
||||
</div>
|
||||
@@ -89,12 +89,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->testcase->story;?></td>
|
||||
<td class='text-left'><div id='storyIdBox'><?php echo html::select('story', $stories, $case->story, 'class=select-1');?></div>
|
||||
<td class='text-left'><div id='storyIdBox'><?php echo html::select('story', $stories, $case->story, 'class=form-control');?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->testcase->type;?></td>
|
||||
<td><?php echo html::select('type', (array)$lang->testcase->typeList, $case->type, 'class=select-1');?>
|
||||
<td><?php echo html::select('type', (array)$lang->testcase->typeList, $case->type, 'class=form-control');?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->testcase->stage;?></th>
|
||||
@@ -102,19 +102,19 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->testcase->pri;?></td>
|
||||
<td><?php echo html::select('pri', (array)$lang->testcase->priList, $case->pri, 'class=select-1');?>
|
||||
<td><?php echo html::select('pri', (array)$lang->testcase->priList, $case->pri, 'class=form-control');?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->testcase->status;?></td>
|
||||
<td><?php echo html::select('status', (array)$lang->testcase->statusList, $case->status, 'class=select-1');?></td>
|
||||
<td><?php echo html::select('status', (array)$lang->testcase->statusList, $case->status, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->testcase->keywords;?></td>
|
||||
<td><?php echo html::input('keywords', $case->keywords, 'class=text-1');?></td>
|
||||
<td><?php echo html::input('keywords', $case->keywords, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->testcase->linkCase;?></td>
|
||||
<td><?php echo html::input('linkCase', $case->linkCase, 'class=text-1');?></td>
|
||||
<td><?php echo html::input('linkCase', $case->linkCase, 'class=form-control');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<input type='checkbox' name='cases[]' value='<?php echo $case->id;?>' />
|
||||
<?php echo html::a($this->createLink('testcase', 'view', "testcaseID=$case->id"), sprintf('%03d', $case->id));?>
|
||||
</td>
|
||||
<td class='text-center'><?php echo html::select("versions[$case->id]", array_combine(range($case->version, 1), range($case->version, 1)), '', 'class=select-1');?> </td>
|
||||
<td class='text-center'><?php echo html::select("versions[$case->id]", array_combine(range($case->version, 1), range($case->version, 1)), '', 'class=form-control');?> </td>
|
||||
<td><span class='<?php echo 'pri' . $case->pri?>'><?php echo $case->pri?></span></td>
|
||||
<td class='text-left'>
|
||||
<?php
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<tr class='text-center'>
|
||||
<td><?php echo $i+1;?></td>
|
||||
<td><?php echo html::select("types[$i]", $lang->todo->typeList, '', "onchange=loadList(this.value,$i+1) class='select-1'");?></td>
|
||||
<td><?php echo html::select("pris[$i]", $lang->todo->priList, $pri, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("pris[$i]", $lang->todo->priList, $pri, 'class=form-control');?></td>
|
||||
<td>
|
||||
<div id='<?php echo "nameBox" . ($i+1);?>' class='hidden'><?php echo html::input("names[$i]", '', 'class="f-left text-1"');?></div>
|
||||
<div class='<?php echo "nameBox" . ($i+1);?>'><?php echo html::input("names[$i]", '', 'class="f-left text-1"');?></div>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<td><?php echo $todo->id . html::hidden("todoIDList[$todo->id]", $todo->id);?></td>
|
||||
<td><?php echo html::input("dates[$todo->id]", $todo->date, "class='text-2 date'");?></td>
|
||||
<td><?php echo html::select("types[$todo->id]", $lang->todo->typeList, $todo->type, "onchange=loadList(this.value,$todo->id) class='select-1'");?></td>
|
||||
<td><?php echo html::select("pris[$todo->id]", $lang->todo->priList, $todo->pri, 'class=select-1');?></td>
|
||||
<td><?php echo html::select("pris[$todo->id]", $lang->todo->priList, $todo->pri, 'class=form-control');?></td>
|
||||
<td>
|
||||
<div id='<?php echo "nameBox" . $todo->id;?>' class='hidden'><? echo html::input("names[$todo->id]", '', "class='f-left text-1 hiddenwin'"); ?></div>
|
||||
<div class='<?php echo "nameBox" . $todo->id;?>'>
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->todo->name;?></th>
|
||||
<td>
|
||||
<div id='nameBox' class='hidden'><?php echo html::input('name', '', 'class=text-1');?></div>
|
||||
<div class='nameBox'><?php echo html::input('name', '', 'class=text-1');?></div>
|
||||
<div id='nameBox' class='hidden'><?php echo html::input('name', '', 'class=form-control');?></div>
|
||||
<div class='nameBox'><?php echo html::input('name', '', 'class=form-control');?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -313,11 +313,14 @@ class tree extends control
|
||||
}
|
||||
if($returnType == 'html')
|
||||
{
|
||||
$output = html::select("module", $optionMenu, '', "onchange=loadModuleRelated()");
|
||||
$output = html::select("module", $optionMenu, '', "onchange='loadModuleRelated()' class='form-control'");
|
||||
if(count($optionMenu) == 1 and $needManage)
|
||||
{
|
||||
$output .= "<span class='input-group-addon'>";
|
||||
$output .= html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=$viewType"), $this->lang->tree->manage, '_blank');
|
||||
$output .= ' ';
|
||||
$output .= html::a("javascript:loadProductModules($rootID)", $this->lang->refresh);
|
||||
$output .= '</span>';
|
||||
}
|
||||
die($output);
|
||||
}
|
||||
|
||||
+22
-1
@@ -894,7 +894,7 @@ function setModal()
|
||||
function setTableBehavior()
|
||||
{
|
||||
$('#wrap .table:not(.table-data, .table-form) tbody td').click(function(){$(this).closest('tr').toggleClass('active');});
|
||||
$('#wrap .outer > .table, #wrap .outer > form > .table, #wrap .outer > .mian > .table, #wrap .outer > .mian > form > .table, #wrap .outer > .container > .table').not('.table-data').addClass('table table-condensed table-hover table-striped table-borderless tablesorter');
|
||||
$('#wrap .outer > .table, #wrap .outer > form > .table, #wrap .outer > .mian > .table, #wrap .outer > .mian > form > .table, #wrap .outer > .container > .table').not('.table-data, .table-form').addClass('table table-condensed table-hover table-striped table-borderless tablesorter');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -911,6 +911,25 @@ function condensedForm()
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Update data to the target element synchronous.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setSyncTrigger()
|
||||
{
|
||||
$("[data-sync-target]").on('input propertychange', function()
|
||||
{
|
||||
var $this = $(this);
|
||||
var val = $this.prop('tagName') == 'INPUT' ? $this.val() : $this.html();
|
||||
var target = $($this.attr('data-sync-target'));
|
||||
console.log(target);
|
||||
if(target.prop('tagName') == 'INPUT') target.val(val);
|
||||
else target.html(val);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* Ping the server every some minutes to keep the session. */
|
||||
needPing = true;
|
||||
@@ -936,6 +955,8 @@ $(document).ready(function()
|
||||
toggleSearch();
|
||||
toggleTreeBox();
|
||||
|
||||
setSyncTrigger();
|
||||
|
||||
hideClearDataLink();
|
||||
|
||||
$(window).resize(saveWindowSize); // When window resized, call it again.
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
/* Height definitions */
|
||||
.h-5px {height:5px} .h-10px {height:10px} .h-20px {height:20px} .h-30px {height:30px} .h-35px {height:35px} .h-40px {height:40px} .h-45px {height:45px} .h-50px {height:50px} .h-60px {height:60px} .h-70px {height:70px} .h-80px {height:80px} .h-100px {height:100px} .h-120px {height:120px} .h-130px {height:130px} .h-140px {height:140px} .h-150px {height:150px} .h-200px {height:200px}
|
||||
|
||||
/* paddings */
|
||||
.pd-0 {padding: 0 !important}
|
||||
|
||||
/* Style of text */
|
||||
.text-latin {font-family: Arial;}
|
||||
.text-lg {font-size: 24px;}
|
||||
@@ -205,6 +208,7 @@ i[class^="icon-"].disabled,i[class*=" icon-"].disabled,i[class^="icon-"].disable
|
||||
.table-form > tbody > tr > td .checkbox {margin: 0}
|
||||
.table-form > tbody > tr > td .btn + .btn {margin-left: 8px;}
|
||||
.table-form > tbody > tr > td .btn-group .btn + .btn {margin-left: -1px;}
|
||||
.table-form tr > td > .input-group {width: 100%}
|
||||
|
||||
/* Table data */
|
||||
.table-data th, .table-data td {padding: 5px;}
|
||||
@@ -229,6 +233,7 @@ i[class^="icon-"].disabled,i[class*=" icon-"].disabled,i[class^="icon-"].disable
|
||||
.form-condensed fieldset.collapsed legend:before {content: '\e6bb'}
|
||||
.form-condensed .chosen-container-single .chosen-single {padding: 4px 10px; height: 30px}
|
||||
.form-condensed .chosen-container-single .chosen-single div {padding: 4px 10px}
|
||||
.form-condensed .table-fixed select.form-control {padding: 5px}
|
||||
|
||||
/* help in form */
|
||||
.help-block {margin-bottom: 5px;}
|
||||
@@ -242,6 +247,10 @@ form .star {display: none;}/* hide star */
|
||||
|
||||
.required-wrapper{position: relative;width: 100%; height: 0;overflow: visible;}
|
||||
.required-wrapper.required:after{right: -13px;top: 4px}
|
||||
.table-form > thead > tr > th.required:after {top: 2px; padding-left: 4px;}
|
||||
|
||||
/* Auto Height textarea */
|
||||
div.form-control[contenteditable='true'] {height: auto; text-align: left; outline: 0; overflow-x: hidden; overflow-y: auto;}
|
||||
|
||||
/* Panel */
|
||||
.panel > .table > thead > tr > th,.panel > form > .table > thead > tr > th {background-color: transparent;}
|
||||
@@ -388,6 +397,8 @@ body {font-size: 12px; color:#141414;padding-bottom: 40px;}
|
||||
.outer .table th {vertical-align: middle;}
|
||||
.outer .table tr > th:first-child, .outer .table tr > td:first-child {padding-left: 15px}
|
||||
.outer .table tr > th:last-child, .outer .table tr > td:last-child {padding-right: 15px}
|
||||
.outer .table.table-form tr > th:last-child, .outer .table.table-form tr > td:last-child {padding-right: 5px}
|
||||
.outer .table.table-form.table-fixed tr > th:last-child, .outer .table.table-form.table-fixed tr > td:last-child {padding-right: 15px}
|
||||
.outer .table tbody > tr:last-child td {border-bottom: 1px solid #e5e5e5; padding-top: 8px}
|
||||
.outer .table-form .table tr > th:first-child, .outer .table-form .table tr > td:first-child {padding-left: 5px}
|
||||
.outer .table-form .table tr > th:last-child, .outer .table-form .table tr > td:last-child {padding-right: 5px}
|
||||
|
||||
Reference in New Issue
Block a user