-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from talko611/add-create-event-style
Add create event style
- Loading branch information
Showing
3 changed files
with
100 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
<h1>Create Event</h1> | ||
<form id="event-form" method="post"> | ||
{% csrf_token %} {{ form.as_p }} | ||
<button type="submit">Create</button> | ||
{% if error %} | ||
<label id="error-label" style="color: red;">{{error}}</label> | ||
{% endif %} | ||
</form> | ||
<div class="create-event-form-header"> | ||
<h2>Create Event</h2> | ||
</div> | ||
<div class="create-event-form-container"> | ||
<form method="post" class="create-event-form"> | ||
{% csrf_token %} | ||
{% for field in form %} | ||
<div class="form-field" id="field_{{ field.name }}"> | ||
{{ field.label_tag }} | ||
{{ field }} | ||
</div> | ||
{% endfor %} | ||
<div class="btn-container"> | ||
<button type="submit">Create</button> | ||
</div> | ||
{% if error %} | ||
<label class="error-label">{{error}}</label> | ||
{% endif %} | ||
</form> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
<h1>{{event.name}} Event</h1> | ||
<li>Category: {{event.category.name}}</li> | ||
<li>Location: {{event.location.city}}</li> | ||
<li>Starts At: {{event.start_time}}</li> | ||
<li>Ends At: {{event.end_time}}</li> | ||
<li>Participants : {{event.participants_num}}/{{event.max_participants}}</li> | ||
<div class="event-info-header"> | ||
<h2>{{event.name}} Event</h2> | ||
</div> | ||
<div class="event-info-container"> | ||
<ul> | ||
<li>Category: {{event.category.name}}</li> | ||
<li>Location: {{event.location.city}}</li> | ||
<li>Starts At: {{event.start_time}}</li> | ||
<li>Ends At: {{event.end_time}}</li> | ||
<li>Participants : {{event.participants_num}}/{{event.max_participants}}</li> | ||
</ul> | ||
</div> | ||
{% endblock %} | ||
{% block poll_info %}{% endblock %} | ||
{% block teams_info %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters