aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-03-24 21:34:07 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2015-03-24 21:34:07 -0400
commit2695b63c611e36b53764eeadc1d5c8516f21de46 (patch)
tree9cff75e72a09b185ebfdac7899a67715ea4d1bcb /templates
parent61df9a08182cf9b0b52c240603dede0ab6ab741b (diff)
downloadwedding-website-2695b63c611e36b53764eeadc1d5c8516f21de46.tar.gz
big reorganization of the templates
Diffstat (limited to 'templates')
-rw-r--r--templates/en/gifts.htm7
-rw-r--r--templates/en/lodging.htm6
-rw-r--r--templates/en/main.htm22
-rw-r--r--templates/fr/main.htm4
-rw-r--r--templates/getting.html5
-rw-r--r--templates/gifts.html6
-rw-r--r--templates/layout.htm61
-rw-r--r--templates/layout.html33
-rw-r--r--templates/lodging.html (renamed from templates/en/getting.htm)4
-rw-r--r--templates/main.html25
-rw-r--r--templates/rsvp.html (renamed from templates/en/rsvp.htm)6
-rw-r--r--templates/sr/main.htm4
12 files changed, 74 insertions, 109 deletions
diff --git a/templates/en/gifts.htm b/templates/en/gifts.htm
deleted file mode 100644
index 5242cfa..0000000
--- a/templates/en/gifts.htm
+++ /dev/null
@@ -1,7 +0,0 @@
-{%extends 'layout.htm' %}
-{%block content%}
-<p style="text-align:center">
- We are not asking for any gifts considering the expense of the trip
- to France.
-</p>
-{% endblock %}
diff --git a/templates/en/lodging.htm b/templates/en/lodging.htm
deleted file mode 100644
index 85b4e27..0000000
--- a/templates/en/lodging.htm
+++ /dev/null
@@ -1,6 +0,0 @@
-{%extends 'layout.htm' %}
-{%block content%}
-<p style="text-align:center">
- Coming soon!
-</p>
-{% endblock %}
diff --git a/templates/en/main.htm b/templates/en/main.htm
deleted file mode 100644
index 0e6add6..0000000
--- a/templates/en/main.htm
+++ /dev/null
@@ -1,22 +0,0 @@
-{%extends 'layout.htm' %}
-{%block content%}
-<h3>
- Welcome to the homepage of
- <br>
- Iva and Guillaume’s wedding!
-</h3>
-<p class="info">
- The wedding will take place
- <br>
- Friday September 4<sup>th</sup>, 2015
- <br>
- in Le Lavandou, France.
-</p>
-<p>
- This website will be updated periodically to include more
- information. For now we just ask you to complete the <a href="/rsvp">RSVP</a>
- form. Please let us know if you have any questions.
-</p>
-<p class="info">
- We are looking forward to sharing this experience with you! </b>
-{% endblock %}
diff --git a/templates/fr/main.htm b/templates/fr/main.htm
deleted file mode 100644
index c195258..0000000
--- a/templates/fr/main.htm
+++ /dev/null
@@ -1,4 +0,0 @@
-{%extends 'layout.htm' %}
-{%block content%}
-Je suis un bloc francais
-{% endblock %}
diff --git a/templates/getting.html b/templates/getting.html
new file mode 100644
index 0000000..eac8f95
--- /dev/null
+++ b/templates/getting.html
@@ -0,0 +1,5 @@
+{%extends 'layout.html' %}
+{%block content%}
+<p style="text-align:center">{% trans %}Coming soon!{% endtrans %}
+</p>
+{% endblock %}
diff --git a/templates/gifts.html b/templates/gifts.html
new file mode 100644
index 0000000..1a3996c
--- /dev/null
+++ b/templates/gifts.html
@@ -0,0 +1,6 @@
+{%extends 'layout.html' %}
+{%block content%}
+<p style="text-align:center">{% trans %}We are not asking for any
+ gifts considering the expense of the trip to France.{% endtrans %}
+</p>
+{% endblock %}
diff --git a/templates/layout.htm b/templates/layout.htm
deleted file mode 100644
index e42c48e..0000000
--- a/templates/layout.htm
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- {%if lang=="en" %}
- <title>I & G wedding</title>
- {% endif %}
- {%if lang=="fr" %}
- <title>Mariage de I & G</title>
- {% endif %}
- {%if lang=="sr" %}
- <title>Vencanje I & G</title>
- {% endif %}
-
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
- <link href="{{url_for('static',filename='wedding.css')}}" rel="stylesheet">
- </head>
- <body>
- <header class="row">
- <img id="banner" class="center-block" src="{{url_for('static',filename='banner2.jpg')}}" alt="banner">
- </header>
- <div class="row main">
- <div class="col-md-3 menu ">
- <ul class="nav nav-pills nav-stacked">
- {%if lang=="en" %}
- <li role="presentation" class="active"><a href="../home">Home</a></li>
- <li role="presentation"><a href="../rsvp">RSVP</a></li>
- <li role="presentation"><a href="../getting">Getting There</a></li>
- <li role="presentation"><a href="../lodging">Lodging</a></li>
- <li role="presentation"><a href="../gifts">Gifts</a></li>
- {% endif %}
- {%if lang=="fr" %}
- <li role="presentation" class="active"><a href="../home">Accueil
- </a></li>
- <li role="presentation"><a href="../rsvp">RSVP</a></li>
- <li role="presentation"><a href="../getting">Directions</a></li>
- <li role="presentation"><a href="../lodging">Hebergement</a></li>
- <li role="presentation"><a href="../gifts">Cadeaux</a></li>
- {% endif %}
- {%if lang=="sr" %}
- <li role="presentation" class="active"><a href="../home">Home</a></li>
- <li role="presentation"><a href="../rsvp">RSVP</a></li>
- <li role="presentation"><a href="../getting">Getting The SR</a>
- </li>
- <li role="presentation"><a href="../lodging">Lodging
- Sr</a></li>
- <li role="presentation"><a href="../gifts">Pokloni</a></li>
- {% endif %}
- </ul>
- </div>
- <div class="col-md-9">
- {% block content %}
- {% endblock %}
- </div>
- </div>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script type="text/javascript" src="/static/wedding.js"></script>
- </body>
-</html>
diff --git a/templates/layout.html b/templates/layout.html
new file mode 100644
index 0000000..ec933b2
--- /dev/null
+++ b/templates/layout.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>{{_("I & G wedding")}}</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
+ <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
+ <link href="{{url_for('static',filename='wedding.css')}}" rel="stylesheet">
+ </head>
+ <body>
+ <header class="row">
+ <img id="banner" class="center-block" src="{{url_for('static',filename='banner2.jpg')}}" alt="banner">
+ </header>
+ <div class="row main">
+ <div class="col-md-3 menu ">
+ <ul class="nav nav-pills nav-stacked">
+ <li role="presentation" class="active"><a href="../home">{{_("Home")}}</a></li>
+ <li role="presentation"><a href="../rsvp">{{_("RSVP")}}</a></li>
+ <li role="presentation"><a href="../getting">{{_("Getting There")}}</a></li>
+ <li role="presentation"><a href="../lodging">{{_("Lodging")}}</a></li>
+ <li role="presentation"><a href="../gifts">{{_("Gifts")}}</a></li>
+ </ul>
+ </div>
+ <div class="col-md-9">
+ {% block content %}
+ {% endblock %}
+ </div>
+ </div>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
+ <script type="text/javascript" src="/static/wedding.js"></script>
+ </body>
+</html>
diff --git a/templates/en/getting.htm b/templates/lodging.html
index 85b4e27..6cf51fe 100644
--- a/templates/en/getting.htm
+++ b/templates/lodging.html
@@ -1,6 +1,6 @@
-{%extends 'layout.htm' %}
+{%extends 'layout.html' %}
{%block content%}
<p style="text-align:center">
- Coming soon!
+ {{_("Coming soon!")}}
</p>
{% endblock %}
diff --git a/templates/main.html b/templates/main.html
new file mode 100644
index 0000000..68e32ae
--- /dev/null
+++ b/templates/main.html
@@ -0,0 +1,25 @@
+{%extends 'layout.html' %}
+{%block content%}
+<h3>
+ Welcome to the homepage of
+ <br>
+ Iva and Guillaume’s wedding!
+</h3>
+<p class="info">{% trans %}
+ The wedding will take place
+ <br>
+ Friday September 4<sup>th</sup>, 2015
+ <br>
+ in Le Lavandou, France.{% endtrans %}
+</p>
+<p>{% trans %}
+ This website will be updated periodically to include more
+ information. For now we just ask you to complete the <a href="/rsvp">RSVP</a>
+ form. Please let us know if you have any questions.
+ {% endtrans %}
+</p>
+<p class="info">{% trans %}
+ We are looking forward to sharing this experience with you!
+ {% endtrans %}
+</p
+{% endblock %}
diff --git a/templates/en/rsvp.htm b/templates/rsvp.html
index d1b5e65..63f4ece 100644
--- a/templates/en/rsvp.htm
+++ b/templates/rsvp.html
@@ -1,4 +1,4 @@
-{%extends 'layout.htm' %}
+{%extends 'layout.html' %}
{% block content%}
<form id="rsvp" action="/rsvp/" role="form"
class="form-horizontal" method="post">
@@ -61,7 +61,7 @@
</div>
</div>
<p>
- Will you be accompanied by a plus one?
+ {{_("Will you be accompanied by a plus one?")}}
</p>
<div class="form-group">
<label for="plusone" class="col-md-4 control-label">+1:</label>
@@ -77,7 +77,7 @@
</div>
</div>
<div class="form-group">
- <label for="mailing" class="col-md-4 control-label">+1's Full Name:</label>
+ <label for="mailing" class="col-md-4 control-label">{{_("+1's Full Name:")}}</label>
<div class="col-md-5">
<input type="text" id="plusonename" class="form-control"
name="plusonename" placeholder="+1's Name"
diff --git a/templates/sr/main.htm b/templates/sr/main.htm
deleted file mode 100644
index 0475072..0000000
--- a/templates/sr/main.htm
+++ /dev/null
@@ -1,4 +0,0 @@
-{%extends 'layout.htm' %}
-{%block content%}
-Ja sam srbski block
-{% endblock %}