Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -48,3 +48,25 @@ $(function()
|
||||
parent.location.href = link;
|
||||
})
|
||||
});
|
||||
|
||||
function createProduct()
|
||||
{
|
||||
var onlybody = config.onlybody;
|
||||
config.onlybody = 'no';
|
||||
|
||||
var link = createLink('product', 'create');
|
||||
|
||||
config.onlybody = onlybody;
|
||||
parent.location.href = link;
|
||||
}
|
||||
|
||||
function createProject()
|
||||
{
|
||||
var onlybody = config.onlybody;
|
||||
config.onlybody = 'no';
|
||||
|
||||
var link = createLink('project', 'create');
|
||||
|
||||
config.onlybody = onlybody;
|
||||
parent.location.href = link;
|
||||
}
|
||||
|
||||
@@ -198,10 +198,19 @@
|
||||
<h4 class="modal-title"><?php echo $lang->project->selectProject;?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<?php if(empty($projects)):?>
|
||||
<div class="table-empty-tip">
|
||||
<p>
|
||||
<span class="text-muted"><?php echo $lang->project->noProject;?></span>
|
||||
<?php echo html::a("javascript:createProject()", "<i class='icon icon-plus'></i> " . $lang->project->create, '', "class='btn btn-info'");?>
|
||||
</p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class='input-group'>
|
||||
<?php echo html::select('project', $projects, '', "class='form-control chosen'");?>
|
||||
<span class='input-group-btn'><?php echo html::commonButton($lang->todo->reasonList['task'], "id='toTaskButton'", 'btn btn-primary');?></span>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -214,11 +223,20 @@
|
||||
<h4 class="modal-title"><?php echo $lang->product->select;?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<?php if(empty($products)):?>
|
||||
<div class="table-empty-tip">
|
||||
<p>
|
||||
<span class="text-muted"><?php echo $lang->product->noProduct;?></span>
|
||||
<?php echo html::a("javascript:createProduct()", "<i class='icon icon-plus'></i> " . $lang->product->create, '', "class='btn btn-info'");?>
|
||||
</p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class='input-group'>
|
||||
<?php echo html::select('product', $products, '', "class='form-control chosen'");?>
|
||||
<span class='input-group-btn'><?php echo html::commonButton($lang->todo->reasonList['story'], "id='toStoryButton'", 'btn btn-primary');?></span>
|
||||
<span class='input-group-btn'><?php echo html::commonButton($lang->todo->reasonList['bug'], "id='toBugButton'", 'btn btn-primary');?></span>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user