basic.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {% import 'appbuilder/general/lib.html' as lib %}
  2. <html>
  3. <head>
  4. <title>
  5. {% block title %}
  6. {% if title %}
  7. {{ title }}
  8. {% elif appbuilder and appbuilder.app_name %}
  9. {{ appbuilder.app_name }}
  10. {% endif %}
  11. {% endblock %}
  12. </title>
  13. {% block head_meta %}{% endblock %}
  14. {% block head_css %}
  15. <link rel="icon" type="image/png" href="/static/assets/images/favicon.png">
  16. <link rel="stylesheet" type="text/css" href="/static/appbuilder/css/flags/flags16.css" />
  17. <link rel="stylesheet" type="text/css" href="/static/appbuilder/css/font-awesome.min.css">
  18. {% for entry in get_unloaded_chunks(css_manifest('theme'), loaded_chunks) %}
  19. <link rel="stylesheet" type="text/css" href="{{ entry }}" />
  20. {% endfor %}
  21. {% if entry %}
  22. {% set entry_files = css_manifest(entry) %}
  23. {% for entry in get_unloaded_chunks(entry_files, loaded_chunks) %}
  24. <link rel="stylesheet" type="text/css" href="{{ entry }}" />
  25. {% endfor %}
  26. {% endif %}
  27. {% endblock %}
  28. {% for entry in get_unloaded_chunks(js_manifest('theme'), loaded_chunks) %}
  29. <script src="{{ entry }}"></script>
  30. {% endfor %}
  31. {% for entry in get_unloaded_chunks(js_manifest('common'), loaded_chunks) %}
  32. <script src="{{ entry }}"></script>
  33. {% endfor %}
  34. <input
  35. type="hidden"
  36. name="csrf_token"
  37. id="csrf_token"
  38. value="{{ csrf_token() if csrf_token else '' }}"
  39. >
  40. </head>
  41. <body>
  42. {% block navbar %}
  43. {% if not standalone_mode %}
  44. <header class="top" role="header">
  45. {% include 'appbuilder/navbar.html' %}
  46. </header>
  47. {% endif %}
  48. {% endblock %}
  49. {% block body %}
  50. <div id="app" data-bootstrap="{{ bootstrap_data }}" >
  51. <img src="/static/assets/images/loading.gif" style="width: 50px; margin: 10px;">
  52. </div>
  53. {% endblock %}
  54. <!-- Modal for misc messages / alerts -->
  55. <div class="misc-modal modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  56. <div class="modal-dialog" role="document">
  57. <div class="modal-content">
  58. <div class="modal-header">
  59. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  60. <span aria-hidden="true">&times;</span>
  61. </button>
  62. <h4 class="modal-title"></h4>
  63. </div>
  64. <div class="modal-body">
  65. </div>
  66. <div class="modal-footer">
  67. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. {% block tail_js %}
  73. {% if entry %}
  74. {% set entry_files = js_manifest(entry) %}
  75. {% for entry in get_unloaded_chunks(entry_files, loaded_chunks) %}
  76. <script src="{{ entry }}"></script>
  77. {% endfor %}
  78. {% endif %}
  79. {% endblock %}
  80. </body>
  81. </html>