* Finish task #70194.

This commit is contained in:
wangyuting2
2022-09-26 07:06:15 +00:00
parent 129bec2618
commit 3af041060f
7 changed files with 20 additions and 14 deletions
+6 -1
View File
@@ -2,7 +2,12 @@ $(function()
{
$('#modeTab').addClass('btn-active-text');
$('[name=mode]').change(function(){$("#selectDefaultProgram").toggle($(this).val() == 'lean'); });
$('[name=mode]').change(function()
{
$('#submit').prop('disabled', 'disabled');
if(mode != $(this).val()) $('#submit').prop('disabled', '');
$('#program').closest('tr').toggle(mode == 'new' && $(this).val() == 'lean');
});
$(document).on('click', '#submit', function()
+2 -2
View File
@@ -57,6 +57,8 @@ $lang->custom->dept = 'Dept';
$lang->custom->code = $lang->code;
$lang->custom->setCode = 'Enable or Disable Code';
$lang->custom->execution = 'Execution';
$lang->custom->defaultProgram = 'Default program';
$lang->custom->switchModeHelper = 'Select a default item set. Subsequent data added in the system will be associated with the default item set';
$lang->custom->unitList['efficiency'] = 'Working Hours/';
$lang->custom->unitList['manhour'] = 'Man-hour/';
@@ -295,5 +297,3 @@ $lang->custom->scrum->setConcept = 'Set concept';
$lang->custom->reviewRules['allpass'] = 'All passed';
$lang->custom->reviewRules['halfpass'] = 'More than half passed';
$lang->custom->switchModeHelper = 'Select a default item set. Subsequent data added in the system will be associated with the default item set';
+2 -2
View File
@@ -57,6 +57,8 @@ $lang->custom->dept = 'Dept';
$lang->custom->code = $lang->code;
$lang->custom->setCode = 'Enable or Disable Code';
$lang->custom->execution = 'Execution';
$lang->custom->defaultProgram = 'Default program';
$lang->custom->switchModeHelper = 'Select a default item set. Subsequent data added in the system will be associated with the default item set';
$lang->custom->unitList['efficiency'] = 'Working Hours/';
$lang->custom->unitList['manhour'] = 'Man-hour/';
@@ -295,5 +297,3 @@ $lang->custom->scrum->setConcept = 'Set concept';
$lang->custom->reviewRules['allpass'] = 'All passed';
$lang->custom->reviewRules['halfpass'] = 'More than half passed';
$lang->custom->switchModeHelper = 'Select a default item set. Subsequent data added in the system will be associated with the default item set';
+2 -2
View File
@@ -57,6 +57,8 @@ $lang->custom->dept = 'Dept';
$lang->custom->code = $lang->code;
$lang->custom->setCode = 'Activer ou Désactiver le Code';
$lang->custom->execution = 'Execution';
$lang->custom->defaultProgram = 'Default program';
$lang->custom->switchModeHelper = 'Select a default item set. Subsequent data added in the system will be associated with the default item set';
$lang->custom->unitList['efficiency'] = 'Working Hours/';
$lang->custom->unitList['manhour'] = 'Man-hour/';
@@ -295,5 +297,3 @@ $lang->custom->scrum->setConcept = 'Set concept';
$lang->custom->reviewRules['allpass'] = 'All passed';
$lang->custom->reviewRules['halfpass'] = 'More than half passed';
$lang->custom->switchModeHelper = 'Select a default item set. Subsequent data added in the system will be associated with the default item set';
+2
View File
@@ -50,6 +50,8 @@ $lang->custom->convertRelationTitle = "Please firstly set the conversion factor
if($config->systemMode == 'new') $lang->custom->execution = 'Execution';
if($config->systemMode == 'classic' || !$config->systemMode) $lang->custom->execution = $lang->executionCommon;
$lang->custom->defaultProgram = 'Default program';
$lang->custom->switchModeHelper = 'Select a default item set. Subsequent data added in the system will be associated with the default item set';
$lang->custom->unitList['efficiency'] = 'Working Hours/';
$lang->custom->unitList['manhour'] = 'Man-hour/';
+2 -2
View File
@@ -57,6 +57,8 @@ $lang->custom->dept = '部门';
$lang->custom->code = $lang->code;
$lang->custom->setCode = '是否启用代号';
$lang->custom->execution = '执行';
$lang->custom->defaultProgram = '选择默认项目集';
$lang->custom->switchModeHelper = '请选择一个默认项目集,后续在系统中新增的数据将关联在默认项目集下';
$lang->custom->unitList['efficiency'] = '工时/';
$lang->custom->unitList['manhour'] = '人时/';
@@ -295,5 +297,3 @@ $lang->custom->scrum->setConcept = '设置项目概念';
$lang->custom->reviewRules['allpass'] = '全部通过通过';
$lang->custom->reviewRules['halfpass'] = '半数以上通过通过';
$lang->custom->switchModeHelper = '请选择一个默认项目集,后续在系统中新增的数据将关联在默认项目集下';
+4 -5
View File
@@ -23,7 +23,7 @@
</div>
<table class='table table-form'>
<tr>
<th class='text-top'><?php echo $lang->custom->mode;?></th>
<th class='text-top w-120px'><?php echo $lang->custom->mode;?></th>
<td>
<p>
<label class="radio-inline"><input type="radio" name="mode" value="lean" <?php echo $mode == 'lean'? "checked='checked'" : '';?> id="modelean"><?php echo $lang->upgrade->to18Mode['lean'];?></label>
@@ -31,9 +31,8 @@
</p>
</td>
</tr>
<?php $class = $mode == 'new' ? "class='hide'" : "";?>
<tr id="selectDefaultProgram" <?php echo $class;?>>
<td></td>
<tr class='hide'>
<th><?php echo $lang->custom->defaultProgram;?></th>
<td>
<?php
$disabled = $mode == 'lean' ? "disabled" : '';
@@ -43,7 +42,7 @@
</tr>
<tr>
<td></td>
<td><?php echo html::submitButton($lang->custom->switch);?></td>
<td><?php echo html::submitButton($lang->custom->switch, 'disabled');?></td>
</tr>
</table>
</form>