feat: new-sign-up-form, request invite widget, request invite tests, get_sketches with owner

This commit is contained in:
pateljannat
2021-05-03 12:33:31 +05:30
parent cd1d2067ad
commit 565787eeb6
11 changed files with 124 additions and 38 deletions

View File

@@ -12,9 +12,7 @@
<div class="jumbotron">
<h1 class="display-4">Guided online courses, with a mentor at your back.</h1>
<p class="lead">Hands-on online courses designed by experts, delivered by passionate mentors.</p>
<p class="lead">
<a class="btn btn-primary btn-lg" href="#" role="button">Request Invite</a>
</p>
{{ widgets.RequestInvite() }}
</div>
</div>
</section>

View File

@@ -0,0 +1,19 @@
frappe.ready(() => {
$("#submit").click(function () {
frappe.call({
method: "community.lms.doctype.invite_request.invite_request.create_invite_request",
args: {
invite_email: $("#invite_email").val()
},
callback: (data) => {
if (data.message == "OK") {
$("#invite-request-form").hide();
var message = `<div>
<p class="lead">Thanks for your interest in Mon School. We have recorded your interest and we will get back to you shortly.</p>
</div>`;
$(".jumbotron").append(message);
}
}
})
})
})