Le repo des sources pour le site web des JM2L
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
1.8 KiB

  1. <%inherit file="jm2l:templates/layout.mako"/>
  2. <div class="row-fluid">
  3. <div class="span10 offset1">
  4. <a class="pull-right" href="/categorie/entity">Editer les catégories</a>
  5. <br>
  6. <div class="tabbable" id="main_tab">
  7. <ul class="nav nav-tabs" style="margin-bottom: 5px;">
  8. % for Num, Entity_Type in enumerate(entities.keys()):
  9. <li class="${["","active"][Num==0]}">
  10. <a href="#${Entity_Type}" id="Map_${Entity_Type}" data-toggle="tab">${Entity_Type}s</a>
  11. </li>
  12. % endfor
  13. </ul>
  14. <div class="tab-content" style="padding:0 10px">
  15. % for Num, Entity_Type in enumerate(entities.keys()):
  16. <div class="tab-pane fade ${["","active "][Num==0]} in" id="${Entity_Type}">
  17. <table class="table table-striped table-bordered table-hover">
  18. <thead>
  19. <tr>
  20. <th style="width:7em;text-align:center;">Type</th>
  21. <th style="text-align:center;">Nom</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. % for entity in entities[Entity_Type].all():
  26. <tr>
  27. <td style="text-align:center;">
  28. % for img_path in entity.ThumbLinks:
  29. <img src="${img_path}" alt="logo" />
  30. % endfor
  31. </td>
  32. <td style="position: relative;">
  33. ${Entity_Type}, ${entity.get_entity_type.entity_subtype}<br>
  34. <strong>
  35. <a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}">${entity.name}</a>
  36. </strong>
  37. % if request.user and request.user.Staff:
  38. <span style="float:right;">
  39. <a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">edit</a>
  40. </span>
  41. % endif
  42. </td>
  43. </tr>
  44. % endfor
  45. </tbody>
  46. </table>
  47. </div>
  48. % endfor
  49. </div>
  50. </div>
  51. </div>