* Optimized creating requirements page.

This commit is contained in:
tianshujie
2023-03-02 13:48:04 +08:00
parent 89db51f678
commit bf3081471d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ js::set('priv',
<div class='dropdown' id='createDropdown'>
<button class='btn btn-primary' type='button' data-toggle='dropdown'><i class='icon icon-plus'></i> <?php echo $this->lang->create;?> <span class='caret'></span></button>
<ul class='dropdown-menu pull-right'>
<?php if($canCreateStory) echo '<li>' . html::a(helper::createLink('story', 'create', "productID=$productID&branch=0&moduleID=0&story=0&execution=$execution->id", '', true), $lang->execution->createStory, '', "class='iframe'") . '</li>';?>
<?php if($canCreateStory) echo '<li>' . html::a(helper::createLink('story', 'create', "productID=$productID&branch=0&moduleID=0&story=0&execution=$execution->id", '', true), $lang->execution->createStory, '', "class='iframe' data-width=80%") . '</li>';?>
<?php
if($canBatchCreateStory)
{
+2
View File
@@ -112,11 +112,13 @@ foreach(explode(',', $config->story->create->requiredFields) as $field)
</div>
</div>
</td>
<?php if(count($branches) > 1):?>
<td class="table-col c-actions text-left w-60px">
<div>
<a href='javascript:;' onclick='addBranchesBox(this)' class='btn btn-link' title='<?php echo sprintf($lang->story->addBranch, $lang->product->branchName[$product->type])?>'><i class='icon-plus'></i></a>
</div>
</td>
<?php endif;?>
</tr>
<tr class='hidden' >
<th></th>