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

Open in your IDE?
  1. {% extends '@OxHoardBundle//layout.html.twig' %}
  2. {% block title %}Object Details {{ object.id }}{% endblock %}
  3. {% block javascripts %}
  4.     {{ parent() }}
  5.     <script type="text/javascript" src='/bundles/oxhoard/js/show_object.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>{{ object.object }}</h1>
  20.                 {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  21.                 <p class="object-description">{{ object.description}}</p>
  22.                 
  23.                 {% if object.quantity %}
  24.                     <div class="datalabel">Quantity</div><div class="data">{{object.quantity}}</div>
  25.                 {% endif %}
  26.                 
  27.                 {% if object.productionPlace %}
  28.                     <div class="datalabel">Production Place</div><div class="data">{{object.productionPlace}}</div>
  29.                 {% endif %}
  30.                 
  31.                 {% if object.weight %}
  32.                     <div class="datalabel">Weight</div><div class="data">{{object.weight}} g</div>
  33.                 {% endif %}
  34.                 
  35.                 {% if object.dimensionLengthCm %}
  36.                     <div class="datalabel">Length</div><div class="data">{{object.dimensionLengthCm}} cm</div>
  37.                 {% endif %}
  38.                 
  39.                 {% if object.dimensionWidthCm %}
  40.                     <div class="datalabel">Width</div><div class="data">{{object.dimensionWidthCm}} cm</div>
  41.                 {% endif %}
  42.                 
  43.                 {% if object.dimensionDiameterCm %}
  44.                     <div class="datalabel">Diameter</div><div class="data">{{object.dimensionDiameterCm}} cm</div>
  45.                 {% endif %}
  46.                 
  47.                 {% if object.startYear %}
  48.                     <div class="datalabel">Start Year</div><div class="data">{{object.startYear}}</div>
  49.                 {% endif %}
  50.                 
  51.                 {% if object.endYear %}
  52.                     <div class="datalabel">End Year</div><div class="data">{{object.endYear}}</div>
  53.                 {% endif %}
  54.                 
  55.                 {% if object.comment %}
  56.                     <div class="datalabel">Comment</div><div class="data">{{object.comment}}</div>
  57.                 {% endif %}
  58.                 
  59.                 {% if object.container %}
  60.                     <div class="datalabel">Container</div><div class="data">{{object.container}}</div>
  61.                 {% endif %}
  62.                 
  63.                 {% if object.material %}
  64.                     <div class="datalabel">Material</div><div class="data">{{object.material}}</div>
  65.                 {% endif %}
  66.                 
  67.                 {% if object.hoard %}
  68.                     <div class="datalabel">Hoard</div><div class="data"><a href="{{ path('hoard_show', { 'id': object.hoard.id }) }}">{{object.hoard}}</a></div>
  69.                 {% endif %}
  70.                 
  71.                 {% if object.objectReferences is empty %}
  72.                 {% else %}
  73.                     <h3>References:</h3>
  74.                     {% for ref in object.objectReferences %}
  75.                         {% if ref.reference %}
  76.                         <div class="datalabel">Reference</div>
  77.                         <div class="data"><a href="{{ path('reference_show', {'id': ref.reference.id})}}">
  78.                             {{ref.reference.title}}
  79.                         </a>{% if ref.referenceStr %}{{ ref.referenceStr }}{% endif %}</div>
  80.                         {% endif %}
  81.                         {% if ref.comment %}
  82.                         <div class="datalabel">Comment</div><div class="data">{{ ref.comment }}</div>
  83.                         {% endif %}
  84.                         {% if ref.thisObject %}
  85.                         <div class="datalabel">This object</div>
  86.                         <div class="data">Yes</div>
  87.                         {% endif %}
  88.                         <br>
  89.                     {% endfor %}
  90.                 {% endif %}    
  91.                 
  92.                 
  93.                 {% for objectImage in object.objectimages %}
  94.                     <div class="magnify-image-container">
  95.                         <img id="object-image-{{ objectImage.id }}" class="object-image magnify-image-inside" src="{{ path('object_image', { 'object_image_id': objectImage.id }) }}">
  96.                     </div>
  97.                     <div class="marginTop"></div>
  98.                     {% if objectImage.uri %}
  99.                     <div class="datalabel">Uri: </div><div class="data"><a href="{{objectImage.uri}}">{{objectImage.uri}}</a></div>
  100.                     {% endif %}
  101.                     {% if objectImage.comment %}
  102.                     <div class="datalabel">Comment: </div><div class="data">{{objectImage.comment}}</div>
  103.                     {% endif %}
  104.                     <br><br>
  105.                 {% endfor %}
  106.                 
  107.                 
  108.                 <br/><br/>
  109.             </div>
  110.         </div>
  111.     </div>
  112. {% endblock %}