|
1 | 1 | {% extends 'base.html' %}
|
2 | 2 | {% block style %}
|
3 | 3 | {% load static %}
|
| 4 | +<link rel="stylesheet" href="{% static 'base.css' %}" type="text/css" /> |
4 | 5 | <link rel="stylesheet" href="{% static 'details.css' %}" type="text/css" />
|
5 | 6 | {% endblock %}
|
6 | 7 | {% block content %}
|
7 |
| -<div class="jumbotron jumbotron-fluid"> |
8 |
| - <div class="container"> |
9 |
| - <h1>{{ org.Name }}</h1> |
10 |
| - <h3>{{ org.Region }}, {{ org.Address }}</h3> |
| 8 | + |
| 9 | +<div class="jumbotron jumbotron-fluid bg-gr-blue shadow p-3 mb-5 bg-white"> |
| 10 | + <div class="container text-white"> |
| 11 | + <h1 class="display-3">{{ org.Name }}</h1> |
| 12 | + <h3 class="lead">{{ org.Region }}, {{ org.Address }}</h3> |
11 | 13 | </div>
|
12 | 14 | </div>
|
13 |
| -{% if user.is_authenticated %} |
14 |
| - <a href="{% url 'editPage' org.id %}"> |
15 |
| - <button type="button" name="button" class="btn" style="background-color:lightblue"> |
16 |
| - Edit Page |
17 |
| - </button> |
18 |
| - </a> |
19 |
| -{% endif %} |
| 15 | + |
| 16 | + |
20 | 17 | <main>
|
21 |
| -<section> |
22 |
| -<h2>Overview</h2> |
| 18 | + <section class="shadow p-3 mb-5 bg-white rounded"> |
| 19 | + {% if user.is_authenticated %} |
| 20 | + <div class="row"> |
| 21 | + <a class="btn btn-primary ml-auto mr-2" href="{% url 'editPage' org.id %}" > |
| 22 | + Edit Page |
| 23 | + </a> |
| 24 | + </div> |
| 25 | + {% endif %} |
23 | 26 |
|
24 |
| -<table> |
25 |
| - <tr> |
26 |
| - <td class="lead">Industory Tag:</td><td class="tableright">{{ org.Industry }}</td> |
27 |
| - </tr> |
28 |
| - <tr> |
29 |
| - <td>Service Tag:</td> |
30 |
| - <td class="tableright">{% for service in org.ServiceCategory.all %} |
31 |
| - <span class="servicespan">{{ service.Name }}</span> |
32 |
| - {% endfor %} |
33 |
| - </td> |
34 |
| - </tr> |
35 |
| - <tr> |
36 |
| - <td>PR</td><td class="tableright">{{ org.PR }}</td> |
37 |
| - </tr> |
38 |
| - <tr> |
39 |
| - <td>Registration Date<br>(YYYY-MM-DD)</td><td class="tableright">{{ org.RegistrationDate|date:"Y-m-d" }}</td> |
40 |
| - </tr> |
41 |
| - <tr> |
42 |
| - <td>Affiliation</td><td class="tableright">{{ org.Affiliation }}</td> |
43 |
| - </tr> |
44 |
| - <tr> |
45 |
| - <td>URL</td><td class="tableright">{{ org.Url }}</td> |
46 |
| - </tr> |
47 |
| - <tr> |
48 |
| - <td>ContactPerson</td><td class="tableright">{{ org.ContactPerson }}</td> |
49 |
| - </tr> |
50 |
| - <tr> |
51 |
| - <td>Email</td><td class="tableright">{{ org.Email }}</td> |
52 |
| - </tr> |
53 |
| - <tr> |
54 |
| - <td>Telephone</td><td class="tableright">{{ org.Telephone }}</td> |
55 |
| - </tr> |
56 |
| -</table> |
57 |
| -</section> |
| 27 | + <table class="table table-borderless"> |
| 28 | + <tbody> |
| 29 | + <tr> |
| 30 | + <th class="lead" scope="row">Industory</th> |
| 31 | + <td class="tableright">{{ org.Industry }}</td> |
| 32 | + </tr> |
| 33 | + <tr> |
| 34 | + <th class="lead" scope="row">Service</th> |
| 35 | + <td class="tableright"> |
| 36 | + {% for service in org.ServiceCategory.all %} |
| 37 | + <span class="servicespan">{{ service.Name }}, </span> |
| 38 | + {% endfor %} |
| 39 | + </td> |
| 40 | + </tr> |
| 41 | + <tr> |
| 42 | + <th class="lead" scope="row">PR</th> |
| 43 | + <td class="tableright">{{ org.PR }}</td> |
| 44 | + </tr> |
| 45 | + <tr> |
| 46 | + <th class="lead" scope="row">Registration Date</th> |
| 47 | + <td class="tableright">{{ org.RegistrationDate|date:"Y-m-d" }}</td> |
| 48 | + </tr> |
| 49 | + <tr> |
| 50 | + <th class="lead" scope="row">Affiliation</th> |
| 51 | + <td class="tableright">{{ org.Affiliation }}</td> |
| 52 | + </tr> |
| 53 | + <tr> |
| 54 | + <th class="lead" scope="row">URL</th> |
| 55 | + <td class="tableright"> |
| 56 | + <a href="{{ org.Url }}">{{ org.Url }}</a> |
| 57 | + </td> |
| 58 | + </tr> |
| 59 | + <tr> |
| 60 | + <th class="lead" scope="row">Contact</th> |
| 61 | + <td class="tableright"> |
| 62 | + <span>{{ org.ContactPerson }} </span> |
| 63 | + <span>Email:{{ org.Email }} </span> |
| 64 | + <span>Tel:{{ org.Telephone }}</span> |
| 65 | + </td> |
| 66 | + </tr> |
| 67 | + </tbody> |
| 68 | + </table> |
| 69 | + </section> |
58 | 70 |
|
59 |
| -<section style="margin-top:20px;"> |
60 |
| - <h2>Services</h2> |
61 |
| - <table> |
62 |
| - <tr> |
63 |
| - <th>Service</th><th>Category</th><th>Service</th><th>Contents</th> |
64 |
| - </tr> |
65 |
| - {% for service in services %} |
66 |
| - <tr> |
67 |
| - <td>{{ service.OrgName }}</td><td>{{ service.ServiceCategory }}</td> |
68 |
| - <td>{{ service.Service }}</td><td>{{ service.Contents }}</td> |
69 |
| - </tr> |
70 |
| - {% endfor %} |
71 |
| - </table> |
72 |
| -</section> |
| 71 | + <section style="margin-top:20px;"> |
| 72 | + <h2>Services</h2> |
| 73 | + <table> |
| 74 | + <tr> |
| 75 | + <th>Service</th><th>Category</th><th>Service</th><th>Contents</th> |
| 76 | + </tr> |
| 77 | + {% for service in services %} |
| 78 | + <tr> |
| 79 | + <td>{{ service.OrgName }}</td><td>{{ service.ServiceCategory }}</td> |
| 80 | + <td>{{ service.Service }}</td><td>{{ service.Contents }}</td> |
| 81 | + </tr> |
| 82 | + {% endfor %} |
| 83 | + </table> |
| 84 | + </section> |
73 | 85 |
|
74 |
| -<section style="margin-top:20px;"> |
75 |
| - <h2>Experience</h2> |
76 |
| - <table> |
77 |
| - <tr> |
78 |
| - <th>Large</th><th>Medium</th><th>SmallandMicro</th> |
79 |
| - </tr> |
80 |
| - {% for experience in experiences %} |
81 |
| - <tr> |
82 |
| - <td>{{ experience.Large }}</td> |
83 |
| - <td>{{ experience.Medium }}</td><td>{{ experience.SmallandMicro }}</td> |
84 |
| - </tr> |
85 |
| - {% endfor %} |
86 |
| - </table> |
87 |
| -</section> |
| 86 | + <section style="margin-top:20px;"> |
| 87 | + <h2>Experience</h2> |
| 88 | + <table> |
| 89 | + <tr> |
| 90 | + <th>Large</th><th>Medium</th><th>SmallandMicro</th> |
| 91 | + </tr> |
| 92 | + {% for experience in experiences %} |
| 93 | + <tr> |
| 94 | + <td>{{ experience.Large }}</td> |
| 95 | + <td>{{ experience.Medium }}</td><td>{{ experience.SmallandMicro }}</td> |
| 96 | + </tr> |
| 97 | + {% endfor %} |
| 98 | + </table> |
| 99 | + </section> |
88 | 100 |
|
89 |
| -<section style="margin-top:20px;"> |
90 |
| - <h2>Experience</h2> |
91 |
| - <table> |
92 |
| - <tr> |
93 |
| - <th>Large</th><th>Medium</th><th>SmallandMicro</th> |
94 |
| - </tr> |
95 |
| - {% for experience in experiences %} |
96 |
| - <tr> |
97 |
| - <td>{{ experience.Large }}</td> |
98 |
| - <td>{{ experience.Medium }}</td><td>{{ experience.SmallandMicro }}</td> |
99 |
| - </tr> |
100 |
| - {% endfor %} |
101 |
| - </table> |
102 |
| -</section> |
| 101 | + <section style="margin-top:20px;"> |
| 102 | + <h2>Experience</h2> |
| 103 | + <table> |
| 104 | + <tr> |
| 105 | + <th>Large</th><th>Medium</th><th>SmallandMicro</th> |
| 106 | + </tr> |
| 107 | + {% for experience in experiences %} |
| 108 | + <tr> |
| 109 | + <td>{{ experience.Large }}</td> |
| 110 | + <td>{{ experience.Medium }}</td><td>{{ experience.SmallandMicro }}</td> |
| 111 | + </tr> |
| 112 | + {% endfor %} |
| 113 | + </table> |
| 114 | + </section> |
103 | 115 | </main>
|
104 | 116 |
|
105 | 117 |
|
|
0 commit comments