Newer
Older
Graham Cole
committed
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
<fieldset>
<legend>Add Book</legend>
<form action="{$self}" method="POST">
<input type="hidden" name="action" value="search" />
<div class="note row">Enter an ISBN to attempt to auto-fill book details</div>
<div class="row">
<label for="isbn">ISBN</label>
<span class="textinput"><input type="text" name="isbn" /></span>
</div>
<div class="row">
<span class="textinput"><input type="submit" value="Auto-fill" /></span>
</div>
</form>
{if isset($book.image_url)}
<div class="emblem">
<img src="{$book.image_url}" />
</div>
{/if}
<div>
<form action="{$self}" method="POST">
<input type="hidden" name="action" value="add" />
<input type="hidden" name="image_url" value="{$book.image_url}" />
<div class="row">
<label for="isbn">ISBN Number</label>
<span class="textinput"><input type="text" name="isbn" value="{$book.isbn}"/></span>
</div>
<div class="row">
<label for="title">Title</label>
<span class="textinput"><input type="text" name="title" width="200" value="{$book.title}" /></span>
</div>
<div class="row">
<label for="author">Author</label>
<span class="textinput"><input type="text" name="author" value="{$book.author}" /></span>
</div>
<div class="row">
<label for="publisher">Publisher</label>
<span class="textinput"><input type="text" name="publisher" value="{$book.publisher}" /></span>
</div>
<div class="row">
<label for="comments">Comments</label>
<span class="textinput"><textarea name="comments"></textarea></span>
</div>
<div class="row">
<input type="submit" name="add" value="Add Book" />
</div>
</form>
</div>
</fieldset>