implement index.tpl and and edit.tpl

This commit is contained in:
2026-07-23 04:28:57 +02:00
parent 5d25c38f11
commit a588aadfd8
2 changed files with 24 additions and 7 deletions

View File

@@ -2,12 +2,16 @@
{% block css %}
{% include 'edit-tools/css/dropzone' %}
<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css" rel="stylesheet">
<link href="/static/vendors/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/vendors/highlight/atom-one-dark.min.css" rel="stylesheet">
<link href="/static/css/edit-toolbar.css" rel="stylesheet">
<link href="/static/css/prism.min.css" rel="stylesheet">
<!-- Include the highlight.js library -->
<link href="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css" rel="stylesheet" />
<link href="/static/vendors/quills/quill.snow.css" rel="stylesheet" />
<link href="/static/vendors/quills/resize.css" rel="stylesheet" />
{% endblock %}
{% block body %}
@@ -28,7 +32,7 @@
{% include 'themes/'+config.theme+'/blocs/_'+bloc.type+'.html' %}
<button class="btn btn-success btn-xl pull-right"
<button class="btn btn-success btn-xl btn-modify pull-right"
id="modify-{{ bloc.name }}"
style="margin-top:-7rem; margin-right:1rem;"
hx-get="{% if page %}/{{ page }}{% endif %}/edit/{{ bloc.name }}"
@@ -43,12 +47,23 @@
{% block js %}
<!-- Include the Quill library -->
<!-- Bootstrap core JavaScript -->
<script src="/static/vendors/jquery/jquery.min.js"></script>
<script src="/static/vendors/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="/static/vendors/jquery-easing/jquery.easing.min.js"></script>
<script src="/static/vendors/scrollreveal/scrollreveal.min.js"></script>
<script src="/static/vendors/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="/static/vendors/htmx/htmx.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/cpp.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.js"></script>
<script src="/static/vendors/highlight/highlight.min.js"></script>
<script src="/static/vendors/quills/quill.js"></script>
<script src="/static/vendors/quills/resize.js"></script>
<script src="/static/js/prism.js"></script>
{% endblock %}

View File

@@ -3,9 +3,11 @@
<head>
<!-- Style CSS -->
{% include 'themes/'+config.theme+'/_head.html' %}
{% block css %}
{% endblock %}
{% include 'themes/'+config.theme+'/_head.html' %}
</head>
<body id="page-top">