* adjust the UI.
This commit is contained in:
@@ -51,6 +51,9 @@ class story extends control
|
||||
$users = $this->user->getPairs();
|
||||
$moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'product');
|
||||
|
||||
/* 设置菜单。*/
|
||||
$this->product->setMenu($products, $product->id);
|
||||
|
||||
$header['title'] = $product->name . $this->lang->colon . $this->lang->story->create;
|
||||
$position[] = html::a($this->createLink('product', 'browse', "product=$productID"), $product->name);
|
||||
$position[] = $this->lang->story->create;
|
||||
@@ -82,12 +85,16 @@ class story extends control
|
||||
die(js::locate($this->createLink('story', 'view', "storyID=$storyID"), 'parent'));
|
||||
}
|
||||
|
||||
|
||||
$story = $this->story->findByID($storyID);
|
||||
$product = $this->product->findByID($story->product);
|
||||
$products = $this->product->getPairs();
|
||||
$users = $this->user->getPairs();
|
||||
$moduleOptionMenu = $this->tree->getOptionMenu($product->id, $viewType = 'product');
|
||||
|
||||
/* 设置菜单。*/
|
||||
$this->product->setMenu($products, $product->id);
|
||||
|
||||
$header['title'] = $product->name . $this->lang->colon . $this->lang->story->edit . $this->lang->colon . $story->title;
|
||||
$position[] = html::a($this->createLink('product', 'browse', "product=$product->id"), $product->name);
|
||||
$position[] = $this->lang->story->edit;
|
||||
@@ -112,6 +119,9 @@ class story extends control
|
||||
$modulePath = $this->tree->getParents($story->module);
|
||||
$users = $this->user->getPairs();
|
||||
|
||||
/* 设置菜单。*/
|
||||
$this->product->setMenu($this->product->getPairs(), $product->id);
|
||||
|
||||
$header['title'] = $product->name . $this->lang->colon . $this->lang->story->view . $this->lang->colon . $story->title;
|
||||
$position[] = html::a($this->createLink('product', 'browse', "product=$product->id"), $product->name);
|
||||
$position[] = $this->lang->story->view;
|
||||
|
||||
@@ -30,9 +30,9 @@ function loadModuleMenu(productID)
|
||||
$('#moduleIdBox').load(link);
|
||||
}
|
||||
</script>
|
||||
<div id='doc3'>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table align='center' class='table-1'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->story->edit;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->story->product;?></th>
|
||||
@@ -82,10 +82,7 @@ function loadModuleMenu(productID)
|
||||
<td class='a-left'><textarea name='comment' rows='5' class='text-1'></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<input type='submit' value='<?php echo $lang->save;?>' class='button-s' />
|
||||
<input type='reset' value='<?php echo $lang->reset;?>' class='button-r' />
|
||||
</td>
|
||||
<td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
@@ -40,147 +40,139 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='yui-doc3 yui-t7'>
|
||||
<div class='yui-g'>
|
||||
|
||||
<div class='yui-u first'>
|
||||
<div class='yui-d0 yui-t6'>
|
||||
<div class='yui-main'>
|
||||
<div class='yui-b'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendBasicInfo;?></legend>
|
||||
<table class='table-1 a-left' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->labProductAndModule;?></td>
|
||||
<td>
|
||||
<?php
|
||||
echo $product->name;
|
||||
if(!empty($modulePath)) echo $lang->arrow;
|
||||
foreach($modulePath as $key => $module)
|
||||
{
|
||||
echo $module->name;
|
||||
if(isset($modulePath[$key + 1])) echo $lang->arrow;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->type;?></td>
|
||||
<td><?php echo $lang->story->typeList->{$story->type};?></td>
|
||||
</tr>
|
||||
-->
|
||||
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->status;?></td>
|
||||
<td><?php $lang->show($lang->story->statusList, $story->status);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->assignedTo;?></td>
|
||||
<td><?php echo $users[$story->assignedTo];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='rowhead'><?php echo $lang->story->assignedDate;?></td>
|
||||
<td><?php echo $story->assignedDate;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->lastEditedBy;?></td>
|
||||
<td><?php echo $users[$story->lastEditedBy];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->lastEditedDate;?></td>
|
||||
<td><?php echo $story->lastEditedDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<legend><?php echo $lang->story->legendSpec;?></legend>
|
||||
<div><?php echo nl2br($story->spec);?></div>
|
||||
</fieldset>
|
||||
|
||||
<?php include '../../common/action.html.php';?>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendMailto;?></legend>
|
||||
<div></div>
|
||||
<legend><?php echo $lang->story->legendAction;?></legend>
|
||||
<div class='a-center' style='font-size:16px; font-weight:bold'>
|
||||
<?php
|
||||
if(common::hasPriv('story', 'edit')) echo html::a($this->createLink('story', 'edit', "storyID=$story->id"), $lang->story->buttonEdit);
|
||||
if(common::hasPriv('product', 'browse'))
|
||||
{
|
||||
if($app->session->storyList != '') echo html::a($app->session->storyList, $lang->story->buttonToList);
|
||||
else echo html::a($this->createLink('product', 'browse', "productID=$story->product&moduleID=$story->module"), $lang->story->buttonToList);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendAttatch;?></legend>
|
||||
<div> </div>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
|
||||
<div class='yui-u'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendOpenInfo;?></legend>
|
||||
<table class='table-1 a-left'>
|
||||
<tr>
|
||||
<td width='40%' class='rowhead'><?php echo $lang->story->openedBy;?></td>
|
||||
<td><?php echo $users[$story->openedBy];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->openedDate;?></td>
|
||||
<td><?php echo $story->openedDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendProjectAndTask;?></legend>
|
||||
<table class='table-1 a-left'>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->project;?></td>
|
||||
<td><?php //echo $story->project;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->tasks;?></td>
|
||||
<td><?php //echo $story->tasks;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<!--
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendCloseInfo;?></legend>
|
||||
<table class='table-1 a-left'>
|
||||
<tr>
|
||||
<td width='40%' class='rowhead'><?php echo $lang->story->closedBy;?></td>
|
||||
<td><?php echo $users[$story->closedBy];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->closedDate;?></td>
|
||||
<td><?php echo $story->closedDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
-->
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendLinkBugs;?></legend>
|
||||
<div> </div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendCases;?></legend>
|
||||
<div> </div>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='yui-d0'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendAction;?></legend>
|
||||
<div class='a-center' style='font-size:16px; font-weight:bold'>
|
||||
<?php
|
||||
if(common::hasPriv('story', 'edit')) echo html::a($this->createLink('story', 'edit', "storyID=$story->id"), $lang->story->buttonEdit);
|
||||
if(common::hasPriv('product', 'browse'))
|
||||
{
|
||||
if($app->session->storyList != '') echo html::a($app->session->storyList, $lang->story->buttonToList);
|
||||
else echo html::a($this->createLink('product', 'browse', "productID=$story->product&moduleID=$story->module"), $lang->story->buttonToList);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendSpec;?></legend>
|
||||
<div><?php echo nl2br($story->spec);?></div>
|
||||
</fieldset>
|
||||
<?php include '../../common/action.html.php';?>
|
||||
</div>
|
||||
<div class='yui-b'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendBasicInfo;?></legend>
|
||||
<table class='table-1 a-left' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->labProductAndModule;?></td>
|
||||
<td>
|
||||
<?php
|
||||
echo $product->name;
|
||||
if(!empty($modulePath)) echo $lang->arrow;
|
||||
foreach($modulePath as $key => $module)
|
||||
{
|
||||
echo $module->name;
|
||||
if(isset($modulePath[$key + 1])) echo $lang->arrow;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->type;?></td>
|
||||
<td><?php //echo $lang->story->typeList->{$story->type};?></td>
|
||||
</tr>
|
||||
-->
|
||||
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->status;?></td>
|
||||
<td><?php $lang->show($lang->story->statusList, $story->status);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->assignedTo;?></td>
|
||||
<td><?php echo $users[$story->assignedTo];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='rowhead'><?php echo $lang->story->assignedDate;?></td>
|
||||
<td><?php echo $story->assignedDate;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->lastEditedBy;?></td>
|
||||
<td><?php echo $users[$story->lastEditedBy];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->lastEditedDate;?></td>
|
||||
<td><?php echo $story->lastEditedDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendMailto;?></legend>
|
||||
<div></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendAttatch;?></legend>
|
||||
<div> </div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendOpenInfo;?></legend>
|
||||
<table class='table-1 a-left'>
|
||||
<tr>
|
||||
<td width='40%' class='rowhead'><?php echo $lang->story->openedBy;?></td>
|
||||
<td><?php echo $users[$story->openedBy];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->openedDate;?></td>
|
||||
<td><?php echo $story->openedDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendProjectAndTask;?></legend>
|
||||
<table class='table-1 a-left'>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->project;?></td>
|
||||
<td><?php //echo $story->project;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->tasks;?></td>
|
||||
<td><?php //echo $story->tasks;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<!--
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendCloseInfo;?></legend>
|
||||
<table class='table-1 a-left'>
|
||||
<tr>
|
||||
<td width='40%' class='rowhead'><?php echo $lang->story->closedBy;?></td>
|
||||
<td><?php echo $users[$story->closedBy];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->story->closedDate;?></td>
|
||||
<td><?php echo $story->closedDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
-->
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendLinkBugs;?></legend>
|
||||
<div> </div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendCases;?></legend>
|
||||
<div> </div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user