push 11/4

This commit is contained in:
2025-04-11 14:18:51 +07:00
parent e8e9f7c382
commit 1c2c38a8bb
20 changed files with 583 additions and 77 deletions

View File

@@ -38,4 +38,13 @@
{% include javascript/edit_template %}
{% elsif global.module == 'tag' and global.view == 'add' %}
{% include javascript/tag %}
{% elsif global.module == 'shipping2' %}
{% include javascript/shipping2 %}
{% endif %}

View File

@@ -0,0 +1,15 @@
<script>
var current_index = '2';
function addRow() {
var index = 1 + parseInt(current_index);
var tpl = '<tr><td>' + index + '</td> ' +
'<td>' +
'<input type="text" name="cod[order_value][]" class="input input-bordered iput-sm h-[35px] rounded-[4px]" size="30" value="" onkeyup="this.value = writeStringToPrice(this.value)" placeholder="Nhập giá trị đơn hàng"></td> ' +
'<td><input type="text" name="cod[fee][]" class="input input-bordered iput-sm h-[35px] rounded-[4px]" size="20" value="" placeholder="Nhập phí" onkeyup="this.value = writeStringToPrice(this.value)"></td>' +
'<td><a href="/admin/tag/delete/1" class="block w-[30px] h-[30px] leading-[30px] p-[5px] border-[1px] rounded-[4px]" > <i class="icons icon-remove"></i></a ></td>' +
'</tr>';
$("#tb_province").append(tpl);
current_index = index;
}
</script>

View File

@@ -0,0 +1,20 @@
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({
selector: 'textarea#textarea-desc',
height: 350,
menubar: true,
plugins: [
'advlist autolink lists link image charmap print preview anchor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table paste code help wordcount'
],
toolbar: 'undo redo | formatselect | ' +
'bold italic backcolor | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +
'removeformat | help',
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
});
</script>