-
Notifications
You must be signed in to change notification settings - Fork 0
/
editauction.html
54 lines (40 loc) · 1.99 KB
/
editauction.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{% extends "base.html" %}
{% load custom_filters %}
{% block title %}{% if key %}Edit{% else %}New{% endif %} Auction Item{% endblock %}
{% block head %}
<style type="text/css">
p.description { margin-bottom: 0.5em; }
.hints { font-size: 80%; color: #484848; }
.hints p { margin-bottom: 0; }
.hints ul { margin: 0 0 1.5em 0; padding: 0 0 0 1.5em; }
.hints code { color: #157d15; }
</style>
{% endblock %}
{% block content %}
<h2>{% if key %}Edit{% else %}New{% endif %} {% if which_auction == 'l' %}Live{% else %}Silent{% endif %} Auction Item</h2>
<form action="{{ upload_url }}" method="post" enctype="multipart/form-data" accept-charset="utf-8">
{% if item.image %}
<img src="/img/{{ item.key.id }}" alt="" width="{{ item.image_width }}" height="{{ item.image_height }}">
{% endif %}
<p>{% if item.image %}Replace{% else %}Upload{% endif %} photo (max. 32MB): <input type="file" name="file"></p>
<p class="description">Item Description:</p>
<textarea rows="12" cols="60" name="description">{{ item.description }}</textarea>
<div class="hints">
<p>Formatting hints:</p>
<ul>
<li>For a new paragraph, type a blank line</li>
<li>For a forced line break, type two spaces at the end of a line</li>
<li>For a bullet list, type a blank line, then use <code>*</code> and a space at the beginning of each line</li>
<li>For <i>italics</i>, type <code>_italics_</code></li>
<li>For <b>bold</b>, type <code>**bold**</code></li>
<li>For hyperlinks, type <code>[text of link](http://example.com/index.html)</code></li>
<li><a href="http://daringfireball.net/projects/markdown/basics" target="_blank">Full Markdown documentation...</a></li>
</ul>
</div>
<p>Sequence # <input type="text" name="sequence" value="{{ item.sequence }}" size="5">
<span class="hints">(Use this to control the order of the auction items.)</span></p>
<input type="hidden" name="key" value="{{ key }}">
<input type="hidden" name="which_auction" value="{{ which_auction }}">
<p><input type="submit" name="save" value="Save"></p>
</form>
{% endblock %}