diff --git a/event/templates/event/create_event.html b/event/templates/event/create_event.html index 380e2c3..0198e68 100644 --- a/event/templates/event/create_event.html +++ b/event/templates/event/create_event.html @@ -1,11 +1,23 @@ {% extends 'base.html' %} {% block content %} -

Create Event

-
- {% csrf_token %} {{ form.as_p }} - - {% if error %} - - {% endif %} -
+
+

Create Event

+
+
+
+ {% csrf_token %} + {% for field in form %} +
+ {{ field.label_tag }} + {{ field }} +
+ {% endfor %} +
+ +
+ {% if error %} + + {% endif %} +
+
{% endblock %} diff --git a/event/templates/event/event_info.html b/event/templates/event/event_info.html index ddaa928..21018ab 100644 --- a/event/templates/event/event_info.html +++ b/event/templates/event/event_info.html @@ -1,11 +1,17 @@ {% extends 'base.html' %} {% block content %} -

{{event.name}} Event

-
  • Category: {{event.category.name}}
  • -
  • Location: {{event.location.city}}
  • -
  • Starts At: {{event.start_time}}
  • -
  • Ends At: {{event.end_time}}
  • -
  • Participants : {{event.participants_num}}/{{event.max_participants}}
  • +
    +

    {{event.name}} Event

    +
    +
    + +
    {% endblock %} {% block poll_info %}{% endblock %} {% block teams_info %}{% endblock %} diff --git a/static_home_page/static/web_page_css.css b/static_home_page/static/web_page_css.css index f927eee..8ac0d7c 100644 --- a/static_home_page/static/web_page_css.css +++ b/static_home_page/static/web_page_css.css @@ -108,6 +108,7 @@ form { flex-direction: column; max-width: 400px; margin: auto; + } form label { @@ -115,7 +116,9 @@ form label { margin-bottom: 0.5rem; } -p { font-size: 26px; } +p { + font-size: 26px; +} .logo { border-radius: 50%; @@ -127,3 +130,67 @@ p { font-size: 26px; } box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); transition: all 0.2s ease-in-out; } + +.create-event-form-header { + margin: 15px; +} + +.create-event-form-container { + margin: 20px; +} + +.create-event-form>div { + display: flex; + justify-content: space-between; + margin-bottom: 5px; + align-items: center; +} + +.create-event-form>div>label { + font-weight: normal; + font-size: 14px; + margin: 0; +} + +.create-event-form>div>input { + width: 200px; +} + +.create-event-form>div>select { + width: 200px; +} + +.create-event-form>.btn-container { + justify-content: center; +} + +.create-event-form>.btn-container>button { + width: 200px; +} + +.create-event-form>.error-label { + color: red; +} + +.create-event-form #field_is_private { + justify-content: flex-start; +} + +.create-event-form #field_is_private>input[type='checkbox'] { + width: 20px; +} + +.event-info-header { + margin: 15px; +} + +.event-info-container { + margin: 20px; + display: flex; + justify-content: center; +} + +.event-info-container>ul>li { + margin: 3px 0; + padding: 3px 0; +}