push 11/4
This commit is contained in:
@@ -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 %}
|
||||
15
template/javascript/shipping2.html
Normal file
15
template/javascript/shipping2.html
Normal 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>
|
||||
20
template/javascript/tag.html
Normal file
20
template/javascript/tag.html
Normal 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>
|
||||
Reference in New Issue
Block a user