Browse Source

Replace <center> by css (as suggested by W3C)

Fix Url link for space
master
tr4ck3ur des JM2L 9 years ago
parent
commit
d261e8fc5a
11 changed files with 33 additions and 31 deletions
  1. +2
    -2
      jm2l/templates/Logistique/Dialog_Covoit.mako
  2. +2
    -2
      jm2l/templates/Profil/Sejour.mako
  3. +2
    -2
      jm2l/templates/Salles/salle.mako
  4. +4
    -4
      jm2l/templates/Salles/salle_phy.mako
  5. +2
    -2
      jm2l/templates/Staff/EditIndex.mako
  6. +4
    -4
      jm2l/templates/Staff/EditPresse.mako
  7. +4
    -4
      jm2l/templates/Staff/pole.mako
  8. +4
    -4
      jm2l/templates/Staff/tasks.mako
  9. +3
    -1
      jm2l/templates/login.mako
  10. +4
    -4
      jm2l/templates/view_event.mako
  11. +2
    -2
      jm2l/upload.py

+ 2
- 2
jm2l/templates/Logistique/Dialog_Covoit.mako View File

@@ -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">


+ 2
- 2
jm2l/templates/Profil/Sejour.mako View File

@@ -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>

+ 2
- 2
jm2l/templates/Salles/salle.mako View File

@@ -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>




+ 4
- 4
jm2l/templates/Salles/salle_phy.mako View File

@@ -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>


+ 2
- 2
jm2l/templates/Staff/EditIndex.mako View File

@@ -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>


+ 4
- 4
jm2l/templates/Staff/EditPresse.mako View File

@@ -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>

+ 4
- 4
jm2l/templates/Staff/pole.mako View File

@@ -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>


+ 4
- 4
jm2l/templates/Staff/tasks.mako View File

@@ -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>


+ 3
- 1
jm2l/templates/login.mako View File

@@ -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>


+ 4
- 4
jm2l/templates/view_event.mako View File

@@ -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
jm2l/upload.py View File

@@ -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:


Loading…
Cancel
Save