diff options
Diffstat (limited to 'pydis_site/templates/wiki/create_root.html')
-rw-r--r-- | pydis_site/templates/wiki/create_root.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pydis_site/templates/wiki/create_root.html b/pydis_site/templates/wiki/create_root.html new file mode 100644 index 00000000..73a14ae0 --- /dev/null +++ b/pydis_site/templates/wiki/create_root.html @@ -0,0 +1,40 @@ +{% extends "wiki/base.html" %} +{% load wiki_tags i18n sekizai_tags static %} + +{% block wiki_pagetitle %}{% trans "Create root article" %}{% endblock %} + +{% block wiki_contents %} + + {% addtoblock "js" %} + {% for js in editor.Media.js %} + <script type="text/javascript" src="{% static js %}"></script> + {% endfor %} + {% endaddtoblock %} + + {% addtoblock "css" %} + {% for media, srcs in editor.Media.css.items %} + {% for src in srcs %} + <link rel="stylesheet" media="{{ media }}" href="{% static src %}" /> + {% endfor %} + {% endfor %} + {% endaddtoblock %} + + <h1>{% trans "Congratulations!" %}</h1> + <p class="lead"> + {% trans "You have django-wiki installed... but there are no articles. So it's time to create the first one, the root article." %} + {% trans "In the beginning, it will only be editable by administrators, but you can define permissions after." %} + </p> + + <h2 class="page-header">{% trans "Root article" %}</h2> + + <form method="POST" class="form-horizontal"> + {% wiki_form form %} + <div class="form-group form-actions"> + <div class="col-lg-2"></div> + <div class="col-lg-10"> + <input type="submit" name="save_changes" value="{% trans "Create root" %} »" class="btn btn-primary btn-lg" /> + </div> + </div> + </form> + +{% endblock %} |