index.tpl 988 B

123456789101112131415161718192021222324252627282930313233
  1. {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. <div id="settings">
  4. <div class="row">
  5. {% for role in app.admin_toolbar_roles %}
  6. {% include app.template_style ~ "/admin/" ~ role ~ "/role_index.tpl" %}
  7. {% endfor %}
  8. </div>
  9. </div>
  10. {% if is_granted('ROLE_ADMIN')%}
  11. <script>
  12. $(function() {
  13. //$("#settings").tabs();
  14. $.ajax({
  15. url:'{{ web_admin_ajax_url }}?a=version',
  16. success:function(version){
  17. $(".admin-block-version").html(version);
  18. }
  19. });
  20. });
  21. </script>
  22. <div class="row">
  23. <div class="span12">
  24. <div class="well_border">
  25. <h3>{{ 'VersionCheck' | trans }} </h3>
  26. <div class="admin-block-version"></div>
  27. </div>
  28. </div>
  29. </div>
  30. {% endif %}
  31. {% endblock %}