* Adjust code.

This commit is contained in:
tianshujie98
2021-07-15 17:27:25 +08:00
parent 109867f103
commit f8a107bd79
3 changed files with 9 additions and 6 deletions
+8 -4
View File
@@ -754,17 +754,21 @@ function hiddenProject()
if($('#newProject0').is(':checked')) $('#projects').attr('disabled', 'disabled');
var projectType = $('input[name="projectType"]:checked').val();
$('.projectName').toggleClass('hidden');
$('.projectAcl').toggleClass('hidden');
$('.programAcl').toggleClass('hidden');
$('.projectStatus').toggleClass('hidden');
if(projectType == 'project')
{
$('.projectName').addClass('hidden');
$('.projectAcl').addClass('hidden');
$('.programAcl').removeClass('hidden');
$('.projectStatus').addClass('hidden');
$('[name=projectAcl]').attr('disabled', 'disabled');
$('[name=programAcl]').removeAttr('disabled');
}
if(projectType == 'execution')
{
$('.projectName').removeClass('hidden');
$('.projectAcl').removeClass('hidden');
$('.programAcl').addClass('hidden');
$('.projectStatus').removeClass('hidden');
$('[name=programAcl]').attr('disabled', 'disabled');
$('[name=projectAcl]').removeAttr('disabled');
}
@@ -3,7 +3,6 @@
<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></tr>
</table>
<table class='table table-form'>
<caption class='strong'><?php echo $lang->upgrade->setProgram;?></caption>
+1 -1
View File
@@ -18,7 +18,7 @@
<?php foreach($productlines as $line):?>
<li <?php if($line->id == $selected) echo "class='active' id='activeLine'";?> lineID='<?php echo $line->id;?>'>
<div>
<?php echo html::checkbox("productLines[$line->id]", array($line->id => ''), '' ,"class='tile'") . html::a("###", $line->name, '', "data-target=#line{$line->id}");?>
<?php echo html::checkbox("productLines[$line->id]", array($line->id => ''), '' ,"class='tile'") . html::a("###", $line->name, '', "data-target=#line{$line->id}");?>
</div>
</li>
<?php endforeach;?>