{% extends "base.html" %}

{% block title %}
  {{ project_short_name }} Lexicon NEXUS Export
{% endblock %}

{% block top %}
  <h1>NEXUS Export</h1>
{% endblock %}

{% block content %}
  <div class="row">
    <div class="col-md-6">
      <div class="well">
        Download a NEXUS file from a predefined language list. Specify the list of
        languages, the list of meanings, and the level of coding reliability.
      </div>
      <form action="" method="POST">
        {% csrf_token %}
        <fieldset>
          <legend>Export data</legend>
          <table>
            {{ form.as_table }}
          </table>
          <input type="submit" name="submit" value="Submit" class="btn btn-primary">
        </fieldset>
      </form>
    </div>
  </div>
{% endblock %}

{% block controls %}
  {% include "snippets/defaultSelections.html" %}
  {% include "snippets/go_to.html" %}
  {# include "snippets/change_sort_order.html" #}
{% endblock %}
{# vim: set ft=htmldjango nowrap shiftwidth=2 expandtab: #}

{% extends "base.html" %}

{% block title %}
  {{ project_short_name }} Lexicon NEXUS Export
{% endblock %}

{% block top %}
  <h1>NEXUS Export</h1>
{% endblock %}

{% block content %}
  <div class="row">
    <div class="col-md-6">
      {% if user.is_authenticated and user.is_staff %}
        <div class="well">
          Download a NEXUS file from a predefined language list. Specify the list of
          languages, the list of meanings, and the level of coding reliability.
        </div>
        <form action="" method="POST">
          {% csrf_token %}
          <fieldset>
            <legend>Export data</legend>
            <table>
              {{ form.as_table }}
            </table>
            <input type="submit" name="submit" value="Submit" class="btn btn-primary">
          </fieldset>
        </form>
      {% else %}
        <div class="well">
          Sorry, nothing to see here.
        </div>
      {% endif %}
    </div>
  </div>
{% endblock %}

{% block controls %}
  {% include "snippets/defaultSelections.html" %}
  {% include "snippets/go_to.html" %}
  {# include "snippets/change_sort_order.html" #}
{% endblock %}
{# vim: set ft=htmldjango nowrap shiftwidth=2 expandtab: #}

Make nexus export only visible for staff
Make nexus export only visible for staff
