Add a begining of API and CSS+JS (static files folder)

This commit is contained in:
Skia
2016-01-08 17:11:38 +01:00
parent f5b07887a5
commit 771056d6e4
8 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,4 @@
{% load renderer %}
{{ text|markdown }}

View File

@ -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>

View File

@ -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 %}