diff --git a/module/custom/css/mode.css b/module/custom/css/mode.css index 73f2d0f279..bf17268b27 100644 --- a/module/custom/css/mode.css +++ b/module/custom/css/mode.css @@ -1,5 +1,6 @@ -.pd-l-20{padding-left: 20px!important;} +.pd-l-20 {padding-left: 20px!important;} #selectProgramModal .modal-dialog {width: 550px} #selectProgramModal .modal-header {border-bottom: 0px} #selectProgramModal .modal-header h4.modal-title{font-weight: 700} #selectProgramModal .modal-footer {border-top: 0px; text-align: center} +.btn-wide {padding: 6px 85px;} diff --git a/module/custom/js/mode.js b/module/custom/js/mode.js index d62ef0bf1b..d2b43de9d4 100644 --- a/module/custom/js/mode.js +++ b/module/custom/js/mode.js @@ -2,17 +2,10 @@ $(function() { $('#modeTab').addClass('btn-active-text'); - $('[name=mode]').change(function() + $('#useLight, #useALM').click(function() { - $('#submit').prop('disabled', 'disabled'); - if(mode != $(this).val()) $('#submit').prop('disabled', ''); - $('#program').closest('tr').toggle(mode == 'ALM' && $(this).val() == 'light'); - }); - - $(document).on('click', '#submit', function() - { - var selectedMode = $('[name=mode]:checked').val(); - if(mode == selectedMode) return false; + var selectedMode = $(this).data('mode'); + $('#mode').val(selectedMode); if(selectedMode == 'light' && hasProgram) { @@ -27,7 +20,7 @@ $(function() } return false; - }); + }) $(document).on('click', '.btn-save', function() { diff --git a/module/custom/view/mode.html.php b/module/custom/view/mode.html.php index deffeb57ef..693574ab8b 100644 --- a/module/custom/view/mode.html.php +++ b/module/custom/view/mode.html.php @@ -19,57 +19,55 @@
| custom->currentModeTips, $lang->custom->modeList[$mode], $lang->custom->modeList[$mode == 'light' ? 'ALM' : 'light']);?> | -|||||||||||||||||||||
|
-
- custom->modeIntroductionList['light'];?> - |
-
-
- custom->modeIntroductionList['ALM'];?> - |
- ||||||||||||||||||||
-
custom->switch, 'disabled');?> |
- | ||||||||||||||||||||
| lang->custom->scrum->common, implode($lang->comma, $enabledScrumFeatures)) : $this->lang->custom->features[$feature];?> | ++ | + | |||||||||||||||||||
| lang->custom->selectUsage;?> | ++ + custom->useLight, "id='useLight' data-mode='light'", "btn btn-wide $primaryClass");?> + | ++ + custom->useALM, "id='useALM' data-mode='ALM'", "btn btn-wide $primaryClass");?> + + | +|||||||||||||||||||