brotherton-erpnext/erpnext/www/lms/macros/hero.html

22 lines
587 B
HTML
Raw Normal View History

2019-05-21 06:35:19 +00:00
{% macro hero(title, description) %}
<div class='container pb-5'>
<h1>{{ title}}</h1>
<p class='lead' style="max-width: 100%;">{{ description }}</p>
<p class="mt-4">
{% if frappe.session.user == 'Guest' %}
2019-05-21 06:35:19 +00:00
<a id="signup" class="btn btn-primary btn-lg" style="width: 170px;" href="/login#signup" hidden=true>Sign Up</a>
{% endif %}
2019-05-21 06:35:19 +00:00
</p>
</div>
{% block script %}
<script type="text/javascript">
frappe.ready(() => {
btn = document.getElementById('signup')
if(frappe.session.user == 'Guest') {
btn.hidden = false;
}
})
</script>
{% endblock %}
{% endmacro %}