From 38253972389e26cb85edf23e2efa4c8c1c1a0472 Mon Sep 17 00:00:00 2001 From: Donghuang Date: Fri, 24 Jun 2022 23:21:37 +0800 Subject: [PATCH] remove bug fixes --- .../templates/customer-application/create.hbs | 28 +++++++++---------- web/app/templates/local-product/create.hbs | 4 +-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/web/app/templates/customer-application/create.hbs b/web/app/templates/customer-application/create.hbs index 23c0ac2..e8414ce 100644 --- a/web/app/templates/customer-application/create.hbs +++ b/web/app/templates/customer-application/create.hbs @@ -16,23 +16,23 @@
- {{#each model.images as |image i|}} + {{#each model.images as |image index|}}
- {{input name=(concat 'imageTitles[' i ']') class='width-80' placeholder='Image title' value=image.title}} + {{input name=(concat 'imageTitles[' index ']') class='width-80' placeholder='Image title' value=image.title}}   - + {{#a-btn class="red" data-rel="tooltip" title="Remove Image" click=(route-action 'removeImage' image)}} - + {{/a-btn}}
- {{image-input name=(concat 'images[' i ']') image=image}} + {{image-input name=(concat 'images[' index ']') image=image}}
{{/each}}
@@ -44,24 +44,24 @@
- {{#each model.attachments as |attachment i|}} + {{#each model.attachments as |attachment index|}}
- {{input name=(concat 'attachmentTitles[' i ']') class='width-80' placeholder='Attachment name' value=image.title}} + {{input name=(concat 'attachmentTitles[' index ']') class='width-80' placeholder='Attachment name' value=image.title}}   - + {{#a-btn class="red" data-rel="tooltip" title="Remove Attachment" click=(route-action 'removeAttachment' attachment)}} - + {{/a-btn}}
{{!input type='file'}} - {{file-input name=(concat 'attachments[' i ']') file=attachment}} + {{file-input name=(concat 'attachments[' index ']') file=attachment}}
{{/each}}
diff --git a/web/app/templates/local-product/create.hbs b/web/app/templates/local-product/create.hbs index 6457fe5..e64a507 100644 --- a/web/app/templates/local-product/create.hbs +++ b/web/app/templates/local-product/create.hbs @@ -20,7 +20,7 @@
{{input name=(concat 'imageTitles[' index ']') class='width-80' placeholder='Image title' value=image.title}}   - {{#a-btn data-rel="tooltip" title="Remove Image" click=(route-action 'removeImage' image)}} + {{#a-btn class="red" data-rel="tooltip" title="Remove Image" click=(route-action 'removeImage' image)}} {{/a-btn}}
@@ -48,7 +48,7 @@
{{input name=(concat 'attachmentTitles[' index ']') class='width-80' placeholder='Attachment name' value=image.title}}   - {{#a-btn data-rel="tooltip" title="Remove Attachment" click=(route-action 'removeAttachment' attachment)}} + {{#a-btn class="red" data-rel="tooltip" title="Remove Attachment" click=(route-action 'removeAttachment' attachment)}} {{/a-btn}}