diff --git a/app/templates/schedule/create.html b/app/templates/schedule/create.html new file mode 100644 index 0000000..d847d55 --- /dev/null +++ b/app/templates/schedule/create.html @@ -0,0 +1,330 @@ +{% extends "base.html" %} + +{% block title %}Add Reservation - Edu-Space Admin{% endblock %} + +{% block content %} +
+
+
+
+

+ New Reservation +

+ + Back to Reservations + +
+
+
+ +
+
+
+
+
+ Reservation Details +
+
+
+
+ {{ form.hidden_tag() }} + +
+
+ {{ form.classroom_id.label(class="form-label") }} + {{ form.classroom_id(class="form-select", id="classroom-select") }} + {% if form.classroom_id.errors %} +
+ {{ form.classroom_id.errors[0] }} +
+ {% endif %} + Select a classroom for your reservation +
+ +
+ {{ form.commission_id.label(class="form-label") }} + {{ form.commission_id(class="form-select", id="commission-select") }} + {% if form.commission_id.errors %} +
+ {{ form.commission_id.errors[0] }} +
+ {% endif %} + Select the subject/commission +
+
+ +
+
+ {{ form.start_time.label(class="form-label") }} + {{ form.start_time(class="form-control", id="start-time") }} + {% if form.start_time.errors %} +
+ {{ form.start_time.errors[0] }} +
+ {% endif %} + When will the class start? +
+ +
+ {{ form.end_time.label(class="form-label") }} + {{ form.end_time(class="form-control", id="end-time") }} + {% if form.end_time.errors %} +
+ {{ form.end_time.errors[0] }} +
+ {% endif %} + When will the class end? +
+
+ +
+
+ {{ form.purpose.label(class="form-label") }} + {{ form.purpose(class="form-control", placeholder="Regular class, exam, study session, etc.") }} + {% if form.purpose.errors %} +
+ {{ form.purpose.errors[0] }} +
+ {% endif %} +
+ +
+ {{ form.expected_attendees.label(class="form-label") }} + {{ form.expected_attendees(class="form-control", placeholder="30") }} + {% if form.expected_attendees.errors %} +
+ {{ form.expected_attendees.errors[0] }} +
+ {% endif %} + Number of expected attendees +
+
+ +
+ {{ form.notes.label(class="form-label") }} + {{ form.notes(class="form-control", rows="3", placeholder="Any additional notes or special requirements...") }} + {% if form.notes.errors %} +
+ {{ form.notes.errors[0] }} +
+ {% endif %} +
+ + +
+
+ Reservation Summary +
+
+

+ Selected Classroom: + Not selected +

+

+ Duration: + Not calculated +

+

+ Commission: + Not selected +

+
+
+ +
+ + Cancel + + {{ form.submit(class="btn btn-success") }} +
+
+
+
+
+
+ + +
+
+
+
+
+ Reservation Guidelines +
+
+
+
+
+
📅 Booking Rules
+
    +
  • Reservations can be made up to 3 months in advance
  • +
  • Cannot book in the past
  • +
  • Maximum duration: 8 hours per reservation
  • +
  • Cancellations must be 24 hours before start time
  • +
+
+
+
🚨 Important Notes
+
    +
  • Check classroom capacity before booking
  • +
  • Pending reservations require approval
  • +
  • Time slots must not overlap
  • +
  • System automatically detects conflicts
  • +
+
+
+
+
+
+
+
+{% endblock %} + +{% block extra_js %} + +{% endblock %} \ No newline at end of file