Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Attributes - file upload, fixed problem with download button
DanielŻuławskib250992092ab
diff --git a/src/Web/Grand.Web/Views/Shared/_CheckoutAttributes.cshtml b/src/Web/Grand.Web/Views/Shared/_CheckoutAttributes.cshtmlindex bca2603f7..d28479d6d 100644--- a/src/Web/Grand.Web/Views/Shared/_CheckoutAttributes.cshtml+++ b/src/Web/Grand.Web/Views/Shared/_CheckoutAttributes.cshtml@@ -86,11 +86,9 @@</template><input class="hidden-upload-input" type="hidden" onchange="checkoutAttributeChange()" :id="'checkout_attribute_' + attribute.Id" :name="'checkout_attribute_' + attribute.Id" v-model="attribute.DefaultValue" :value="attribute.DefaultValue" /><div id="download-message" class="alert my-2" style="display:none;"></div>- <div id="'checkout_attribute_' + attribute.Id + 'downloadurl'" class="download-file" style="display:none;">- <a class="btn btn-outline-info">- Download- </a>- </div>+ <a :id="'checkout_attribute_' + attribute.Id + 'downloadurl'" class="download-file btn btn-outline-info" style="display:none;">+ Download+ </a><script asp-location="Footer">function uploadFile(e) {@@ -118,7 +116,7 @@messageContainer.classList.add('alert-info');messageContainer.innerText = message;- downloadBtn.style.display = "block";+ downloadBtn.style.display = "inline-block";downloadBtn.setAttribute('href', downloadUrl);} else {diff --git a/src/Web/Grand.Web/Views/Shared/_ContactAttributes.cshtml b/src/Web/Grand.Web/Views/Shared/_ContactAttributes.cshtmlindex dbf4247c3..3923ff729 100644--- a/src/Web/Grand.Web/Views/Shared/_ContactAttributes.cshtml+++ b/src/Web/Grand.Web/Views/Shared/_ContactAttributes.cshtml@@ -133,11 +133,9 @@</template><input class="hidden-upload-input" type="hidden" onchange="contactAttributeChange()" id="@(controlId)" name="@(controlId)" /><div id="download-message" class="alert my-2" style="display:none;"></div>- <div id="@(controlId)downloadurl'" class="download-file" style="display:none;">- <a class="btn btn-outline-info">- Download- </a>- </div>+ <a id="@(controlId)downloadurl'" class="download-file btn btn-outline-info" style="display:none;">+ Download+ </a><script asp-location="Footer">function uploadFile(e) {var formData = new FormData();@@ -162,7 +160,7 @@messageContainer.classList.add('alert-info');messageContainer.innerText = message;- downloadBtn.style.display = "block";+ downloadBtn.style.display = "inline-block";downloadBtn.setAttribute('href', downloadUrl);} else {