Dénote

Dénote Git Source Tree

Root/denote/templates/user_template.html

1{% extends "base.html" %}
2
3{% block content %}
4<div class="template">
5 {% if template != None %}
6 <form action="/template/{{ template.id }}" method="post">{% csrf_token %}
7 {% else %}
8 <form action="/template/add" method="post">{% csrf_token %}
9 {% endif %}
10 {{ template_form.as_p }}
11 Category <input name="category" list="all_categories" {% if template.category != None %} value="{{ template.category.name }}" {% endif %}>
12 <datalist id="all_categories">
13{% for category in categories %}
14<option value="{{ category.name }}"></option>
15{% endfor %}
16 </datalist><br/>
17 {% if template != None %}
18 <input type="submit" name="edit" value="Edit" />
19 <input type="submit" name="delete" value="Delete" onclick="return confirm('Do you really want to delete this template ?')"/>
20 {% else %}
21 <input type="submit" name="add" value="Add"/>
22 {% endif %}
23 <input type="submit" name="cancel" value="Cancel"/>
24 </form>
25 <br/>
26 <b>Markdown syntax</b><br /><br />
27 <table>
28 <tr>
29 <td class="markdown_help">
30<pre style="display:inline">_italic_</pre> <span style="font-style:italic">italic</span><br/>
31<pre style="display:inline">**bold**</pre> <span style="font-weight:bold">bold</span><br/>
32<pre style="display:inline">~~line through~~</pre> <span style="text-decoration:line-through">line through</span><br/>
33<pre style="display:inline">~underline~</pre> <span style="text-decoration:underline">underline</span><br/>
34<pre style="display:inline">>Citation</pre><br/>
35<pre>
36 * Unordered list
37 * Second element
38</pre>
39<ul>
40 <li>Unordered list
41 <li>Second element
42</ul>
43<pre>
44 1. Ordered list
45 1. Second element
46</pre>
47<ol>
48 <li>Ordered list
49 <li>Second element
50</ol>
51<pre style="display:inline">![Picture](https://bits.wikimedia.org/images/wikimedia-button.png)</pre><img src="https://bits.wikimedia.org/images/wikimedia-button.png" alt="Picture"/><br/>
52<pre style="display:inline">#[Inline Picture](https://bits.wikimedia.org/images/wikimedia-button.png)</pre><img src="https://bits.wikimedia.org/images/wikimedia-button.png" alt="Picture"/><br/>
53<pre style="display:inline">[Link](http://www.wikipedia.org)</pre> <a href="http://www.wikipedia.org">Link</a><br/><br/>
54<pre>
55 Code : 4 whitespaces ahead OR
56 ```language
57 Code
58 ```
59</pre>
60 </td>
61 <td>
62<pre># Title # or
63 Title
64 =====</pre>
65<h1>Title</h1>
66<pre>## Sub title ## or
67 Sub title
68 ---------</pre>
69<h2>Sub title</h2>
70<pre>### Sub sub title ###</pre>
71<h3>Sub sub title</h3>
72 </td>
73 </tr>
74 </table>
75 </div>
76</div>
77{% endblock %}

Archive Download this file

Branches

Tags