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">
|
2019-05-29 07:41:34 +00:00
|
|
|
{% 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>
|
2019-05-29 07:41:34 +00:00
|
|
|
{% 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 %}
|