This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var send = document.getElementById("send"); | |
send.addEventListener("click", function(){ | |
var content = encodeURIComponent(document.getElementById("content").value); // & | |
if (content.length > 0){ | |
const url = "{% url 'messenger:add' thread.pk %}" + "?content="+content; | |
fetch(url, {'credentials':'include'}).then(response => response.json()).then(function(data){ | |
// Si el mensaje se ha creado correctamente... | |
if (data.created) { | |
// Aqu铆 ir铆a el c贸digo de creaci贸n del mensaje din谩micamente | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Men煤 de paginaci贸n --> | |
{% if is_paginated %} | |
<nav aria-label="Page navigation"> | |
<ul class="pagination justify-content-center"> | |
{% if page_obj.has_previous %} | |
<li class="page-item "> | |
<a class="page-link" href="?page={{ page_obj.previous_page_number }}">«</a> | |
</li> | |
{% else %} | |
<li class="page-item disabled"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Iniciar sesi贸n{% endblock %} | |
{% block content %} | |
<style>.errorlist{color:red;}</style> | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto mb-5"> | |
<form action="" method="post">{% csrf_token %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Borrar p谩gina{% endblock %} | |
{% block content %} | |
{% include 'pages/includes/pages_menu.html'%} | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto"> | |
<div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Crear p谩gina{% endblock %} | |
{% block content %} | |
{% include 'pages/includes/pages_menu.html'%} | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto"> | |
<div> |