Skip to content

Commit

Permalink
Добавление причин внесения в карточку записи
Browse files Browse the repository at this point in the history
  • Loading branch information
li0ard committed Jul 7, 2024
1 parent 8d27235 commit a068ad1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/gridjs/6.0.6/gridjs.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/[email protected]/l10n/dist/l10n.umd.js"></script>
<script src="https://momentjs.com/downloads/moment.min.js"></script>

<style>
@import url("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css");
Expand Down Expand Up @@ -108,6 +109,7 @@ <h2 class="accordion-header">
</div>
</div>
<div class="noprint modal-footer">
<a href="" target="_blank" id="press_link"><button type="button" class="btn btn-primary">Причины внесения (β)</button></a>
<button type="button" onclick="window.print()" class="btn btn-primary">Печать</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
</div>
Expand Down Expand Up @@ -252,6 +254,8 @@ <h2 class="accordion-header">
else {
document.getElementById("reg").innerHTML = `-`
}

document.getElementById("press_link").setAttribute("href", `https://minjust.gov.ru/ru/events/list/?words=О+реестре+иностранных+агентов&start_date=${data[11].data.replaceAll(".", "-")}&end_date=${moment(data[11].data, "DD.MM.YYYY").add(6, "days").format("DD-MM-YYYY")}`)
new bootstrap.Modal("#card").show()
}
}, 'Просмотр')
Expand Down

0 comments on commit a068ad1

Please sign in to comment.