Projects/worblehat-old
Projects
/
worblehat-old
Archived
12
0
Fork 0

Jeg har pimpa søkefeltet litt, med morosaker fra HTML5. Det er vel småpirk på både #11 og #12.

This commit is contained in:
Tiril Anette Langfeldt Rødland 2011-03-06 18:52:12 +00:00
parent 3c09663da2
commit 11c67cd8bf
4 changed files with 7 additions and 8 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>{% block title %}{% endblock %}</title> <title>Worblehat 0.1: {% block title %}{% endblock %}</title>
<meta charset="utf-8"> <meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="/media/styles/scaffold.css"> <link type="text/css" rel="stylesheet" href="/media/styles/scaffold.css">

View File

@ -1,7 +1,7 @@
{% extends "base/main.html" %} {% extends "base/main.html" %}
{%block title%} {%block title%}
Worblehat: {{ book.title }} {{ book.title }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% if book.thumbnail %} {% if book.thumbnail %}
@ -9,7 +9,6 @@ Worblehat: {{ book.title }}
<img src="/media/{{ book.thumbnail }}" alt="{{ book.title }}"> <img src="/media/{{ book.thumbnail }}" alt="{{ book.title }}">
</span> </span>
{% endif %} {% endif %}
<span class="img">
<h2>{{ book.title }}</h2> <h2>{{ book.title }}</h2>
{% if book.subtitle %} {% if book.subtitle %}
<h3>{{ book.subtitle }}</h3> <h3>{{ book.subtitle }}</h3>
@ -52,5 +51,4 @@ Worblehat: {{ book.title }}
<span class="key">Beskrivelse:</span> {{ book.description }} <br> <span class="key">Beskrivelse:</span> {{ book.description }} <br>
{% endif %} {% endif %}
<span class="key">ISBN:</span> {{ book.isbn }} <br> <span class="key">ISBN:</span> {{ book.isbn }} <br>
</span>
{% endblock %} {% endblock %}

View File

@ -5,9 +5,10 @@ Worblehat 0.1. Heisann!!
{% endblock %} {% endblock %}
{% block content %} {% block content %}
Velkommen til PVVs bokdatabase, Worblehat.<br> Velkommen til PVVs bokdatabase, Worblehat.<br/>
Her kan du søke etter bøker til din hjertens lyst.<br> Her kan du søke etter bøker til din hjertens lyst.<br/><br/>
<form action="/let/" method="get"> <form action="/let/" method="get">
<input type="text" name="searchterm"> <input type="submit" value="Søk!"><br> <input type="search" name="searchterm" placeholder="Søk etter bøker eller forfattere" autofocus>
<input type="submit" value="Søk!">
</form> </form>
{% endblock %} {% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "base/main.html" %} {% extends "base/main.html" %}
{% block title%} {% block title%}
Worblehat: {{ person.first_name }} {{ person.last_name }} {{ person.first_name }} {{ person.last_name }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}