src/Ox/HoardBundle/Resources/views/container/show.html.twig line 1

Open in your IDE?
  1. {% extends '@OxHoardBundle//layout.html.twig' %}
  2. {% block title %}Container Details {{ container.id }}{% endblock %}
  3. {% block javascripts %}
  4.     {{ parent() }}
  5.     <script type="text/javascript" src='/bundles/oxhoard/js/show_container.js'></script>
  6.     <script type="text/javascript" src='/bundles/oxhoard/js/utils.js'></script>
  7.     <script type="text/javascript" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  8.     <script type="text/javascript" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  9. {% endblock %}
  10. {% block stylesheets %}
  11.     {{ parent() }}
  12.     <link rel="stylesheet" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  13. {% endblock %}
  14. {% block body %}
  15.     <div class="marginTop clearfix"></div>
  16.     <div id="content" class="container">
  17.         <div class="row">
  18.             <div class="hoardlistview-6col">
  19.                 <h1>{{ container.container }}</h1>
  20.                 {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  21.                 {% if container.comment %}
  22.                     <div class="datalabel">Comment</div><div class="data">{{container.comment}}</div>
  23.                 {% endif %}
  24.                 
  25.                 {% if container.uri1 %}
  26.                     <div class="datalabel">URI1</div><div class="data"><a href="{{container.uri1}}">{{container.uri1}}</a></div>
  27.                 {% endif %}
  28.                 
  29.                 {% if container.uri2 %}
  30.                     <div class="datalabel">URI2</div><div class="data"><a href="{{container.uri2}}">{{container.uri2}}</a></div>
  31.                 {% endif %}
  32.                 
  33.                 
  34.                 {% if container.containerSherd %}
  35.                     <div class="datalabel">Preservation</div><div class="data">{{container.containerSherd.containerSherd}}</div>
  36.                     <!-- TODO Add sherd comment? -->
  37.                 {% endif %}
  38.                 
  39.                 {% if container.containerForm %}
  40.                     <div class="datalabel">Form</div><div class="data">{{container.containerForm}}</div>
  41.                 {% endif %}
  42.                 {% if container.material %}
  43.                     <div class="datalabel">Material</div><div class="data">{{container.material}}</div>
  44.                 {% endif %}
  45.                 
  46.                 {% if container.hoard %}
  47.                     <div class="datalabel">Hoard</div><div class="data"><a href="{{ path('hoard_show', { 'id': container.hoard.id }) }}">{{container.hoard}}</a></div>
  48.                 {% endif %}
  49.                 <!-- Layers -->
  50.                 {# it was decided to deactivate layers #59809 #}
  51.                 {# <div class="datalabel">Layers:</div>
  52.                 <div class="data">            
  53.                 {% if container.layers is empty %}
  54.                     There are no layers defined for this container
  55.                 {% else %}
  56.                     <h3>Layers in this container</h3>
  57.                     {% for layer in container.layers %}
  58.                         {% if layer.layer %}
  59.                             <div class="datalabel">Name</div><div class="data">{{layer.layer}}</div>
  60.                         {% endif %}
  61.                         {% if layer.comment %}
  62.                             <div class="datalabel">Comment</div><div class="data">{{layer.comment}}</div>
  63.                         {% endif %}
  64.                         <br>
  65.                     {% endfor %}
  66.                 {% endif %}
  67.                 </div> #}
  68.                 
  69.                 <!-- Objects -->    
  70.                 <div class="datalabel">Objects:</div>
  71.                 <div class="data">            
  72.                 {% if container.objects is empty %}
  73.                     This container doesn't have any objects associated to it
  74.                 {% else %}
  75.                     {% for object in objects %}
  76.                         <span><a href="{{ path('object_show', { 'id': object.id }) }}">{{ object }}</a></span>{% if not loop.last %}, {% endif %}
  77.                     {% endfor %}
  78.                 {% endif %}
  79.                 </div>
  80.                 
  81.                 <!-- Coins -->    
  82.                 <div class="datalabel">Coins:</div>            
  83.                 <div class="data">            
  84.                 {% if container.coins is empty %}
  85.                     This container doesn't have any coins associated to it
  86.                 {% else %}
  87.                     {% for coin in container.coins %}
  88.                         <div><a href="{{ path('coin_show', { 'id': coin.id }) }}">Coin {{ coin.id }}</a>
  89.                             {% if not coin.reigns is empty %}
  90.                                 <span><b>Reign: </b>
  91.                                     {% for reign in coin.reigns %}
  92.                                         {{ reign }}{% if not loop.last %} or {% endif %}
  93.                                     {% endfor %}
  94.                                 </span>
  95.                                 <span> - </span>
  96.                             {% endif %}
  97.                             {% if not coin.persons is empty %}
  98.                                 <span><b>Person: </b>
  99.                                     {% for person in coin.persons %}
  100.                                         {{ person }}{% if not loop.last %} or {% endif %}
  101.                                     {% endfor %}
  102.                                 </span>
  103.                                 <span> - </span>
  104.                             {% endif %}
  105.                             {% if not coin.denominations is empty %}
  106.                                 <span><b>Denomination: </b>
  107.                                     {% for denomination in coin.denominations %}
  108.                                         {{ denomination }}{% if not loop.last %} or {% endif %}
  109.                                     {% endfor %}
  110.                                 </span>
  111.                             {% endif %}
  112.                         </div>
  113.                     {% endfor %}    
  114.                 {% endif %}
  115.                 </div>
  116.                 <!-- Images -->
  117.                 {% for containerImage in container.containerImages %}
  118.                     <div class="row hoard-show-image-container">
  119.                         <div class="col-md-12 magnify-image-container">
  120.                             <img id="container-image-{{ containerImage.id }}" class="container-image magnify-image-inside" src="{{ path('container_image', { 'container_image_id': containerImage.id }) }}">
  121.                         </div>
  122.                         <div class="col-md-12">
  123.                             <div class="containerimage-metadata hoardlistview-12col">
  124.                                 {% if containerImage.uri1 is defined %}
  125.                                     <div class="datalabel">URI</div><div class="data"><a target="_blank" href="{{ containerImage.uri1 }}">{{ containerImage.uri1 }}</a></div>
  126.                                 {% endif %}
  127.                                 {% if containerImage.comment is defined %}
  128.                                     <div class="datalabel">Comment</div><div class="data">{{ containerImage.comment }}</div>
  129.                                 {% endif %}
  130.                             </div>
  131.                         </div>
  132.                     </div>
  133.                 {% endfor %}
  134.                 <br/><br/>
  135.             </div>
  136.         </div>
  137.     </div>
  138. {% endblock %}