fix: create course button and search bar width

This commit is contained in:
Jannat Patel
2022-08-12 12:34:04 +05:30
parent 64dc76d616
commit 5d6dc16a19
5 changed files with 56 additions and 9 deletions

View File

@@ -180,8 +180,8 @@
</label>
<div class="mt-4">
<a class="btn btn-secondary btn-md" href=""> {{ _("Back to Lesson") }} </a>
<button class="btn btn-primary btn-md btn-lesson pull-right"> {{ _("Save") }} </button>
<button class="btn btn-primary btn-md btn-lesson pull-right ml-2"> {{ _("Save") }} </button>
<button class="btn btn-secondary btn-md pull-right btn-back"> {{ _("Back to Lesson") }} </button>
<div class="attachments-parent">
<div class="attachment-controls">

View File

@@ -64,6 +64,10 @@ frappe.ready(() => {
window.location.href = `${window.location.href}?edit=1`;
});
$(".btn-back").click((e) => {
window.location.href = window.location.href.split("?")[0];
})
$(document).on("click", ".copy-link", (e) => {
frappe.utils.copy_to_clipboard($(e.currentTarget).data("link"));
$(".attachments").collapse("hide");