This repository has been archived by the owner on Oct 31, 2018. It is now read-only.
/
control-new-shelf.html
62 lines (55 loc) · 2.54 KB
/
control-new-shelf.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
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<meta name="description" content="{{shelf.title}}">
<meta name="author" content="{{organization.name}}">
<!-- Mobile Specific Metas
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,600" rel="stylesheet" type="text/css">
{% load static isbn_converter placeholder %}
{% get_static_prefix as STATIC_PREFIX %}
<title>Scan | Awesome Box at the {{organization.name}}</title>
<link rel="stylesheet" href="{{ STATIC_PREFIX }}css/normalize.css" type="text/css" />
<link rel="stylesheet" href="{{ STATIC_PREFIX }}css/skeleton.css" type="text/css" />
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="{{ STATIC_PREFIX }}css/shelf.css" type="text/css" />
</head>
<body>
<div class="container">
<div class="row">
<div class="eight columns">
<h4>New shelf</h4>
</div>
</div>
<form action="." method="post">
<div class="row">
<div class="eight columns">
{% csrf_token %}
{% if form.errors %}
<ul class="errorlist">
<li>Please fix the error(s) below.</li>
</ul>
{% endif %}
<p class="build-shelf-title">{{ form.title|placeholder:"Title" }}{{ form.title.errors }}</p>
<p class="build-shelf-permalink">http://{{organization.slug}}.{{awesome_domain}}/{{form.slug}}{{form.slug.errors}}</p>
<p class="build-shelf-description">{{ form.description|placeholder:"Optional description" }}{{ form.description.errors }}</p>
</div>
<div class="four columns">
<h5>Shelf Details</h5>
<p>Your shelf's title, link and description</p>
<button class="button-primary">Save Shelf</button>
{% if messages %}
{% for message in messages %}
<p id="build-shelf-message">{% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %}</p>
{% endfor %}
{% endif %}
</div>
</div>
</div>
</body>