diff --git a/print_designer/print_designer/page/print_designer/jinja/macros/spantag.html b/print_designer/print_designer/page/print_designer/jinja/macros/spantag.html index 587c202..a96ffe9 100644 --- a/print_designer/print_designer/page/print_designer/jinja/macros/spantag.html +++ b/print_designer/print_designer/page/print_designer/jinja/macros/spantag.html @@ -15,7 +15,11 @@ {%- set value = _(frappe.db.get_value(field.doctype, doc[field.parentField], field.fieldname)) -%} {{ frappe.format(value, {'fieldtype': field.fieldtype, 'options': field.options}) }} {%- elif row -%} + {%- if field.fieldtype == "Image" and row.get(field['options']) -%} + + {%- else -%} {{row.get_formatted(field.fieldname)}} + {%- endif -%} {%- else -%} {{doc.get_formatted(field.fieldname)}} {%- endif -%} diff --git a/print_designer/public/images/print-designer-logo.svg b/print_designer/public/images/print-designer-logo.svg index 9517a34..ee3f5ce 100644 --- a/print_designer/public/images/print-designer-logo.svg +++ b/print_designer/public/images/print-designer-logo.svg @@ -1,26 +1,18 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - diff --git a/print_designer/public/js/print_designer/App.vue b/print_designer/public/js/print_designer/App.vue index 248d929..8694a5e 100644 --- a/print_designer/public/js/print_designer/App.vue +++ b/print_designer/public/js/print_designer/App.vue @@ -111,8 +111,8 @@ watchEffect(() => { justify-content: space-between; margin: 0; cursor: default; - --primary: #6f5f35; - --primary-color: #6f5f35; + --primary: #7b4b57; + --primary-color: #7b4b57; .app-sections { flex: 1; height: calc(100vh - var(--navbar-height)); diff --git a/print_designer/public/js/print_designer/PropertiesPanelState.js b/print_designer/public/js/print_designer/PropertiesPanelState.js index f631fd7..c9e9b3d 100644 --- a/print_designer/public/js/print_designer/PropertiesPanelState.js +++ b/print_designer/public/js/print_designer/PropertiesPanelState.js @@ -704,6 +704,7 @@ export const createPropertiesPanel = () => { fieldtype: "Int", label: "No", options: undefined, + tableName: currentEL["table"], }; if (value && currentEL) { currentEL["table"] = MainStore.metaFields.find( @@ -755,6 +756,9 @@ export const createPropertiesPanel = () => { dlKeys[index] ], ]; + col.dynamicContent.forEach((dc) => { + dc.tableName = currentEL["table"].fieldname; + }); col.label = col.dynamicContent[0].label || col.dynamicContent[0].fieldname; diff --git a/print_designer/public/js/print_designer/components/base/BaseDynamicTextSpanTag.vue b/print_designer/public/js/print_designer/components/base/BaseDynamicTextSpanTag.vue index 1ce3d5a..5edd3b5 100644 --- a/print_designer/public/js/print_designer/components/base/BaseDynamicTextSpanTag.vue +++ b/print_designer/public/js/print_designer/components/base/BaseDynamicTextSpanTag.vue @@ -62,6 +62,7 @@