aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/create_root.html
blob: 0d7662ecc9458d9cdd2d6471942f807ac29a7fee (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{% extends "wiki/base.html" %}
{% load wiki_tags crispy_forms_tags i18n sekizai_tags static %}

{% block wiki_pagetitle %}{% trans "Create root article" %}{% endblock %}

{% block head %}
  {{ block.super }}

  {% for js in editor.Media.js %}
    <script type="text/javascript" src="{% static js %}"></script>
  {% endfor %}

  {% for media, srcs in editor.Media.css.items %}
    {% for src in srcs %}
      <link rel="stylesheet" media="{{ media }}" href="{% static src %}" />
    {% endfor %}
  {% endfor %}
{% endblock %}


{% block wiki_contents %}
  <div class="columns">
    <div class="column is-two-thirds is-offset-2">
      <article class="message is-primary">
        <div class="message-header">
          <p>Create first article</p>
        </div>
        <div class="message-body">
          <p>
            Please create the root article. This article will be available at the root of your wiki,
            so consider creating a landing page here.
          </p>
          <p>
            Please note that, to begin with, this article may only be modified by wiki administrators.
            Once it's been created, you may edit the permissions and set up plugins, metadata, and so on.
          </p>
        </div>
      </article>
    </div>
  </div>

  <h2 class="title is-2">{% trans "Root article" %}</h2>

  <form method="POST" class="form-horizontal">
    {% wiki_form form %}

    <div class="field is-horizontal">
      <div class="field-label">
        {# Empty for spacing #}
      </div>
      <div class="field-body">
        <div class="control">
          <input type="submit" class="button is-primary" name="save_changes" value="Create" />
        </div>
      </div>
    </div>
  </form>

{% endblock %}