]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs: Show watch checkbox when pages are created
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Dec 2023 14:36:07 +0000 (14:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Dec 2023 14:36:07 +0000 (14:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/docs/edit.html

index 4e68b0623da443e385ece644f965e9ebbd6db98c..a4be792da378a611e1b503c3cb0113fad6268953 100644 (file)
                                        </div>
                                </div>
 
-                               {% if page and not page.is_watched_by(current_user) %}
-                                       <div class="block">
+                               {% if not page or not page.is_watched_by(current_user) %}
+                                       <div class="field">
                                                <div class="control">
-                                                       <label class="checkbox" for="watch">{{ _("Watch this page") }}</label>
-                                                               <input type="checkbox" name="watch" id="watch" checked>
+                                                       <label class="checkbox">
+                                                               <input type="checkbox" name="watch" checked>
+                                                               {{ _("Watch this page") }}
                                                        </label>
                                                </div>
 
-                                               <small class="form-text text-muted">
+                                               <p class="help">
                                                        {{_("Get notified when this page is changed") }}
-                                               </small>
+                                               </p>
                                        </div>
                                {% end %}