-
Notifications
You must be signed in to change notification settings - Fork 0
/
fc-add.html
40 lines (40 loc) · 1.03 KB
/
fc-add.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% extends "base.html" %}
{% block title %}Create Fortune Cookie{% endblock %}
{% block script %}
$(document).ready(function() {
$('#preview').click(function() {
$('#fc').ajaxSubmit({
url: '/fc/-/create'
});
return false;
});
$('#create').click(function() {
$('#fc').ajaxSubmit({
url: '/fc'
});
return false;
});
});
{% endblock %}
{% block content %}
<h2>New Fortune Cookie</h2>
<div>
<p>Please enter information for a new fortune cookie!</p>
<form id="fc" action="#" method="post">
<fieldset>
<legend>Basic Information</legend>
<div><textarea name="content" rows="5" width="80">{{ content }}</textarea></div>
<div>lang</div>
<div>Add category+rating</div>
</fieldset>
<fieldset>
<legend>Extra Information</legend>
<div>...</div>
</fieldset>
<div>
<input id="preview" type="submit" value="Preview">
<input id="create" type="submit" value="Create">
</div>
</form>
</div>
{% endblock %}