]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs/confirm-restore: fix restore page
authorRico Hoppe <rico.hoppe@ipfire.org>
Sat, 11 May 2024 13:52:20 +0000 (13:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 May 2024 10:04:07 +0000 (10:04 +0000)
* this fixes bug 13538
* used wrong block, now uses right block

Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/docs/confirm-restore.html

index 7df1a4b020a04c94d8d5d159311c25385796bbb7..06557f0c38287b42989c6142f65f1b4b76ac2c56 100644 (file)
@@ -2,7 +2,7 @@
 
 {% block title %}{{ _("Restore %s") % page.page }}{% end block %}
 
-{% block content %}
+{% block container %}
        <section class="hero is-light">
                <div class="hero-body">
                        <div class="container">
 
        <div class="container">
                <section class="section">
-                       <p>
-                               {{ _("Do you really want to restore this page to its revision from %s?") % locale.format_date(page.timestamp) }}
-                       </p>
+                       <div class="block">
+                               <p>
+                                       {{ _("Do you really want to restore this page to its revision from %s?") % locale.format_date(page.timestamp) }}
+                               </p>
+                       </div>
 
-                       <form action="/docs/_restore" method="POST">
-                               {% raw xsrf_form_html() %}
+                       <div class="block">
+                               <form action="/docs/_restore" method="POST">
+                                       {% raw xsrf_form_html() %}
 
-                               <input type="hidden" name="path" value="{{ page.page }}">
-                               <input type="hidden" name="revision" value="{{ page.timestamp.isoformat() }}">
+                                       <input type="hidden" name="path" value="{{ page.page }}">
+                                       <input type="hidden" name="revision" value="{{ page.timestamp.isoformat() }}">
 
-                               <div class="control">
-                                       <input class="input" type="text" name="comment"
-                                               placeholder="{{ _("Comment") }}">
-                               </div>
+                                       <div class="control">
+                                               <input class="input" type="text" name="comment"
+                                                       placeholder="{{ _("Comment") }}">
+                                       </div>
 
-                               <button type="submit" class="button is-warning">
-                                       {{ _("Restore") }}
-                               </button>
-                       </form>
+                                       <div class="control">
+                                               <button type="submit" class="button is-warning">
+                                                       {{ _("Restore") }}
+                                               </button>
+                                       </div>
+                               </form>
+                       </div>
                </section>
        </div>
 {% end block %}