Commit cd4145fa authored by colmoneill's avatar colmoneill

Merge branch 'master' of gitlab.com:bemaker/eu.bemaker.flask

parents 10105215 69c1ce5b
......@@ -182,18 +182,17 @@ class User(db.Document, UserMixin):
email = db.StringField(max_length=255)
password = db.StringField(max_length=255)
confirmed_at = db.DateTimeField()
badges = db.DictField(default = badges)
# badges = db.DictField(default = badges)
# badges = db.ListField(db.EmbeddedDocumentField(Badge))
roles = db.ListField(db.ReferenceField(Role))
school = db.ListField(db.ReferenceField(School))
# badges = db.ListField( db.ReferenceField(Badges))
#badges = db.ListField( db.ReferenceField(Badges))
# dashboard_view_count = db.StringField(max_length=3, default=[0])
meta = {'strict': False}
class ExtendedRegisterForm(RegisterForm):
first_name = StringField('First Name', validators=[DataRequired()])
last_name = StringField('Last Name', validators=[DataRequired()])
first_name = StringField('prenom', validators=[DataRequired()])
last_name = StringField('nom', validators=[DataRequired()])
def __unicode__(self):
return self.name
......@@ -321,11 +320,11 @@ def check_quiz(id):
# print({ "badges.name": badge,"_id": ObjectId(user)}, {"$set": {"badges.$.lvl": 2}})
#({'badges.name': 'electronique', '_id': ObjectId('5b3f847e5087266741cf1fef')}, {'$set': {'badges.$.lvl': 1}})
success_message = gettext(" Felicitation vous avez le badge : ") + badge
success_message = gettext(" Felicitation vous avez le badge : ") + badge +"<i class='material-icons'>sentiment_satisfied</i>"
flash(success_message, 'alert-success')
else:
print('user got less than required amount')
fail_message = gettext("echec")
fail_message = gettext("ohhh non tu n'as pas eu assez de bonne reponses !") + "<i class='material-icons'>sentiment_dissatisfied</i>"
flash(fail_message, 'alert-danger')
return render_template('check_quiz.html', quiz=quiz, question_answer=zip(quiz['questions'], answers_list), correct=number_correct, total=len(answers_list))
......@@ -345,9 +344,9 @@ def success():
emailS = request.form.get('email')
message = subject + "\n" + message
print(message)
msg = Message(recipients=["julien@bemaker.eu"],
msg = Message(recipients=["hello@bemaker.eu"],
body = message,
subject = "contact from outer space (or website)",
subject = " 🚀 _Contact from outerspace (or website)",
sender = emailS )
# mail.send(msg)
......
......@@ -115,6 +115,7 @@ input[type=radio]:checked {
/*should match the above value*/
background: white;
z-index: 1000;
border-right: solid 1px #666;
}
.panel ul {
list-style: none;
......@@ -158,9 +159,6 @@ input[type=radio]:checked {
}
.menu-link:hover {
text-decoration: none;
box-shadow: 1px 1px 0px #1592a6, -2px -2px 0px #148a9d, -3px -3px 0px #128294, -4px -4px 0px #117a8b, -5px -5px 0px #107282, -6px -6px 0px #0f6a79;
top: 16px;
left: 16px;
}
.no-gutter {
......
......@@ -94,7 +94,7 @@ input[type="radio"]:checked{
width: 15.625em; /*should match the above value*/
background: white;
z-index: 1000;
border-right: solid 1px #666;
ul {
list-style: none;
margin-left: 0;
......@@ -138,14 +138,6 @@ input[type="radio"]:checked{
line-height: 40px;
&:hover{
text-decoration: none;
box-shadow: 1px 1px 0px darken( #17a2b8, 4% ),
-2px -2px 0px darken( #17a2b8, 6% ),
-3px -3px 0px darken( #17a2b8, 8% ),
-4px -4px 0px darken( #17a2b8, 10% ),
-5px -5px 0px darken( #17a2b8, 12% ),
-6px -6px 0px darken( #17a2b8, 14% );
top:16px;
left:16px;
}
}
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="chip404.svg"
inkscape:version="0.92.3 (unknown)"
id="svg8430"
version="1.1"
viewBox="0 0 49.887586 46.62538"
height="46.625381mm"
width="49.887585mm">
<sodipodi:namedview
inkscape:window-maximized="0"
inkscape:window-y="18"
inkscape:window-x="0"
inkscape:window-height="1161"
inkscape:window-width="1916"
fit-margin-bottom="0"
fit-margin-right="0"
fit-margin-left="0"
fit-margin-top="0"
showgrid="false"
inkscape:current-layer="svg8430"
inkscape:document-units="mm"
inkscape:cy="96.087806"
inkscape:cx="76.560129"
inkscape:zoom="3.5896943"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
<defs
id="defs8424" />
<metadata
id="metadata8427">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-3.2328071,-242.83195)">
<path
id="rect13913-1-0-5-5"
d="m 15.547822,242.9858 c 0,0 -1.540164,0.89803 -1.540164,2.01397 v 42.19659 c 0,1.11595 0.68703,2.01469 1.540164,2.01469 h 25.323392 c 0.853135,0 1.5402,-0.89874 1.5402,-2.01469 v -42.19659 c 0,-1.11594 -1.5402,-2.01397 -1.5402,-2.01397 z"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csssssscc" />
<path
inkscape:connector-curvature="0"
id="path14029-3-1"
d="m 42.573998,251.63513 h 1.00318 c 1.012694,0 1.902581,-0.43272 2.438214,-1.09432 h 5.112909 c 1.793805,0 1.838241,-0.61057 1.838241,-1.36838 0,-0.75784 -0.04443,-1.3677 -1.838241,-1.3677 H 46.14866 c -0.512367,-0.76335 -1.468659,-1.27681 -2.571482,-1.27681 h -1.00318 z"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path14027-9-0"
d="m 13.650059,246.52792 h -0.873337 c -1.102824,0 -2.059118,0.51346 -2.571483,1.27681 H 5.2255962 c -1.7938036,0 -1.838938,0.60986 -1.838938,1.3677 0,0.75781 0.045134,1.36838 1.838938,1.36838 h 5.1129118 c 0.535632,0.6616 1.425519,1.09432 2.438214,1.09432 h 0.873337 z"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
id="rect13913-1-0-5"
d="m 15.51488,243.07824 c -0.853135,0 -1.540165,0.89802 -1.540165,2.01397 v 42.19659 c 0,1.11594 0.68703,2.01468 1.540165,2.01468 h 25.323391 c 0.853135,0 1.5402,-0.89874 1.5402,-2.01468 v -42.19659 c 0,-1.11595 -0.687065,-2.01397 -1.5402,-2.01397 H 33.84379 a 5.7657464,5.7657464 0 0 1 -5.667543,4.72286 5.7657464,5.7657464 0 0 1 -5.666154,-4.72286 z"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:connector-curvature="0" />
<path
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 42.573998,262.634 h 1.00318 c 1.012694,0 1.902581,-0.43272 2.438214,-1.09431 h 5.112909 c 1.793805,0 1.838241,-0.61057 1.838241,-1.36838 0,-0.75784 -0.04443,-1.36771 -1.838241,-1.36771 H 46.14866 c -0.512367,-0.76334 -1.468659,-1.27681 -2.571482,-1.27681 h -1.00318 z"
id="path14037-8-1"
inkscape:connector-curvature="0" />
<path
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 13.650059,257.52679 h -0.873337 c -1.102824,0 -2.059118,0.51347 -2.571483,1.27681 H 5.2255962 c -1.7938036,0 -1.838938,0.60987 -1.838938,1.36771 0,0.75781 0.045134,1.36838 1.838938,1.36838 h 5.1129118 c 0.535632,0.66159 1.425519,1.09431 2.438214,1.09431 h 0.873337 z"
id="path14039-5-0"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path14043-9-5"
d="m 42.573998,273.63288 h 1.00318 c 1.012694,0 1.902581,-0.43272 2.438214,-1.09431 h 5.112909 c 1.793805,0 1.838241,-0.61057 1.838241,-1.36838 0,-0.75784 -0.04443,-1.36771 -1.838241,-1.36771 H 46.14866 c -0.512367,-0.76335 -1.468659,-1.27681 -2.571482,-1.27681 h -1.00318 z"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path14045-6-0"
d="m 13.650059,268.52567 h -0.873337 c -1.102824,0 -2.059118,0.51346 -2.571483,1.27681 H 5.2255962 c -1.7938036,0 -1.838938,0.60987 -1.838938,1.36771 0,0.75781 0.045134,1.36838 1.838938,1.36838 h 5.1129118 c 0.535632,0.66159 1.425519,1.09431 2.438214,1.09431 h 0.873337 z"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 42.573998,284.63173 h 1.00318 c 1.012694,0 1.902581,-0.43272 2.438214,-1.09431 h 5.112909 c 1.793805,0 1.838241,-0.61058 1.838241,-1.36839 0,-0.75784 -0.04443,-1.3677 -1.838241,-1.3677 H 46.14866 c -0.512367,-0.76335 -1.468659,-1.27681 -2.571482,-1.27681 h -1.00318 z"
id="path14049-8-4"
inkscape:connector-curvature="0" />
<path
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 13.650059,279.52452 h -0.873337 c -1.102824,0 -2.059118,0.51346 -2.571483,1.27681 H 5.2255962 c -1.7938036,0 -1.838938,0.60986 -1.838938,1.3677 0,0.75781 0.045134,1.36839 1.838938,1.36839 h 5.1129118 c 0.535632,0.66159 1.425519,1.09431 2.438214,1.09431 h 0.873337 z"
id="path14051-5-6"
inkscape:connector-curvature="0" />
<path
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 35.807263,244.76069 c -1.876261,0.29262 -1.745992,2.89766 -3.461093,3.59922 -3.608911,2.56627 -9.501338,0.93726 -10.924353,-3.36087 -1.900627,-0.16155 -4.044127,-0.2317 -5.830755,0.0652 -0.544413,2.03022 0.200292,4.23774 -0.14562,6.33531 0.101831,12.23326 -0.234811,24.56233 0.173544,36.7366 1.700516,0.34521 3.557537,-0.22985 5.319028,0.0505 6.57876,-0.0991 13.346603,0.26709 19.811106,-0.18493 0.628842,-2.52811 -0.204652,-5.15742 0.159082,-7.74308 -0.102864,-11.75056 0.235239,-23.59663 -0.171944,-35.28944 -1.53844,-0.36537 -3.218802,0.27539 -4.798028,-0.21478 l -0.130958,0.006 z"
id="rect13913-1-0-5-3"
inkscape:connector-curvature="0" />
<circle
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path6641"
cx="18.605013"
cy="247.92938"
r="1.5939879" />
<path
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.30770221;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 18.438374,246.50096 c -2.748338,0.28063 -0.412643,4.33085 1.237305,2.16066 0.677283,-0.90114 -0.103372,-2.26288 -1.237305,-2.16066 z"
id="path6641-3"
inkscape:connector-curvature="0" />
</g>
<g
id="g9701"
transform="matrix(0.33662488,0,0,0.33662488,14.376485,20.95238)"
style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round"
inkscape:label="Hershey Text">
<path
id="path9695"
transform="translate(10)"
d="M 3,-9 V 9 H 4 M 4,-12 V 9 M 4,-12 -7,4 H 8 M 3,-9 -6,4 M -6,3 H 8 v 1"
inkscape:connector-curvature="0" />
<path
id="path9697"
transform="translate(30)"
d="m -1,-12 -3,1 -2,3 -1,5 v 3 l 1,5 2,3 3,1 H 1 L 4,8 6,5 7,0 V -3 L 6,-8 4,-11 1,-12 h -2 m -2,1 -2,3 -1,5 v 3 l 1,5 2,3 M -4,7 -1,8 H 1 L 4,7 M 3,8 5,5 6,0 V -3 L 5,-8 3,-11 m 1,1 -3,-1 h -2 l -3,1"
inkscape:connector-curvature="0" />
<path
id="path9699"
transform="translate(50)"
d="M 3,-9 V 9 H 4 M 4,-12 V 9 M 4,-12 -7,4 H 8 M 3,-9 -6,4 M -6,3 H 8 v 1"
inkscape:connector-curvature="0" />
</g>
</svg>
$( document ).ready(function() {
new Vivus('my-svg', {duration: 200});
$('.menu-link').bigSlide({
easyClose : true
});
var imgBgnbr = 1 + Math.floor(Math.random() * 3);
var url = "url('img/"
var img = imgBgnbr.toString().concat("",".jpg");
......@@ -14,9 +16,13 @@ $( document ).ready(function() {
// $('.tutoItem').css('height', $('.tutoItem').width());
$('.desc p').click(function(){
console.log("click click")
$(this).toggleClass('openDiv')
});
if ($('#my-svg').length){
new Vivus('my-svg', {duration: 200});
}
// var sliderHeight = "100px";
// $('.slider').each(function () {
// var current = $(this);
......
......@@ -26,9 +26,10 @@
<script src="{{ url_for('static', filename='node_modules/jquery/dist/jquery.min.js')}}"></script>
<script src="{{ url_for('static', filename='node_modules/bootstrap/dist/js/bootstrap.min.js')}}"></script>
<script src="//cdn.jsdelivr.net/npm/vivus@latest/dist/vivus.min.js"></script>
<script src="{{ url_for('static', filename='js/bigSlide.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/main.js')}}"></script>
<script src="//cdn.jsdelivr.net/npm/vivus@latest/dist/vivus.min.js"></script>
</body>
......
......@@ -29,7 +29,7 @@
<ul class=flashes>
{% for category, message in messages %}
<div class="alert {{ category }} alert-dismissible fade show" role="alert">
<h3>{{ message }} &nbsp; &nbsp; ton resultat :<b> {{correct}} / {{total}}</b></h3>
<h3>{{ message }} &nbsp; &nbsp; {{_("ton resultat")}} :<b> {{correct}} / {{total}}</b></h3>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
......
......@@ -11,20 +11,20 @@
<div class="form-area">
<form role="form" method="POST" action="/succes">
<div class="form-group">
<input type="text" class="form-control" id="name" name="name" placeholder="Name"required>
<input type="text" class="form-control" id="name" name="name" placeholder="{{_("nom")}}"required>
</div>
<div class="form-group">
<input type="text" class="form-control" id="email" pattern="[^ @]*@[^ @]*" name="email" placeholder="Email" data-toggle="tooltip" data-placement="top" title=" format : yourname@domain.com" required>
<input type="text" class="form-control" id="email" pattern="[^ @]*@[^ @]*" name="email" placeholder="{{_("email")}}" data-toggle="tooltip" data-placement="top" title=" format : yourname@domain.com" required>
</div>
<div class="form-group">
<input type="text" class="form-control" id="subject" name="subject" placeholder="Subject" required>
<input type="text" class="form-control" id="subject" name="subject" placeholder="{{_("sujet")}}" required>
</div>
<div class="form-group">
<textarea class="form-control" type="textarea" name="message" placeholder="Message" maxlength="450" rows="7" required></textarea>
<textarea class="form-control" type="textarea" name="message" placeholder="{{_("message")}}" maxlength="450" rows="7" required></textarea>
</div>
<button type="submit" id="submit" name="submit" class="btn btn-primary pull-right">send</button>
<button type="submit" id="submit" name="submit" class="btn btn-primary pull-right">{{_("envoyer")}}</button>
</form>
</div>
</div>
......
......@@ -4,7 +4,7 @@
<div class="container">
<h1>DASHBOARD de {{current_user.first_name}}</h1>
<h1>{{_("bonjour")}}{{current_user.first_name}}</h1>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<ul class=flashes>
......@@ -23,7 +23,7 @@
<div class="badgesList">
<h2>TES BADGES</h2>
<h2>{{_("TES BADGES")}}</h2>
<div class="row">
{% for badge, value in current_user.badges.items() %}
{{ value.lvl }}
......
......@@ -2,10 +2,14 @@
{% block content %}
<div class="container">
<div class="spacer"></div>
<div class="svgDraw">
<object id="my-svg" type="image/svg+xml" data="../static/img/chip404.svg"></object>
</div>
<div class="all-col">
<h1>(404) page not found</h1>
<h1 class="center">{{_("page not found")}}</h1>
<div class="separation-rule"></div>
<p>This page does not exist. Please check the URL spelling or revert to the navigation.</p>
<p class="center">{{_("This page does not exist. Please check the URL spelling or revert to the navigation.")}}</p>
</div>
</div>
......
......@@ -5,7 +5,9 @@
<div class="container workshopList">
<h1>LES ATELIERS</h1>
{{page}}
<h1>{{_("LES ATELIERS")}}</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
......@@ -14,6 +16,7 @@
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<div class="spacer"></div>
<ul class="workshop">
......@@ -32,7 +35,7 @@
<h3>{{ event.name.text }}</h3>
<span class="wsdate">{{ event.start.local }}</span> {% if event.capacity!= None %} <span class="wsdate">max : {{ event.capacity }} ppl</span>{% endif %} by <a href="{{event.organizer.url}}">{{ event.organizer.name }}</a>
<span class="wsdate">{{ event.start.local }}</span> {% if event.capacity!= None %} <span class="wsdate">max : {{ event.capacity }} ppl</span>{% endif %} {{_("par")}} <a href="{{event.organizer.url}}">{{ event.organizer.name }}</a>
<p>
{{ event.description.text }}
</p>
......@@ -42,7 +45,7 @@
<div class="col col-12 col-sm-12 col-md-2 col-lg-2">
<div class="subbtn">
<a href="{{ event.url}}" target="_blank">
<button type="button" class="btn btn-info btn-lg">inscription</button>
<button type="button" class="btn btn-info btn-lg">{{_("inscription")}}</button>
</a>
</div>
......
......@@ -19,7 +19,7 @@
<div class="tutoWrapper">
<button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
<div class="tutoContent container">
<H1>LEARN</H1>
<H1>{{_("LEARN")}}</H1>
{{page}}
</div>
</div>
......
......@@ -15,7 +15,7 @@
</form>
</div>
<div class=" col col-12 col-sm-12 col-md-6 col-lg-4">
<h4>PARTENAIRES</h4>
<h4>{{_("PARTENAIRES")}}</h4>
<ul>
<li>truc</li>
<li>truc</li>
......
......@@ -22,12 +22,7 @@
<div class="container">
<h2>{{_("VERSION ENG")}}</h2>
<p>{{_("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")}}</p>
<p>{{page}}</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
......@@ -90,7 +85,7 @@
<div class="row center cta-btn">
<a href="#">
<button type="button" class="btn btn-info btn-lg">en savoir plus</button>
<button type="button" class="btn btn-info btn-lg">{{_("en savoir plus")}}</button>
</a>
</div>
......@@ -102,7 +97,7 @@
</div>
<div class="homePush greyBg">
<h2>LEARN </h2>
<h2>{{_("apprendre")}} </h2>
<div class="container-fluid">
......@@ -137,7 +132,7 @@
</div>
</div>
<div class="row center cta-btn">
<a href="/learn"> <button type="button" name="button" class="btn btn-info btn-lg text-center">all tuto</button></a>
<a href="/learn"> <button type="button" name="button" class="btn btn-info btn-lg text-center">{{_("voir tout")}}</button></a>
</div>
</div>
......@@ -172,7 +167,7 @@
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2">
<div class="subbtn">
<a href="{{ event.url}}" target="_blank">
<button type="button" class="btn btn-info btn-lg">inscription</button>
<button type="button" class="btn btn-info btn-lg">{{_("inscription")}}</button>
</a>
</div>
......@@ -184,7 +179,7 @@
</ul>
<div class="row center cta-btn">
<a href="/event"> <button type="button" name="button" class="btn btn-info btn-lg text-center">All events</button></a>
<a href="/event"> <button type="button" name="button" class="btn btn-info btn-lg text-center">{{_("voir tout")}}</button></a>
</div>
</div>
......
......@@ -2,23 +2,11 @@
{% block content %}
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="../static/img/jumbo.png" alt="First slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="../static/img/jumbo.png" alt="Second slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="../static/img/jumbo.png" alt="Third slide">
</div>
</div>
</div>
<div class="spacer"></div>
<div class="container workshopList ">
<div class="spacer"></div>
<h1 style="text-align:center;">LEARN</h1>
<h1 style="text-align:center;">{{_("Apprendre")}}</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
......
{% extends "base.html" %}
{% block content %}
<h1>LOGIN</h1>
<div class="container ">
<dir class="row no-gutters justify-content-md-center align-items-center">
<div class=" col col-12 col-sm-8 col-md-4 col-lg-4">
<form>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</dir>
</div>
{% endblock %}
\ No newline at end of file
......@@ -7,9 +7,9 @@
<div class="logo">
</div>
</li>
<li class="item"><a href="/">{{_("about")}}</a><span class="deco"></span></li>
<li class="item"><a href="/learn">{{_("learn")}}</a><span class="deco"></li>
<li class="item"><a href="/event">{{_("particpate")}}</a><span class="deco"></li>
<li class="item"><a href="/">{{_("a propos")}}</a><span class="deco"></span></li>
<li class="item"><a href="/learn">{{_("apprendre")}}</a><span class="deco"></li>
<li class="item"><a href="/event">{{_("evenements")}}</a><span class="deco"></li>
<li class="item"><a href="/contact">{{_("contact")}}</a><span class="deco"></li>
</ul>
</div>
......@@ -21,15 +21,15 @@
<ul id="menuSecond">
{% if current_user.is_authenticated %}
<li><a href="/dashboard">{{_("Dashboard")}}</a></li>
<li><a href="{{ url_for('security.logout') }}">{{_("Logout")}}</a></li>
<li><a href="/dashboard">{{_("mon profil")}}</a></li>
<li><a href="{{ url_for('security.logout') }}">{{_("deconnection")}}</a></li>
{% else %}
{% include "security/_menu.html" %}
{% endif %}
<li class="item"><a href="/language/fr">FR</a>/<a href="/language/nl">NL</a>/<a href="/language/en">EN</a></li>
<li class="item"><a href="/language/fr">FR</a>/<a href="/language/nl">NL</a></li>
</ul>
</div>
<div class="cb"></div>
......@@ -39,26 +39,21 @@
<a href="#menu" class="menu-link">&#9776;</a>
<nav id="menu" class="panel" role="navigation">
<ul>
<li>
<div class="logo">
</div>
<li>
<div class="logo"></div>
</li>
<li class="item"><a href="/">{{_("about")}}</a><span class="deco"></span></li>
<li class="item"><a href="/learn">{{_("learn")}}</a><span class="deco"></li>
<li class="item"><a href="/event">{{_("particpate")}}</a><span class="deco"></li>
<li class="item"><a href="/">{{_("a propos")}}</a><span class="deco"></span></li>
<li class="item"><a href="/learn">{{_("apprendre")}}</a><span class="deco"></li>
<li class="item"><a href="/event">{{_("evenements")}}</a><span class="deco"></li>
<li class="item"><a href="/contact">{{_("contact")}}</a><span class="deco"></li>
<li><hr></li>
{% if current_user.is_authenticated %}
{#{% if current_user.role admin %}
<li><a href="/admin">{{_("Administration")}}</a></li>
{% endif %}#}
<li><a href="/dashboard">{{_("Dashboard")}}</a></li>
<li><a href="{{ url_for('security.logout') }}">Logout</a></li>
<li><a href="/dashboard">{{_("mon profil")}}</a></li>
<li><a href="{{ url_for('security.logout') }}">{{_("deconnection")}}</a></li>
{% else %}
{% include "security/_menu.html" %}
{% endif %}
<li class="item"><a href="#">FR/NL</a></li>
<li class="item"><a href="/language/fr">FR</a>/<a href="/language/nl">NL</a></li>
</ul>
{{current_user.first_name}}
</nav>
......@@ -15,7 +15,7 @@
{% endfor %}
</p>
{% endfor %}
<input type="submit" value="Submit Your Quiz">
<input type="submit" value="{{_("swwooooch")}}">
</form>
</div>
{% endblock %}
......@@ -2,7 +2,7 @@
{% block title %} Quiz Website - All Quizzes {% endblock %}
{% block content %}
<div class='container'>
<span id='title'>All Quizzes</span>
<span id='title'>{{_("tout les questionnaires")}}</span>
<ul>
{% for id, name in quiz_names %}
<li><a href="{{url_for('quiz', id=id)}}">{{name}}</a>
......
......@@ -16,7 +16,7 @@
{{ render_field_with_errors(login_user_form.email , class ='form-control') }}
{{ render_field_with_errors(login_user_form.password , class ='form-control' ) }}
{% if security.recoverable %}
<a href="{{ url_for_security('forgot_password') }}">{{ _('Forgot password') }}</a><br/>
<a href="{{ url_for_security('forgot_password') }}">{{ _('mots de passe oublie') }}</a><br/>
{% endif %}
{{ render_field_with_errors(login_user_form.remember) }}
......
{% extends "base.html" %}
{% block content %}
<div class="spacer"></div>
<div class="container">
<div class="spacer"></div>
<div class="svgDraw">
<object id="my-svg" type="image/svg+xml" data="../static/img/logo.svg"></object>
</div>
<h1 class="center"> <i class="material-icons md-48"> mail_outline</i> &nbsp;{{gettext("Merci pour l'email")}} &nbsp; <i class="material-icons md-48"> mail_outline</i> </h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>{{_("nous vous repondrons au plus vite ! ")}}</p>
</div>
......
# French translations for PROJECT.
# Copyright (C) 2018 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
#
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-07-18 17:44+0200\n"
"PO-Revision-Date: 2018-07-18 17:44+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fr\n"
"Language-Team: fr <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.6.0\n"
#: __init__.py:287
msgid " Felicitation vous avez le badge : "
msgstr ""
#: __init__.py:291
msgid "echec"
msgstr ""
#: templates/home.html:24
msgid "VERSION ENG"
msgstr "VERSION FR"
#: templates/home.html:25
msgid ""
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n"
" tempor incididunt ut labore et dolore magna aliqua. Ut enim ad "
"minim veniam,\n"
" quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea "
"commodo\n"
" consequat. Duis aute irure dolor in reprehenderit in voluptate "
"velit esse\n"
" cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat "
"cupidatat non\n"
" proident, sunt in culpa qui officia deserunt mollit anim id est "
"laborum."
msgstr ""
#: templates/menu.html:10 templates/menu.html:46
msgid "about"
msgstr "a propos"
#: templates/menu.html:11 templates/menu.html:47
msgid "learn"
msgstr "apprendre"
#: templates/menu.html:12 templates/menu.html:48
msgid "particpate"
msgstr "evenements"
#: templates/menu.html:13 templates/menu.html:49
msgid "contact"
msgstr "contact"
#: templates/menu.html:24 templates/menu.html:52
msgid "Dashboard"
msgstr "profil"
#: templates/menu.html:25
msgid "Logout"
msgstr "deconnection"
#: templates/succes.html:9
msgid "thank for the mail"
msgstr "merci pour l'email"
#: templates/security/_menu.html:4 templates/security/register_user.html:14
msgid "Register"
msgstr "s'inscrire"
#: templates/security/_menu.html:5 templates/security/login_user.html:12
#: templates/security/send_login.html:6
msgid "Login"