aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/move.html
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-18 17:35:58 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-18 17:35:58 +0100
commit9dd3a0b3d87a0fe3162a403b891aab1e26dfffe1 (patch)
tree2b69fb2e34fe438bc8b391c8820624a0dae707e7 /pydis_site/templates/wiki/move.html
parentPrevent accidental submission of link plugin form (diff)
Delete/Error/Move/Permission Denied pages
Diffstat (limited to 'pydis_site/templates/wiki/move.html')
-rw-r--r--pydis_site/templates/wiki/move.html82
1 files changed, 47 insertions, 35 deletions
diff --git a/pydis_site/templates/wiki/move.html b/pydis_site/templates/wiki/move.html
index d93a3675..f2c83485 100644
--- a/pydis_site/templates/wiki/move.html
+++ b/pydis_site/templates/wiki/move.html
@@ -5,46 +5,58 @@
{% block wiki_contents_tab %}
-<div class="row">
- <div class="col-lg-10">
- <form method="POST" class="form-horizontal" id="article_move_form">
- {% wiki_form form %}
-
- <div class="btn-group" id="dest_selector">
- <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
- <span class="dest_selector_title"></span>
- <span class="caret"></span>
- </a>
- <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
- {% with current_path=root_path %}{% include "wiki/includes/move_tree.html" %}{% endwith %}
- </ul>
- </div>
- <p class="col-lg-offset-2">
+ <div class="message is-warning">
+ <div class="message-body">
+ {% if urlpath.get_descendants %}
{% blocktrans count cnt=urlpath.get_descendants.count trimmed %}
- {{ cnt }} nested article will also be moved.<br>
- Be careful, links to this article and {{ cnt }} article nested
- in this hierarchy will not be updated.
+ <p>
+ Please note that this article has {{ cnt }} child article. If you
+ decide to move this article, then links to any child articles will
+ not be updated.
+ </p>
{% plural %}
- {{ cnt }} nested articles will also be moved.<br>
- Be careful, links to this article and {{ cnt }} articles nested
- in this hierarchy will not be updated.
+ <p>
+ Please note that this article has {{ cnt }} child articles. If you
+ decide to move this article, then links to any child articles will
+ not be updated.
+ </p>
{% endblocktrans %}
+ {% endif %}
+ <p>
+ Remember: Any links to this article will not be automatically updated. You
+ may leave behind a redirect page by specifying that option below, but these
+ are temporary - so it's better to update the links directly.
</p>
- <div class="form-group form-actions">
- <div class="col-lg-12 col-lg-offset-2">
- <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn btn-default">
- <span class="fa fa-arrow-left"></span>
- {% trans "Go back" %}
- </a>
- <button class="btn btn-large btn-primary" type="submit" name="move" id="id_move">
- <span class="fa fa-random"></span>
- {% trans "Move article" %}
- </button>
- </div>
- </div>
- </form>
+ </div>
</div>
-</div>
+
+<form method="POST" class="form-horizontal" id="article_move_form">
+ {% wiki_form form %}
+
+ {# Not gonna lie, I have no idea what this is or what it's for #}
+ <div class="btn-group" id="dest_selector">
+ <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
+ <span class="dest_selector_title"></span>
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
+ {% with current_path=root_path %}{% include "wiki/includes/move_tree.html" %}{% endwith %}
+ </ul>
+ </div>
+
+ <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="button is-white">
+ <span class="icon">
+ <i class="fas fa-arrow-left"></i>
+ </span>
+ <span>Go back</span>
+ </a>
+ <button class="button is-warning" type="submit" name="move" id="id_move">
+ <span class="icon">
+ <i class="fas fa-random"></i>
+ </span>
+ <span>Move article</span>
+ </button>
+</form>
{% addtoblock "js" %}