aboutsummaryrefslogtreecommitdiff
path: root/design/templates/pages/page.html
blob: 9eccaff9c487d0b06bdb13bdcc97d92c9ad1420d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends 'base.html' %}
{% block content %}
<main class="single-col">
    <h1>{{page.title}}</h1>
    {{page.body_html|safe}}
</main>
{% endblock %}

{% block extra %}
{% if login_form %}
<div class="overlay-content" id="js-overlay-content" style="display: none;">
    {% include 'lib/login.html' with form=login_form %}
</div>
{% endif %}
{%endblock%}
{% block jsdomready %}
{% if login_form %}
  // Select your overlay trigger
  var trigger = document.querySelector('#overlay-trigger');
  trigger.addEventListener('click', function(e){
    e.preventDefault();
    novicell.overlay.create({
      'selector': trigger.getAttribute('data-element'),
      'class': 'selector-overlay',
    });
  });
{% endif %}
{%endblock%}