{% extends "staticpages/base.html" %}
{% load url from future %}
{% load i18n %}

{% block section_body %}
<div class="staticpages settings-container centered">
  <div class="hd">
    <h2>{% trans "Legal Pages" %}</h2>
  </div>
  <div class="bd">
    {% include 'staticpages/admin/_table.html' with object_list=legalpages %}
    <a class="btn" href="{% url 'staticpages.create' 'legal' %}">{% trans 'Add Legal Page' %}</a>
  </div>
  <div class="hd">
    <h2>{% trans "Regular Pages" %}</h2>
  </div>
  <div class="bd">
    {% include 'staticpages/admin/_table.html' with object_list=staticpages %}
    <a class="btn" href="{% url 'staticpages.create' 'static' %}">{% trans 'Add Regular Page' %}</a>
  </div>
</div>
{% endblock %}

{% block scripts_extra %}
{{ block.super }}
<script type="text/javascript">
$(function ($) {
  PTL.common.updateRelativeDates();
  setInterval(PTL.common.updateRelativeDates, 6e4);
});
</script>
{% endblock %}
