Skip to content

Commit aa039d8

Browse files
committed
Rearragned structure and added mobile and web template paths
1 parent e815b83 commit aa039d8

10 files changed

+102
-42
lines changed

mobile/categories.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<center>
2+
<br/>
3+
<br/>
4+
Series: <a href="">Computer Technology</a> <a href="">Workplace Essentials</a> <a href="">Career Development</a> <a href="">Organizational Skills</a>
5+
<a href="">Human Resources Development</a> <a href="">Contracting and Procurement Skills</a> <a href="">Professional Development</a> <a href="">Management and Leadership Development</a>
6+
</center>

mobile/course.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{% include "header.html" %}
2+
3+
<p>
4+
<h1>{{ course.name }}
5+
{% if admin_link %}
6+
- <a href='{{ admin_link }}'>Edit</a>
7+
{% endif %}
8+
</h1>
9+
{{ course.duration }}
10+
<br/>
11+
<br/>
12+
<b>Description: </b> {{ course.description }}
13+
<br/>
14+
<br/>
15+
</p>
16+
<hr style="border:1px dashed;color:58595b" width="100%"/>
17+
<h2>Available Sessions</h2>
18+
19+
{% for session in sessions %}
20+
<a href="/session?session_number={{ session.session_number }}">{{ session.start_date }} {{ session.start_time }} {{ session.address }}</a>
21+
<br/>
22+
{% endfor %}
23+
24+
25+
{% include "footer.html" %}

mobile/footer.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<center>
2+
<p>
3+
<a href="/">Home</a>
4+
</p>
5+
</center>
6+
7+
</body>
8+
</html>

mobile/header.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
2+
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml">
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>WDA Courses Catalog - Mobile</title>
7+
<link href="/static/css/default.css" type="text/css" rel="stylesheet" />
8+
</head>
9+
<body>
10+
11+
<center>
12+
<img src="/static/img/wda-training.png"/>
13+
<hr style="border:1px dashed;color:58595b" width="100%"/>
14+
<form action="/search" method="get">
15+
<input name="query" type="text" value=""><input type="submit" value="Search">
16+
</form>
17+
</center>

mobile/main.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% include "header.html" %}
2+
3+
{% include "categories.html" %}
4+
5+
{% include "footer.html" %}

mobile/search.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% include "header.html" %}
2+
3+
{% include "categories.html" %}
4+
5+
<center>
6+
<p>
7+
{% for r in results %}
8+
<b>
9+
<a href="/course?course_id={{r.id}}">{{ r.name }}</a>
10+
</b>
11+
<br/>
12+
{% endfor %}
13+
</p>
14+
</center>
15+
16+
{% include "footer.html" %}

mobile/session.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{% include "header.html" %}
2+
3+
<p>
4+
<p style="color: green; font-weight:bold;">This session is available</p>
5+
6+
<input type="submit" value="Register now!"></input>
7+
8+
<h1>{{ session.course.name }}</h1>
9+
{{ session.course.duration }}
10+
<br/>
11+
<br/>
12+
<b>Date: </b> {{ session.start_date }}
13+
<br/>
14+
<b>Time: </b> {{ session.start_time }}
15+
<br/>
16+
17+
<b>Capacity: </b> {{ session.min_people }}-{{ session.max_people }}
18+
<br/>
19+
20+
<br/>
21+
<b>Location: </b> {{ session.address }}, <br/>{{ session.city }}, {{ session.state }} {{ session.zip }}<br/>
22+
23+
<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=441+4th+St+NW,+Washington,+DC+20001&amp;sll=37.0625,-95.677068&amp;sspn=62.057085,128.583984&amp;ie=UTF8&amp;hq=&amp;hnear=441+4th+St+NW,+Washington+D.C.,+District+of+Columbia,+20001&amp;ll=38.895442,-77.015877&amp;spn=0.02004,0.025749&amp;z=14&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=441+4th+St+NW,+Washington,+DC+20001&amp;sll=37.0625,-95.677068&amp;sspn=62.057085,128.583984&amp;ie=UTF8&amp;hq=&amp;hnear=441+4th+St+NW,+Washington+D.C.,+District+of+Columbia,+20001&amp;ll=38.895442,-77.015877&amp;spn=0.02004,0.025749&amp;z=14" style="color:#0000FF;text-align:left">View Larger Map</a></small>
24+
25+
{% include "footer.html" %}

stop.html

-42
This file was deleted.

web/footer.html

Whitespace-only changes.

web/header.html

Whitespace-only changes.

0 commit comments

Comments
 (0)