first commit
This commit is contained in:
8
web/plugins/stPaczkomatyPlugin/css/backend/config.css
Normal file
8
web/plugins/stPaczkomatyPlugin/css/backend/config.css
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
.row_payment,
|
||||
.row_order_status,
|
||||
.row_organization,
|
||||
#sf_fieldset_domy__lne_ustawienia,
|
||||
#sf_fieldset_informacje_o_nadawcy_na_paczce {
|
||||
display: none;
|
||||
}
|
||||
5
web/plugins/stPaczkomatyPlugin/css/backend/edit.css
Normal file
5
web/plugins/stPaczkomatyPlugin/css/backend/edit.css
Normal file
@@ -0,0 +1,5 @@
|
||||
.action-save,
|
||||
#sf_fieldset_none,
|
||||
.action-download_sticker {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="#555" d="M3 13.5L2.25 12H7.5l-.6-1.5H2L1.25 9h7.8l-.6-1.5H1.11L.25 6H4a2 2 0 0 1 2-2h12v4h3l3 4v5h-2a3 3 0 0 1-3 3a3 3 0 0 1-3-3h-4a3 3 0 0 1-3 3a3 3 0 0 1-3-3H4v-3.5H3m16 5a1.5 1.5 0 0 0 1.5-1.5a1.5 1.5 0 0 0-1.5-1.5a1.5 1.5 0 0 0-1.5 1.5a1.5 1.5 0 0 0 1.5 1.5m1.5-9H18V12h4.46L20.5 9.5M9 18.5a1.5 1.5 0 0 0 1.5-1.5A1.5 1.5 0 0 0 9 15.5A1.5 1.5 0 0 0 7.5 17A1.5 1.5 0 0 0 9 18.5Z"/></svg>
|
||||
|
After Width: | Height: | Size: 522 B |
15
web/plugins/stPaczkomatyPlugin/js/backend.js
Normal file
15
web/plugins/stPaczkomatyPlugin/js/backend.js
Normal file
@@ -0,0 +1,15 @@
|
||||
jQuery(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#config_label_format').change(function() {
|
||||
const formatSelect = $(this);
|
||||
const typeSelect = $('#config_label_type');
|
||||
|
||||
if (formatSelect.val() != 'Pdf') {
|
||||
typeSelect.val('A6').prop('disabled', true);
|
||||
typeSelect.selectBox('update');
|
||||
} else {
|
||||
typeSelect.prop('disabled', false);
|
||||
}
|
||||
}).change();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user