|
@@ -22,22 +22,22 @@
|
|
|
</div>
|
|
|
<div class="card-body">
|
|
|
<input type="hidden" id="Id" name="Id" value="0">
|
|
|
- <div class="d-flex flex-column mb-2">
|
|
|
- <label class="m-0">{{ $formA['FormVars']['Title']['SetupName'] }}</label>
|
|
|
- <input type="text" id="setup-name-txt" class="rounded w-100" autocomplete="off">
|
|
|
- </div>
|
|
|
- <div class="d-flex flex-column mb-2">
|
|
|
- <label class="m-0">{{ $formA['FormVars']['Title']['SetupCode'] }}</label>
|
|
|
- <input type="text" id="setup-code-txt" class="rounded w-100" autocomplete="off">
|
|
|
- </div>
|
|
|
- <div class="d-flex flex-column mb-2">
|
|
|
- <label class="m-0">{{ $formA['FormVars']['Title']['SeqNo'] }}</label>
|
|
|
- <input type="text" id="seq-no-txt" class="rounded w-100" autocomplete="off">
|
|
|
- </div>
|
|
|
- <div class="d-flex flex-column mb-2">
|
|
|
- <label class="m-0">{{ $formA['FormVars']['Title']['BrandCode'] }}</label>
|
|
|
- <input type="text" id="brand-code-txt" class="rounded w-100" autocomplete="off">
|
|
|
- </div>
|
|
|
+ {{--<div class="d-flex flex-column mb-2">--}}
|
|
|
+ {{-- <label class="m-0">{{ $formA['FormVars']['Title']['SetupName'] }}</label>--}}
|
|
|
+ {{-- <input type="text" id="setup-name-txt" class="rounded w-100" autocomplete="off">--}}
|
|
|
+ {{--</div>--}}
|
|
|
+ {{--<div class="d-flex flex-column mb-2">--}}
|
|
|
+ {{-- <label class="m-0">{{ $formA['FormVars']['Title']['SetupCode'] }}</label>--}}
|
|
|
+ {{-- <input type="text" id="setup-code-txt" class="rounded w-100" autocomplete="off">--}}
|
|
|
+ {{--</div>--}}
|
|
|
+ {{--<div class="d-flex flex-column mb-2">--}}
|
|
|
+ {{-- <label class="m-0">{{ $formA['FormVars']['Title']['SeqNo'] }}</label>--}}
|
|
|
+ {{-- <input type="text" id="seq-no-txt" class="rounded w-100" autocomplete="off">--}}
|
|
|
+ {{--</div>--}}
|
|
|
+ {{--<div class="d-flex flex-column mb-2">--}}
|
|
|
+ {{--<label class="m-0">{{ $formA['FormVars']['Title']['BrandCode'] }}</label>--}}
|
|
|
+ {{--<input type="text" id="brand-code-txt" class="rounded w-100" autocomplete="off">--}}
|
|
|
+ {{--</div>--}}
|
|
|
<div class="d-flex flex-column mb-2">
|
|
|
<label class="m-0">{{ $formA['FormVars']['Title']['Component'] }}</label>
|
|
|
<input type="text" id="component-txt" class="rounded w-100" autocomplete="off">
|
|
@@ -46,16 +46,16 @@
|
|
|
<label class="m-0">{{ $formA['FormVars']['Title']['Parameter'] }}</label>
|
|
|
<input type="text" id="parameter-txt" class="rounded w-100" autocomplete="off">
|
|
|
</div>
|
|
|
- <div class="align-items-center mb-2 {{ $formA['FormVars']['Display']['IsOnUse'] }}">
|
|
|
- <input type="checkbox" tabindex="-1" value="1" class="text-center mr-1" id="is-on-use-check"> <label class="mb-0" for="is-on-use-check">{{ $formA['FormVars']['Title']['IsOnUse'] }}</label>
|
|
|
- </div>
|
|
|
- <div class="align-items-center mb-2 {{ $formA['FormVars']['Display']['IsDefault'] }}">
|
|
|
- <input type="checkbox" tabindex="-1" value="1" class="text-center mr-1" id="is-default-check"> <label class="mb-0" for="is-on-use-check">{{ $formA['FormVars']['Title']['IsDefault'] }}</label>
|
|
|
- </div>
|
|
|
- <div class="d-flex flex-column mb-2">
|
|
|
- <label class="m-0">{{ $formA['FormVars']['Title']['SetupJson'] }}</label>
|
|
|
- <input type="text" id="setup-json-txt" class="rounded w-100" autocomplete="off">
|
|
|
- </div>
|
|
|
+ {{--<div class="align-items-center mb-2 {{ $formA['FormVars']['Display']['IsOnUse'] }}">--}}
|
|
|
+ {{-- <input type="checkbox" tabindex="-1" value="1" class="text-center mr-1" id="is-on-use-check"> <label class="mb-0" for="is-on-use-check">{{ $formA['FormVars']['Title']['IsOnUse'] }}</label>--}}
|
|
|
+ {{--</div>--}}
|
|
|
+ {{--<div class="align-items-center mb-2 {{ $formA['FormVars']['Display']['IsDefault'] }}">--}}
|
|
|
+ {{-- <input type="checkbox" tabindex="-1" value="1" class="text-center mr-1" id="is-default-check"> <label class="mb-0" for="is-on-use-check">{{ $formA['FormVars']['Title']['IsDefault'] }}</label>--}}
|
|
|
+ {{--</div>--}}
|
|
|
+ {{--<div class="d-flex flex-column mb-2">--}}
|
|
|
+ {{-- <label class="m-0">{{ $formA['FormVars']['Title']['SetupJson'] }}</label>--}}
|
|
|
+ {{-- <input type="text" id="setup-json-txt" class="rounded w-100" autocomplete="off">--}}
|
|
|
+ {{--</div>--}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -97,15 +97,15 @@
|
|
|
|
|
|
PopupSetupFormAThemeSetupExampleForm.parameter = function () {
|
|
|
let setup = {
|
|
|
- SetupName: $('#theme-setup-example-form').find('#setup-name-txt').val(),
|
|
|
- SetupCode: $('#theme-setup-example-form').find('#setup-code-txt').val(),
|
|
|
- SeqNo: $('#theme-setup-example-form').find('#seq-no-txt').val(),
|
|
|
- BrandCode: $('#theme-setup-example-form').find('#brand-code-txt').val(),
|
|
|
+ // SetupName: $('#theme-setup-example-form').find('#setup-name-txt').val(),
|
|
|
+ // SetupCode: $('#theme-setup-example-form').find('#setup-code-txt').val(),
|
|
|
+ // SeqNo: $('#theme-setup-example-form').find('#seq-no-txt').val(),
|
|
|
+ // BrandCode: $('#theme-setup-example-form').find('#brand-code-txt').val(),
|
|
|
Component: $('#theme-setup-example-form').find('#component-txt').val(),
|
|
|
Parameter: $('#theme-setup-example-form').find('#parameter-txt').val(),
|
|
|
- IsOnUse: $('#theme-setup-example-form').find('#is-on-use-check').is(':checked'),
|
|
|
- IsDefault: $('#theme-setup-example-form').find('#is-default-check').is(':checked'),
|
|
|
- SetupJson: $('#theme-setup-example-form').find('#setup-json-txt').val(),
|
|
|
+ // IsOnUse: $('#theme-setup-example-form').find('#is-on-use-check').is(':checked'),
|
|
|
+ // IsDefault: $('#theme-setup-example-form').find('#is-default-check').is(':checked'),
|
|
|
+ // SetupJson: $('#theme-setup-example-form').find('#setup-json-txt').val(),
|
|
|
}
|
|
|
let id = Number($('#theme-setup-example-form').find('#Id').val());
|
|
|
let parameter = {
|
|
@@ -121,12 +121,14 @@
|
|
|
} else {
|
|
|
delete parameter.UpdatedOn;
|
|
|
}
|
|
|
- console.log(parameter);
|
|
|
+
|
|
|
+ console.log('save : ', parameter);
|
|
|
|
|
|
return parameter;
|
|
|
}
|
|
|
|
|
|
PopupSetupFormAThemeSetupExampleForm.show_popup_callback = async function (id, setup) {
|
|
|
+ console.log('show_popup_callback : ', setup);
|
|
|
$('#modal-select-popup.popup-setup-form-a-theme-setup-example-form .modal-dialog').css('maxWidth', '600px');
|
|
|
Atype.btn_act_new('#theme-setup-example-form #frm');
|
|
|
$('#theme-setup-example-form').find('#Id').val(id)
|
|
@@ -138,15 +140,15 @@
|
|
|
if (_.isEmpty(setup)) return
|
|
|
|
|
|
const theme_setup_example_form = $('#theme-setup-example-form')
|
|
|
- $(theme_setup_example_form).find('#setup-name-txt').val(setup['SetupName'])
|
|
|
- $(theme_setup_example_form).find('#setup-code-txt').val(setup['SetupCode'])
|
|
|
- $(theme_setup_example_form).find('#seq-no-txt').val(setup['SeqNo'])
|
|
|
- $(theme_setup_example_form).find('#brand-code-txt').val(setup['BrandCode'])
|
|
|
+ // $(theme_setup_example_form).find('#setup-name-txt').val(setup['SetupName'])
|
|
|
+ // $(theme_setup_example_form).find('#setup-code-txt').val(setup['SetupCode'])
|
|
|
+ // $(theme_setup_example_form).find('#seq-no-txt').val(setup['SeqNo'])
|
|
|
+ // $(theme_setup_example_form).find('#brand-code-txt').val(setup['BrandCode'])
|
|
|
$(theme_setup_example_form).find('#component-txt').val(setup['Component'])
|
|
|
$(theme_setup_example_form).find('#parameter-txt').val(setup['Parameter'])
|
|
|
- $(theme_setup_example_form).find('#is-on-use-check').prop('checked', setup['IsOnUse'])
|
|
|
- $(theme_setup_example_form).find('#is-default-check').prop('checked', setup['IsDefault'])
|
|
|
- $(theme_setup_example_form).find('#setup-json-txt').val(setup['SetupJson'])
|
|
|
+ // $(theme_setup_example_form).find('#is-on-use-check').prop('checked', setup['IsOnUse'])
|
|
|
+ // $(theme_setup_example_form).find('#is-default-check').prop('checked', setup['IsDefault'])
|
|
|
+ // $(theme_setup_example_form).find('#setup-json-txt').val(setup['SetupJson'])
|
|
|
}
|
|
|
|
|
|
}( window.PopupSetupFormAThemeSetupExampleForm = window.PopupSetupFormAThemeSetupExampleForm || {}, jQuery ));
|