diff --git a/app/controllers/api/templates_controller.rb b/app/controllers/api/templates_controller.rb index 7d385c2c..6675a684 100644 --- a/app/controllers/api/templates_controller.rb +++ b/app/controllers/api/templates_controller.rb @@ -17,7 +17,7 @@ module Api schema: [%i[attachment_uuid name]], submitters: [%i[name uuid]], fields: [[:uuid, :submitter_uuid, :name, :type, :required, - { options: [], areas: [%i[x y w h attachment_uuid page]] }]]) + { options: [], areas: [%i[x y w h cell_w attachment_uuid page]] }]]) end end end diff --git a/app/javascript/application.js b/app/javascript/application.js index 2ee408b5..a12535d2 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -41,8 +41,6 @@ window.customElements.define('template-builder', class extends HTMLElement { template: reactive(JSON.parse(this.dataset.template)) }) - this.app.config.globalProperties.$t = (key) => TemplateBuilder.i18n[key] || key - this.app.mount(this.appElem) this.appendChild(this.appElem) diff --git a/app/javascript/submission_form/area.vue b/app/javascript/submission_form/area.vue index 711737c6..7aa500ff 100644 --- a/app/javascript/submission_form/area.vue +++ b/app/javascript/submission_form/area.vue @@ -82,6 +82,19 @@ :class="{ '!w-auto !h-full': area.w > area.h, '!w-full !h-auto': area.w <= area.h }" /> +
+
+ {{ char }} +
+