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.
 
 
 
 
 

52 lines
1.7 KiB

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