9fe1f310bde85a60d421a40323ddd9512245ffde
[mixstore.git] / src / Mixstore / StoreBundle / Resources / views / Usecase / view.html.twig
1 {% extends "::base.html.twig" %}
2
3 {% block title %}{{ parent() }}Usecase{% endblock %}
4
5 {% block header %}
6 {{ parent() }}
7 <link rel="stylesheet" href="{{ asset('mixstore/css/store/view-usecase.css') }}">
8 {% endblock %}
9
10 {% block content %}
11
12 <div id="header" class="row">
13 <h2>{{ ucs.institution }}</h2>
14 <h4>{{ ucs.package.name }}</h4>
15 </div>
16
17 <div id="description" class="row">
18 {{ ucs.description | raw }}
19 </div>
20
21 <div id="contact" class="row">
22 <a href="mailto:{{ ucs.contact }}">Contact</a>
23 </div>
24
25 <div id="moreinfo" class="row">
26 <p>
27 Grade: {{ ucs.grade }}
28 </p>
29 <p>
30 Last updated: {{ ucs.modified | date('Y-m-d / H:i:s') }}
31 </p>
32 </div>
33
34 {% if owner or is_granted('ROLE_ADMIN') %}
35 <div id="admin" class="row">
36 <div class="col-xs-6 flush-right">
37 <a href="{{ path('mixstore_store_usecase_upsert', { id: ucs.id }) }}"><button type="button" class="btn btn-primary">Edit</button></a>
38 </div>
39 <div class="col-xs-6">
40 <a href="{{ path('mixstore_store_usecase_delete', { id: ucs.id }) }}"><button type="button" class="btn btn-primary">Delete</button></a>
41 </div>
42 </div>
43 {% endif %}
44
45 {% endblock %}