Skip to content

Commit 6f7846f

Browse files
committed
Add styling to event info page
Signed-off-by: Tal Koren <[email protected]>
1 parent cbbff64 commit 6f7846f

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

event/templates/event/create_event.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ <h2>Create Event</h2>
1515
<div class="btn-container">
1616
<button type="submit">Create</button>
1717
</div>
18-
1918
{% if error %}
2019
<label class="error-label">{{error}}</label>
2120
{% endif %}
2221
</form>
2322
</div>
24-
{% endblock %}
23+
{% endblock %}
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{% extends 'base.html' %}
22
{% block content %}
3-
<h1>{{event.name}} Event</h1>
4-
<li>Category: {{event.category.name}}</li>
5-
<li>Location: {{event.location.city}}</li>
6-
<li>Starts At: {{event.start_time}}</li>
7-
<li>Ends At: {{event.end_time}}</li>
8-
<li>Participants : {{event.participants_num}}/{{event.max_participants}}</li>
3+
<div class="event-info-header">
4+
<h2>{{event.name}} Event</h2>
5+
</div>
6+
<div class="event-info-container">
7+
<ul>
8+
<li>Category: {{event.category.name}}</li>
9+
<li>Location: {{event.location.city}}</li>
10+
<li>Starts At: {{event.start_time}}</li>
11+
<li>Ends At: {{event.end_time}}</li>
12+
<li>Participants : {{event.participants_num}}/{{event.max_participants}}</li>
13+
</ul>
14+
</div>
915
{% endblock %}
1016
{% block poll_info %}{% endblock %}
1117
{% block teams_info %}{% endblock %}

static_home_page/static/web_page_css.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ p {
139139
margin: 20px;
140140
}
141141

142-
.create-event-form {}
143-
144142
.create-event-form>div {
145143
display: flex;
146144
justify-content: space-between;
@@ -180,4 +178,19 @@ p {
180178

181179
.create-event-form #field_is_private>input[type='checkbox'] {
182180
width: 20px;
181+
}
182+
183+
.event-info-header {
184+
margin: 15px;
185+
}
186+
187+
.event-info-container {
188+
margin: 20px;
189+
display: flex;
190+
justify-content: center;
191+
}
192+
193+
.event-info-container>ul>li {
194+
margin: 3px 0;
195+
padding: 3px 0;
183196
}

0 commit comments

Comments
 (0)