* Finish task #36015.

This commit is contained in:
Yagami
2021-02-20 16:28:45 +08:00
parent 0d07351cf3
commit 4027c87f5b
6 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -37,10 +37,10 @@ $lang->custom->concept = "Concept";
$lang->custom->URStory = "User requirements";
$lang->custom->SRStory = "Software requirements";
$lang->custom->epic = "Epic";
$lang->custom->default = "Default";
$lang->custom->scrumStory = "Story";
$lang->custom->waterfallCommon = "Waterfall";
$lang->custom->buildin = "Buildin";
$lang->custom->isDefault = 'Is Default';
$lang->custom->editStoryConcept = "Edit Story Concept";
$lang->custom->setStoryConcept = "Set Story Concept";
$lang->custom->setDefaultConcept = "Set Default Concept";
+1 -1
View File
@@ -37,10 +37,10 @@ $lang->custom->concept = "Concept";
$lang->custom->URStory = "User requirements";
$lang->custom->SRStory = "Software requirements";
$lang->custom->epic = "Epic";
$lang->custom->default = "Default";
$lang->custom->scrumStory = "Story";
$lang->custom->waterfallCommon = "Waterfall";
$lang->custom->buildin = "Buildin";
$lang->custom->isDefault = 'Is Default';
$lang->custom->editStoryConcept = "Edit Story Concept";
$lang->custom->setStoryConcept = "Set Story Concept";
$lang->custom->setDefaultConcept = "Set Default Concept";
+1 -1
View File
@@ -37,10 +37,10 @@ $lang->custom->concept = "Concept";
$lang->custom->URStory = "User requirements";
$lang->custom->SRStory = "Software requirements";
$lang->custom->epic = "Epic";
$lang->custom->default = "Default";
$lang->custom->scrumStory = "Story";
$lang->custom->waterfallCommon = "Waterfall";
$lang->custom->buildin = "Buildin";
$lang->custom->isDefault = 'Is Default';
$lang->custom->editStoryConcept = "Edit Story Concept";
$lang->custom->setStoryConcept = "Set Story Concept";
$lang->custom->setDefaultConcept = "Set Default Concept";
+1 -1
View File
@@ -37,10 +37,10 @@ $lang->custom->concept = "Concept";
$lang->custom->URStory = "User requirements";
$lang->custom->SRStory = "Software requirements";
$lang->custom->epic = "Epic";
$lang->custom->default = "Default";
$lang->custom->scrumStory = "Story";
$lang->custom->waterfallCommon = "Waterfall";
$lang->custom->buildin = "Buildin";
$lang->custom->isDefault = 'Is Default';
$lang->custom->editStoryConcept = "Edit Story Concept";
$lang->custom->setStoryConcept = "Set Story Concept";
$lang->custom->setDefaultConcept = "Set Default Concept";
+1 -1
View File
@@ -37,10 +37,10 @@ $lang->custom->concept = "项目概念";
$lang->custom->URStory = "用户需求";
$lang->custom->SRStory = "软件需求";
$lang->custom->epic = "史诗";
$lang->custom->default = "默认";
$lang->custom->scrumStory = "故事";
$lang->custom->waterfallCommon = "瀑布";
$lang->custom->buildin = "系统内置";
$lang->custom->isDefault = '是否默认';
$lang->custom->editStoryConcept = "编辑需求概念";
$lang->custom->setStoryConcept = "设置需求概念";
$lang->custom->setDefaultConcept = "设置默认概念";
+13 -5
View File
@@ -23,23 +23,24 @@
<table class='table table-form'>
<thead>
<tr>
<?php if(common::hasPriv('custom', 'setDefaultConcept')):?>
<th class='w-60px text-center'><?php echo $lang->custom->default;?> </th>
<?php endif;?>
<th class='text-left'><?php echo $lang->custom->URConcept;?> </th>
<th class='text-left'><?php echo $lang->custom->SRConcept;?> </th>
<th class='w-100px text-center'><?php echo $lang->custom->buildin;?> </th>
<th class='w-100px text-center'><?php echo $lang->custom->isDefault;?> </th>
<th class='w-100px text-left'><?php echo $lang->actions;?> </th>
</tr>
</thead>
<tbody>
<?php foreach($URSRList as $key => $URSR):?>
<tr>
<?php if(common::hasPriv('custom', 'setDefaultConcept')):?>
<td class='text-center'><input type="radio" name='default' value='<?php echo $key;?>' <?php if($key == $config->custom->URSR) echo 'checked';?>></td>
<?php endif;?>
<td class='text-left'><?php echo $URSR['URName'];?></td>
<td class='text-left'><?php echo $URSR['SRName'];?></td>
<td class='text-center'><?php echo zget($lang->custom->tipRangeList, $URSR['system'], '');?></td>
<td class='text-center'><?php if($key == $config->custom->URSR) echo "<i class='icon icon-check'></i>";?></td>
<td class='c-actions'>
<?php $disabled = $key == $config->custom->URSR ? "disabled=disabled" : '';?>
<?php if(common::hasPriv('custom', 'setDefaultConcept')) echo html::a($this->createLink('custom', 'setDefaultConcept', "id=$key"), "<i class='icon icon-hand-right'></i>", 'hiddenwin', "class='btn' title={$lang->custom->setDefaultConcept}");?>
<?php if(common::hasPriv('custom', 'editStoryConcept')) echo html::a($this->createLink('custom', 'editStoryConcept', "id=$key", '', true), "<i class='icon icon-edit'></i>", '', "class='btn iframe' title={$lang->edit}");?>
<?php if(common::hasPriv('custom', 'deleteStoryConcept')) echo html::a($this->createLink('custom', 'deleteStoryConcept', "id=$key"), "<i class='icon icon-trash'></i>", 'hiddenwin', "class='btn' $disabled title={$lang->delete} data-group='system'");?>
</td>
@@ -49,4 +50,11 @@
</table>
</div>
</div>
<script>
$("input[name='default']").change(function()
{
var checked = $(this).val();
hiddenwin.location.href = createLink('custom', 'setDefaultConcept', 'key=' + checked);
})
</script>
<?php include '../../common/view/footer.html.php';?>