]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Add link to edit sledrun JSON.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 21 Feb 2021 13:52:50 +0000 (14:52 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 21 Feb 2021 13:52:50 +0000 (14:52 +0100)
wradmin/templates/json_editor.html
wradmin/templates/rodelbahn_view.html

index e2a933a881f15b3816f7b283105fb13ed8e40c12..54996393fa8253bb3c7477bafe14064a21a15329 100644 (file)
@@ -10,6 +10,9 @@
 {% endblock %}
 
 {% block content %}
+
+<p><strong>Achtung:</strong> Das bearbeitete JSON wird derzeit nicht gespeichert. Es muss manuell eingetragen werden.</p>
+
 <div id='editor_holder'></div>
 <button id='submit'>Submit (console.log)</button>
 
index 7559fa6db46488bc9120bc2223d8d8a69bb85fe0..bf9c3831560c266c2c320bda23b484f148c2574c 100644 (file)
@@ -92,6 +92,7 @@
     <li><a href="https://json-editor.github.io/json-editor/">Allgemeiner JSON Editor (mit Schema)</a></li>
     <li><a href="{{h.sledrun_json_url(sledding.page_title, False)}}">JSON der Rodelbahn (falls vorhanden)</a></li>
     <li><a href="{{h.sledrun_json_schema_url(False)}}">JSON Schema für Rodelbahnen</a></li>
+    <li><a href="{{url_for('rodelbahn_json_edit', id=sledding.page_id)}}">JSON Schema der Rodelbahnen bearbeiten</a></li>
     {% if sledding.forum_id %}
     <li><a href="{{h.forum(sledding.forum_id)}}">Zeige im Forum</a></li>
     {% endif %}