mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Add a begining of API and CSS+JS (static files folder)
This commit is contained in:
4
core/templates/core/api/markdown.html
Normal file
4
core/templates/core/api/markdown.html
Normal file
@ -0,0 +1,4 @@
|
||||
{% load renderer %}
|
||||
|
||||
{{ text|markdown }}
|
||||
|
@ -1,8 +1,12 @@
|
||||
{% load staticfiles %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
{% block head %}
|
||||
<title>{% block title %}Bienvenue sur le Sith de l'AE!{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{% static 'core/style.css' %}">
|
||||
<script src="{% static 'core/script.js' %}"></script>
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -1,10 +1,15 @@
|
||||
{% extends "core/page.html" %}
|
||||
|
||||
{% block head %}
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
||||
{% block page %}
|
||||
<h2>Edit page</h2>
|
||||
<form action="{% url 'core:page_edit' page_name=page.get_full_name %}" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
{# TODO: NOW THAT WE HAVE JAVASCRIPT, MAKE A PREVISUALISATION BUTTON USING api/markdown?text=guyguyguy #}
|
||||
<p><input type="submit" value="Save!" /></p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user