[ADD] BASE: Option to download the import template from the same view of import section
This commit is contained in:
@@ -341,7 +341,7 @@ $("#bulkHolidaysDelete").click(function (e) {
|
||||
});
|
||||
});
|
||||
|
||||
$("#holidaysInfoImport").click(function (e) {
|
||||
$(".holidaysInfoImport").click(function (e) {
|
||||
e.preventDefault();
|
||||
var languageCode = null;
|
||||
getCurrentLanguageCode(function (code) {
|
||||
|
||||
@@ -76,8 +76,7 @@
|
||||
<li class="oh-dropdown__item">
|
||||
<a
|
||||
href="#"
|
||||
class="oh-dropdown__link"
|
||||
id="holidaysInfoImport"
|
||||
class="oh-dropdown__link holidaysInfoImport"
|
||||
data-toggle="oh-modal-toggle"
|
||||
data-target="#holidayImport"
|
||||
>{% trans "Import" %}</a
|
||||
@@ -234,6 +233,18 @@
|
||||
id="importHoliday"
|
||||
required
|
||||
/>
|
||||
<div class="d-inline float-end">
|
||||
<a
|
||||
href="#"
|
||||
style="text-decoration:none; display: inline-block;"
|
||||
class="oh-dropdown__link holidaysInfoImport"
|
||||
data-toggle="oh-modal-toggle"
|
||||
data-target="#holidayImport"
|
||||
>
|
||||
<ion-icon name="cloud-download-outline" style="font-size:20px; vertical-align: middle;"></ion-icon>
|
||||
<span>{% trans "Download Template" %}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
onclick="
|
||||
|
||||
Reference in New Issue
Block a user