formha/templates/h_tmp_usr/e_edit_post.html

44 lines
1.5 KiB
HTML

{% extends 'h_tmp_usr/z_tmp.html' %}
{% block css %}
<!-- {# estilos editor de texto #} -->
<link rel="stylesheet" href="{{ url_for('static', filename='h_tmp_user/text_editor.css' ) }}">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/summernote@0.9.0/dist/summernote-lite.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/summernote@0.9.0/dist/summernote-lite.min.js"></script>
{% endblock css %}
{% block body %}
<h2 class="display-5 mb-4">Editar Publicación</h2>
<form id="post-form" data-aos="fade-right" data-aos-delay="0" data-aos-duration="800">
<input type="text" name="title" class="form-control" placeholder="Título de la publicación">
<div id="summernote"></div>
<button type="submit" class="btn btn-success" id="btn-submit"><i class="bi bi-file-earmark-richtext-fill"></i> Enviar Cambios</button>
<a class="btn btn-warning" href="{{ url_for('my_posts') }}" role="button" id="btn-cancel">Cancelar</a>
</form>
{% endblock body %}
{% block js %}
<!-- {# flecha ir hasta arriba #} -->
{% include 'z_comps/arrow_to_up.html' %}
<!-- {# aos script #} -->
{% include 'z_comps/aos_script.html' %}
<script type="module" src="{{ url_for( 'static', filename='h_tmp_user/edit-post.js' ) }}"></script>
<script>
let data = {{ data | tojson | safe }};
let id_post = {{ id_post }};
</script>
{% endblock js %}