forked from tr4ck3ur/jm2l
Replace <center> by css (as suggested by W3C)
Fix Url link for space
This commit is contained in:
@@ -29,10 +29,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<center>
|
<div class="center">
|
||||||
Pour un co-voiturage le <u>${Exch.start_time.strftime("%a %d %b").decode('utf-8')}</u>
|
Pour un co-voiturage le <u>${Exch.start_time.strftime("%a %d %b").decode('utf-8')}</u>
|
||||||
vers <strong>${Exch.start_time.strftime("%H:%M")}</strong>
|
vers <strong>${Exch.start_time.strftime("%H:%M")}</strong>
|
||||||
</center>
|
</div>
|
||||||
Temps de voyage estimé à <span id="summary"></span>
|
Temps de voyage estimé à <span id="summary"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade in" id="Place_Info">
|
<div class="tab-pane fade in" id="Place_Info">
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ fieldset:disabled {
|
|||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<center>
|
<div class="center">
|
||||||
% if 1:
|
% if 1:
|
||||||
<button type="submit" class="btn btn-large btn-primary" />
|
<button type="submit" class="btn btn-large btn-primary" />
|
||||||
<i class="icon-ok icon-white"></i> Je viens aux JM2L 2015
|
<i class="icon-ok icon-white"></i> Je viens aux JM2L 2015
|
||||||
@@ -165,7 +165,7 @@ fieldset:disabled {
|
|||||||
<i class="icon-ok icon-white"></i> Enregistrer les modifications
|
<i class="icon-ok icon-white"></i> Enregistrer les modifications
|
||||||
</button>
|
</button>
|
||||||
% endif
|
% endif
|
||||||
</center>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</%def>
|
</%def>
|
||||||
|
|||||||
@@ -46,11 +46,11 @@ DicForm = {
|
|||||||
${helpers.DisplayForm(form, DicForm)}
|
${helpers.DisplayForm(form, DicForm)}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<center>
|
<div class="center">
|
||||||
<button type="submit" class="btn btn-large btn-primary" />
|
<button type="submit" class="btn btn-large btn-primary" />
|
||||||
<i class="icon-ok icon-white"></i> Enregistrer
|
<i class="icon-ok icon-white"></i> Enregistrer
|
||||||
</button>
|
</button>
|
||||||
</center>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -44,17 +44,17 @@ DicForm = {
|
|||||||
${helpers.DisplayForm(form, DicForm)}
|
${helpers.DisplayForm(form, DicForm)}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<center>
|
<div class="center">
|
||||||
<button type="submit" class="btn btn-large btn-primary" />
|
<button type="submit" class="btn btn-large btn-primary" />
|
||||||
<i class="icon-ok icon-white"></i> Enregistrer
|
<i class="icon-ok icon-white"></i> Enregistrer
|
||||||
</button>
|
</button>
|
||||||
</center>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
% if 'uid' in form._fields.keys():
|
% if 'uid' in form._fields.keys():
|
||||||
<center>
|
<div class="center">
|
||||||
${helpers.uploader("salle", form.uid.data, u"Attachement" )}
|
${helpers.uploader("salle", form.uid.data, u"Attachement" )}
|
||||||
</center>
|
</div>
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ DicForm = {
|
|||||||
<form action="" method="POST">
|
<form action="" method="POST">
|
||||||
${helpers.DisplayForm(form, DicForm)}
|
${helpers.DisplayForm(form, DicForm)}
|
||||||
<br>
|
<br>
|
||||||
<center>
|
<div class="center">
|
||||||
<button type="submit" class="btn btn-large btn-primary" />
|
<button type="submit" class="btn btn-large btn-primary" />
|
||||||
<i class="icon-ok icon-white"></i> Enregistrer
|
<i class="icon-ok icon-white"></i> Enregistrer
|
||||||
</button>
|
</button>
|
||||||
</center>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,14 +23,14 @@ DicForm = {
|
|||||||
<form action="" method="POST">
|
<form action="" method="POST">
|
||||||
${helpers.DisplayForm(form, DicForm)}
|
${helpers.DisplayForm(form, DicForm)}
|
||||||
<br>
|
<br>
|
||||||
<center>
|
<div class="center">
|
||||||
<button type="submit" class="btn btn-large btn-primary" />
|
<button type="submit" class="btn btn-large btn-primary" />
|
||||||
<i class="icon-ok icon-white"></i> Enregistrer
|
<i class="icon-ok icon-white"></i> Enregistrer
|
||||||
</button>
|
</button>
|
||||||
</center>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<div class="center">
|
||||||
${helpers.uploader("presse", form.year_uid.data, u"Fichier" )}
|
${helpers.uploader("presse", form.year_uid.data, u"Fichier" )}
|
||||||
</center>
|
</div>
|
||||||
|
|||||||
@@ -46,17 +46,17 @@ DicForm = {
|
|||||||
${helpers.DisplayForm(form, DicForm)}
|
${helpers.DisplayForm(form, DicForm)}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<center>
|
<div class="center">
|
||||||
<button type="submit" class="btn btn-large btn-primary" />
|
<button type="submit" class="btn btn-large btn-primary" />
|
||||||
<i class="icon-ok icon-white"></i> Enregistrer
|
<i class="icon-ok icon-white"></i> Enregistrer
|
||||||
</button>
|
</button>
|
||||||
</center>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
% if 'uid' in form._fields.keys():
|
% if 'uid' in form._fields.keys():
|
||||||
<center>
|
<div class="center">
|
||||||
${helpers.uploader("poles", form.uid.data, u"Attachement" )}
|
${helpers.uploader("poles", form.uid.data, u"Attachement" )}
|
||||||
</center>
|
</div>
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -64,17 +64,17 @@ DicForm = {
|
|||||||
${helpers.DisplayForm(form, DicForm)}
|
${helpers.DisplayForm(form, DicForm)}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<center>
|
<div class="center">
|
||||||
<button type="submit" class="btn btn-large btn-primary" />
|
<button type="submit" class="btn btn-large btn-primary" />
|
||||||
<i class="icon-ok icon-white"></i> Enregistrer
|
<i class="icon-ok icon-white"></i> Enregistrer
|
||||||
</button>
|
</button>
|
||||||
</center>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
% if 'uid' in form._fields.keys():
|
% if 'uid' in form._fields.keys():
|
||||||
<center>
|
<div class="center">
|
||||||
${helpers.uploader("tasks", form.uid.data, u"une pièce jointe" )}
|
${helpers.uploader("tasks", form.uid.data, u"une pièce jointe" )}
|
||||||
</center>
|
</div>
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -49,7 +49,9 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<input name="username" type="text" class="input-block-level" placeholder="Nom">
|
<input name="username" type="text" class="input-block-level" placeholder="Nom">
|
||||||
<input name="password" type="password" class="input-block-level" placeholder="Mot de passe">
|
<input name="password" type="password" class="input-block-level" placeholder="Mot de passe">
|
||||||
<center><button class="btn btn-large btn-primary btn-block" type="submit">S'identifier</button></center>
|
<div class="center">
|
||||||
|
<button class="btn btn-large btn-primary btn-block" type="submit">S'identifier</button>
|
||||||
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<a href="/sign/forgot">Je ne me souviens plus de mon mot de passe</a>
|
<a href="/sign/forgot">Je ne me souviens plus de mon mot de passe</a>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ ${event.start_time.strftime('%H:%M')} à ${event.end_time.strftime('%H:%M')}
|
|||||||
<div align="right">
|
<div align="right">
|
||||||
<a class="media" href="${media.get_path}">Présentation</a>
|
<a class="media" href="${media.get_path}">Présentation</a>
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<div class="center">
|
||||||
<a href="${media.get_path}"> Télécharger la présentation (${media.mime_type})</a>
|
<a href="${media.get_path}"> Télécharger la présentation (${media.mime_type})</a>
|
||||||
</center>
|
</div>
|
||||||
% endfor
|
% endfor
|
||||||
</div>
|
</div>
|
||||||
<div id="video" class="span6">
|
<div id="video" class="span6">
|
||||||
@@ -59,9 +59,9 @@ ${event.start_time.strftime('%H:%M')} à ${event.end_time.strftime('%H:%M')}
|
|||||||
src="${media.get_path}" />
|
src="${media.get_path}" />
|
||||||
</video> <br />
|
</video> <br />
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<div class="center">
|
||||||
<a href="${media.get_path}"> Télécharger la vidéo (${media.mime_type})</a>
|
<a href="${media.get_path}"> Télécharger la vidéo (${media.mime_type})</a>
|
||||||
</center>
|
</div>
|
||||||
% endfor
|
% endfor
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-2
@@ -57,7 +57,7 @@ class MediaPath():
|
|||||||
continue
|
continue
|
||||||
if f:
|
if f:
|
||||||
filename, ext = os.path.splitext( f )
|
filename, ext = os.path.splitext( f )
|
||||||
tmpurl = '/image/%s/%d/%s' % (media_table, linked_id, f)
|
tmpurl = '/image/%s/%d/%s' % (media_table, linked_id, f.replace(" ","%20"))
|
||||||
if MediaType is None:
|
if MediaType is None:
|
||||||
filelist.append(tmpurl)
|
filelist.append(tmpurl)
|
||||||
elif MediaType=='Image' and ext.lower() in ['.gif','.jpg','.png','.svg','.jpeg']:
|
elif MediaType=='Image' and ext.lower() in ['.gif','.jpg','.png','.svg','.jpeg']:
|
||||||
@@ -79,7 +79,7 @@ class MediaPath():
|
|||||||
if f.endswith('.type'):
|
if f.endswith('.type'):
|
||||||
continue
|
continue
|
||||||
if f:
|
if f:
|
||||||
tmpurl = '/image/%s/%d/thumbnails/%s' % (media_table, linked_id, f)
|
tmpurl = '/image/%s/%d/thumbnails/%s' % (media_table, linked_id, f.replace(" ","%20"))
|
||||||
if MediaType is None:
|
if MediaType is None:
|
||||||
filelist.append(tmpurl)
|
filelist.append(tmpurl)
|
||||||
elif MediaType=='Image' and len( os.path.splitext(filename)[1] )==0:
|
elif MediaType=='Image' and len( os.path.splitext(filename)[1] )==0:
|
||||||
|
|||||||
Reference in New Issue
Block a user