diff options
author | 2019-04-12 11:46:39 +0100 | |
---|---|---|
committer | 2019-04-12 11:46:39 +0100 | |
commit | a27d88923c6451d450d9155adb0ccd9fd0dcaa5f (patch) | |
tree | e770515b883a869d97810004fce2565891211074 | |
parent | Small typos in char field (diff) |
Finish initial article creation form
-rw-r--r-- | pydis_site/templates/wiki/create_root.html | 31 | ||||
-rw-r--r-- | pydis_site/templates/wiki/includes/formfield.html | 4 |
2 files changed, 12 insertions, 23 deletions
diff --git a/pydis_site/templates/wiki/create_root.html b/pydis_site/templates/wiki/create_root.html index 0d7662ec..08ee7f82 100644 --- a/pydis_site/templates/wiki/create_root.html +++ b/pydis_site/templates/wiki/create_root.html @@ -19,27 +19,16 @@ {% 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">Create First Article</h2> - <h2 class="title is-2">{% trans "Root article" %}</h2> + <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> <form method="POST" class="form-horizontal"> {% wiki_form form %} @@ -50,7 +39,7 @@ </div> <div class="field-body"> <div class="control"> - <input type="submit" class="button is-primary" name="save_changes" value="Create" /> + <input type="submit" class="button is-primary is-medium" name="save_changes" value="Create" /> </div> </div> </div> diff --git a/pydis_site/templates/wiki/includes/formfield.html b/pydis_site/templates/wiki/includes/formfield.html index 0176f9d4..9f68fb26 100644 --- a/pydis_site/templates/wiki/includes/formfield.html +++ b/pydis_site/templates/wiki/includes/formfield.html @@ -7,7 +7,7 @@ <div class="field-label"> {% if field.label %} <label for="div_{{ field.auto_id }}" class="label {% if field.errors %} is-danger{% endif %}"> - {{ field.label | safe }} {% if field.field.required %}<span class="asterisk">*</span>{% endif %} + {{ field.label | safe }} {% if field.field.required %}<span class="asterisk has-text-danger">*</span>{% endif %} </label> {% endif %} @@ -23,7 +23,6 @@ <div class="control"> {% render_field field %} </div> - </div> {% if field.errors %} <p class="help is-danger"> @@ -32,6 +31,7 @@ {% endfor %} </p> {% endif %} + </div> </div> </div> {% endif %} |