Skip to content

Commit c1fbe11

Browse files
author
Julien Pivotto
committed
initial commit
0 parents  commit c1fbe11

File tree

19 files changed

+437
-0
lines changed

19 files changed

+437
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "media/uni-form"]
2+
path = media/uni-form
3+
url = https://github.com/draganbabic/uni-form.git

askforabooth/__init__.py

Whitespace-only changes.
1.84 KB
Binary file not shown.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# French translation of the "ask for a booth" app
2+
# Copyright (C) 2013 roidelapluie
3+
# This file is distributed under the same license as the rmll-booth package.
4+
# Julien Pivotto <[email protected]>, 2013.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: 1\n"
9+
"Report-Msgid-Bugs-To: \n"
10+
"POT-Creation-Date: 2013-05-27 17:18-0500\n"
11+
"PO-Revision-Date: 2013-05-27 23:40+0200\n"
12+
"Last-Translator: Julien Pivotto <[email protected]>\n"
13+
"Language: fr\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
18+
19+
#: models.py:7
20+
msgid "Name of the association/group/community"
21+
msgstr "Nom de l'association / groupe / communauté"
22+
23+
#: models.py:8
24+
msgid "Start year of the association/group/community"
25+
msgstr "Année de démarrage de l'association / groupe / communauté"
26+
27+
#: models.py:9
28+
msgid "Objectives and action fields"
29+
msgstr "Objectif(s) et champs d'action"
30+
31+
#: models.py:10
32+
msgid "Number of members"
33+
msgstr "Effectif / Nombre de membres"
34+
35+
#: models.py:11
36+
msgid "City/state"
37+
msgstr "Ville / Région"
38+
39+
#: models.py:12
40+
msgid "Country"
41+
msgstr "Pays"
42+
43+
#: models.py:13
44+
msgid "Email address"
45+
msgstr "Adresse e-mail"
46+
47+
#: models.py:14
48+
msgid "Website"
49+
msgstr "Site internet"
50+
51+
#: models.py:15
52+
msgid "What will you show at the LSM village?"
53+
msgstr "Qu'allez-vous présenter ?"
54+
55+
#: models.py:16
56+
msgid "Which size do you need for yout boost?"
57+
msgstr "Taille du stand souhaitée"
58+
59+
#: models.py:16
60+
msgid "We just want an estimation"
61+
msgstr "Nous voulons juste une estimation"
62+
63+
#: models.py:17
64+
msgid "What will you sell?"
65+
msgstr "Allez-vous vendre des articles ? Si oui, quels types d'articles ? "
66+
67+
#: models.py:17
68+
msgid "GNU/Linux CD-ROM, t-shirts, books, stickers..."
69+
msgstr "T-shirts, livres, CDs de GNU/LInux, ..."
70+
71+
#: models.py:18
72+
msgid "Specific needs"
73+
msgstr "Besoins spéciaux "
74+
75+
#: models.py:18
76+
msgid "You will have WiFi, 220V, table and chairs"
77+
msgstr "Déjà fourni: WiFi, 220V, table et chaises."
78+
79+
#: templates/askforabooth/base.html:7 templates/askforabooth/base.html:31
80+
msgid "Libre Village 2013"
81+
msgstr "Village du Libre 2013"
82+
83+
#: templates/askforabooth/base.html:32
84+
msgid "Apply for a booth"
85+
msgstr "Requête de stand"
86+
87+
#: templates/askforabooth/boothdemand_form.html:9
88+
msgid "Submit"
89+
msgstr "Envoyer"
90+
91+
#: templates/askforabooth/success.html:5
92+
msgid "Thank you"
93+
msgstr "Merci"
94+
95+
#: templates/askforabooth/success.html:6
96+
msgid "We will contact you as soon as possible."
97+
msgstr "Nous vous contacterons aussi vite que possible."
98+
99+
#~ msgid "French"
100+
#~ msgstr "Français"
101+
102+
#~ msgid "English"
103+
#~ msgstr "Anglais"

askforabooth/models.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from django.db import models
2+
from django.utils.translation import ugettext as _
3+
4+
# Create your models here.
5+
6+
class boothDemand(models.Model):
7+
name = models.CharField(_(u'Name of the association/group/community'), max_length=64)
8+
start_date = models.IntegerField(_(u'Start year of the association/group/community'))
9+
objectives = models.TextField(_(u'Objectives and action fields'))
10+
members = models.IntegerField(_(u'Number of members'))
11+
city = models.CharField(_(u'City/state'), max_length=32)
12+
country = models.CharField(_(u'Country'), max_length=32)
13+
mail = models.EmailField(_(u'Email address'))
14+
internet = models.CharField(_(u'Website'), max_length=128)
15+
whattoshow = models.TextField(_(u'What will you show at the LSM village?'))
16+
sizeoftheboost = models.CharField(_(u'Which size do you need for yout boost?'), blank=True, help_text=_('We just want an estimation'), max_length=128)
17+
whattosell = models.TextField(_(u'What will you sell?'), help_text=_('GNU/Linux CD-ROM, t-shirts, books, stickers...'), blank=True)
18+
specific_needs = models.TextField(_(u'Specific needs'), help_text=_('You will have WiFi, 220V, table and chairs'), blank=True)
19+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{% load i18n %}
2+
<!doctype html>
3+
<html>
4+
<head>
5+
<meta charset="utf-8">
6+
7+
<title>{% trans "Libre Village 2013" %}</title>
8+
9+
<link href="{{MEDIA_URL}}uni-form/css/uni-form.css" media="all" rel="stylesheet"/>
10+
11+
<link href="{{MEDIA_URL}}uni-form/css/default.uni-form.css" media="all" rel="stylesheet"/>
12+
13+
14+
15+
<!-- Script -->
16+
<link rel="stylesheet" href="{{MEDIA_URL}}style.css" type="text/css">
17+
18+
</head>
19+
<body>
20+
21+
<div id="container">
22+
23+
<h1>{% trans "Libre Village 2013" %}</h1>
24+
<h2>{% trans "Apply for a booth" %}</h1>
25+
{% block content %}
26+
{% endblock %}
27+
</div>
28+
</body>
29+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "askforabooth/base.html" %}
2+
{% load i18n %}
3+
{% load crispy_forms_tags %}
4+
{% block content %}
5+
<form method="post" class="uniForm">
6+
{{ form|crispy }}
7+
<div class="buttonHolder">
8+
<input class="primaryAction" type="submit" value="{% trans "Submit" %}" />
9+
</div>
10+
{% csrf_token %}
11+
</form>
12+
{% endblock %}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "askforabooth/base.html" %}
2+
{% load i18n%}
3+
{% load crispy_forms_tags %}
4+
{% block content %}
5+
<h1>{% trans "Thank you" %}</h1>
6+
<p>{%trans "We will contact you as soon as possible." %}</p>
7+
{% endblock %}

askforabooth/tests.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
This file demonstrates writing tests using the unittest module. These will pass
3+
when you run "manage.py test".
4+
5+
Replace this with more appropriate tests for your application.
6+
"""
7+
8+
from django.test import TestCase
9+
10+
11+
class SimpleTest(TestCase):
12+
def test_basic_addition(self):
13+
"""
14+
Tests that 1 + 1 always equals 2.
15+
"""
16+
self.assertEqual(1 + 1, 2)

0 commit comments

Comments
 (0)