* Finish task #69258.
This commit is contained in:
@@ -535,6 +535,7 @@ $(function()
|
||||
/* Toggles data migration mode events. */
|
||||
$('input[name="projectType"]').change(function()
|
||||
{
|
||||
$('.programForm').show();
|
||||
$('.createProjectTip').toggleClass('hidden');
|
||||
$('.createExecutionTip').toggleClass('hidden');
|
||||
$('.projectName').toggleClass('hidden');
|
||||
@@ -544,6 +545,7 @@ $(function()
|
||||
|
||||
if($(this).val() == 'project')
|
||||
{
|
||||
if(mode == 'lean') $('.programForm').hide();
|
||||
$('[name=projectAcl]').attr('disabled', 'disabled');
|
||||
$('[name=programAcl]').removeAttr('disabled');
|
||||
}
|
||||
@@ -811,8 +813,10 @@ function toggleProject(obj)
|
||||
*/
|
||||
function hiddenProject()
|
||||
{
|
||||
$('#programBox').show();
|
||||
if($('[name^=sprints]:checked').length == 0)
|
||||
{
|
||||
if(mode == 'lean') $('#programBox').hide();
|
||||
$(".programParams input").attr('disabled' ,'disabled');
|
||||
$(".programParams select").attr('disabled' ,'disabled').trigger('chosen:updated');
|
||||
$('.programParams').hide();
|
||||
@@ -833,6 +837,7 @@ function hiddenProject()
|
||||
|
||||
if($('#newProject0').is(':checked')) $('#projects').attr('disabled', 'disabled');
|
||||
|
||||
$('.programForm').show();
|
||||
var projectType = $('input[name="projectType"]:checked').val();
|
||||
if(projectType == 'project')
|
||||
{
|
||||
@@ -842,6 +847,7 @@ function hiddenProject()
|
||||
$('.projectStatus').addClass('hidden');
|
||||
$('[name=projectAcl]').attr('disabled', 'disabled');
|
||||
$('[name=programAcl]').removeAttr('disabled');
|
||||
if(mode == 'lean') $('.programForm').hide();
|
||||
}
|
||||
|
||||
if(projectType == 'execution')
|
||||
@@ -853,6 +859,12 @@ function hiddenProject()
|
||||
$('[name=programAcl]').attr('disabled', 'disabled');
|
||||
$('[name=projectAcl]').removeAttr('disabled');
|
||||
}
|
||||
|
||||
if(mode == 'lean')
|
||||
{
|
||||
$('form #newProgram0').prop('checked', false);
|
||||
toggleProgram($('form #newProgram0'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<table class='table table-form programParams'>
|
||||
<caption class='strong'><?php echo $lang->upgrade->dataMethod;?></caption>
|
||||
<tr><td><?php echo html::radio('projectType', $this->lang->upgrade->projectType, $projectType);?></td></tr>
|
||||
<tr><td class='createProjectTip'><?php echo $lang->upgrade->createProjectTip?></td></tr>
|
||||
<tr><td class='createExecutionTip hidden'><?php echo $lang->upgrade->createExecutionTip?></td></tr>
|
||||
<tr><td class='createProjectTip text-gray <?php echo $projectType == 'project' ? '' : 'hidden';?>'><?php echo $lang->upgrade->createProjectTip?></td></tr>
|
||||
<tr><td class='createExecutionTip text-gray <?php echo $projectType == 'execution' ? '' : 'hidden';?>'><?php echo $lang->upgrade->createExecutionTip?></td></tr>
|
||||
</table>
|
||||
<table class='table table-form'>
|
||||
<table class='table table-form programForm'>
|
||||
<caption class='strong'><?php echo $lang->upgrade->setProgram;?></caption>
|
||||
<tr>
|
||||
<tr class="<?php echo $systemMode == 'lean' ? 'hide' : '';?>">
|
||||
<th>
|
||||
<span class="pgm-exist hidden"><?php echo $lang->upgrade->existProgram;?></span>
|
||||
<span class="pgm-no-exist"><?php echo $lang->upgrade->programName;?></span>
|
||||
@@ -25,7 +25,7 @@
|
||||
<?php echo html::hidden('programID', '');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="<?php echo $systemMode == 'lean' ? 'hide' : '';?>">
|
||||
<th><?php echo $lang->program->common . $lang->program->status;?></th>
|
||||
<td><?php echo html::select('programStatus', $lang->program->statusList, '', "class='form-control chosen'");?></td>
|
||||
</tr>
|
||||
@@ -53,7 +53,7 @@
|
||||
<th><?php echo $lang->project->status;?></th>
|
||||
<td><?php echo html::select('projectStatus', $lang->project->statusList, '', "class='form-control chosen'");?></td>
|
||||
</tr>
|
||||
<tr class='LineName'>
|
||||
<tr class='LineName <?php echo $systemMode == 'lean' ? 'hide' : '';?>'>
|
||||
<th>
|
||||
<span class="line-exist hidden"><?php echo $lang->upgrade->existLine;?></span>
|
||||
<span class="line-no-exist"><?php echo $lang->upgrade->line;?></span>
|
||||
@@ -94,6 +94,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr class='programParams'>
|
||||
<?php if($systemMode == 'lean') unset($lang->project->subAclList['program']);?>
|
||||
<th><?php echo $lang->project->acl;?></th>
|
||||
<td class='programAcl'><?php echo nl2br(html::radio('programAcl', $lang->program->aclList, 'open', '', 'block'));?></td>
|
||||
<td class='projectAcl hidden'><?php echo nl2br(html::radio('projectAcl', $lang->project->subAclList, 'open', '', 'block'));?></td>
|
||||
|
||||
Reference in New Issue
Block a user