src/Ox/HoardBundle/Resources/views/default/dashboard.html.twig line 1

Open in your IDE?
  1. {% extends '@OxHoardBundle/home.html.twig' %}
  2. {% block title %}Coin Hoards of the Roman Empire{% endblock %}
  3.       
  4.       
  5.       
  6. {% block stylesheets %}
  7.     {{ parent() }}
  8.     <script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js"></script>
  9.     <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" />
  10.     <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.1/leaflet.markercluster.js"></script>
  11.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.1/MarkerCluster.css" />
  12.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.4.1/MarkerCluster.Default.css" />
  13.     <script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js'></script>
  14.     <link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' rel='stylesheet' />
  15.     <script src="https://cdn.jsdelivr.net/npm/leaflet-easyprint@2.1.9/dist/bundle.min.js"></script>
  16. {% endblock %}
  17. {% block javascripts %}
  18.     {{ parent() }}
  19.     <script type="text/javascript" src="/bundles/oxhoard/js/utils.js"></script>
  20.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  21.     <script> var hoardPath = "/hoard/";  var isAuthenticated = {% if is_authenticated %}true{% else %}false{% endif %};var addMapExport = true;</script>
  22. {% endblock %}
  23. {% block body %}
  24.     <!-- content -->
  25.     <div class="marginTop clearfix"></div>
  26.     {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  27.     <div id="content" class="container"> <!-- page content -->
  28.         <div class="row">
  29.             <div class="col-md-8">
  30.                 <div class="row">
  31.                     <div id="homepage_about" class="col-xs-4 col-sm-4 col-md-4 dashboard-img">
  32.                         <img src="/bundles/oxhoard/img/about.jpg" alt=""/>
  33.                         <div class="headingBg"><a href="/content/about"><h2>About</h2><span class="fa fa-chevron-right"></span></a></div>
  34.                     </div>
  35.                     <div id="homepage_team" class="col-xs-4 col-sm-4 col-md-4 dashboard-img">
  36.                         <img src="/bundles/oxhoard/img/team.jpg" alt=""/>
  37.                         <div class="headingBg"><a href="/content/team"><h2>Team</h2><span class="fa fa-chevron-right"></span></a></div>
  38.                     </div>
  39.                     <div id="homepage_contribute" class="col-xs-4 col-sm-4 col-md-4 dashboard-img">
  40.                         <img src="/bundles/oxhoard/img/collaborations.jpg" alt=""/>
  41.                         <div class="headingBg"><a href="/content/collaborations"><h2>Collaborations</h2><span class="fa fa-chevron-right"></span></a></div>
  42.                     </div>
  43.                 </div>
  44.             </div>
  45.             <div class="col-md-4">
  46.                 <div class="row">
  47.                     <div id="homepage_news" class="col-xs-12 col-sm-12 col-md-12">
  48.                         <div class="headingBg"><a href="/content/news"><h2>News</h2><span class="fa fa-chevron-right"></span></a></div>
  49.                         {% for news in news_items %}
  50.                             <div class="news-teaser">
  51.                                 <h3><a href="{{ path('content_show_path', { 'path': news.path }) }}">{{ news.title }}</a></h3>
  52.                                 <div class="teasertext">{{ news.teaser }}<a href=""><span> <a href="{{ path('content_show_path', { 'path': news.path }) }}">more&hellip;</a></span></a></div>
  53.                             </div>
  54.                         {% endfor %}
  55.                     </div>
  56.                 </div>
  57.             </div>
  58.         </div>
  59.             
  60.         <div class="row"><h3 id="validated-entries-counter" class="col-lg-12 hidden">Currently in the database: {{validated_coins | number_format(0, '.', ',')}} coins in {{validated_hoards | number_format(0, '.', ',')}} validated hoards</h3></div>
  61.         <div class="row"><h3 id="all-entries-counter" class="col-lg-12">Currently in the database: {{all_coins | number_format(0, '.', ',')}} coins in all {{all_hoards | number_format(0, '.', ',')}} hoards</h3></div>
  62.         <div class="row"> 
  63.             <div class="col-lg-12">
  64.                 <div id="map" class="map-view large"></div>
  65.                 <input id="toggle-cluster-results" type="checkbox" checked="checked"> Cluster results</input>
  66.                 <div class="marginTop">
  67.                     <input type="radio" id="map-show-all-hoards" name="map-show-validated-hoards" value="all" {% if is_authenticated %}checked{% endif%}>
  68.                     <label for="map-show-all-hoards">Show all hoards</label>
  69.                     <input type="radio" id="map-show-validated-hoards" name="map-show-validated-hoards" value="validated" {% if not is_authenticated%}checked{% endif%}
  70.                       style="margin-left: 20px">
  71.                     <label for="map-show-validated-hoards">Show only validated hoards</label><br>
  72.                 </div>
  73.                 <div id="slider-range"></div>           
  74.                 <p class="" style="margin-top: 5px">
  75.                   <label for="year">Closing dates of Hoards:</label>
  76.                   <input type="text" id="range" readonly style="border:0; color:#D69E40; font-weight:bold;">
  77.                 </p>
  78.             </div>
  79.         </div>
  80.     </div><!-- end page container -->    
  81.     <!-- footer -->
  82.     <div class="marginTop clearfix"></div>
  83. {% endblock %}