Improved setup and new data inicialization.
CI / Docker Lint (push) Successful in 30s

This commit is contained in:
2024-10-09 20:50:23 +02:00
parent e93a5ff3a9
commit d9489f2558
21 changed files with 2814 additions and 67 deletions
+48
View File
@@ -0,0 +1,48 @@
{% extends 'base.html.twig' %}
{% block title %}Example Data{% endblock %}
{% block body %}
<div class="container">
<h1>SomniaRooms - Example data!</h1>
<p>
Add example data to your SomniaRooms.
</p>
{{ form_start(form) }}
{% if isFormInvalid %}
<div class="msg-container msg-error">
{{ form_errors(form) }}
</div>
{% endif %}
<div class="form-section">
<h2>Room Categories</h2>
{% if hasRoomCategories %}
<div class="msg-container msg-warn">
<span>Warning: There are already room categories on the DB. More will be added.</span>
</div>
{% endif %}
{{ form_row(form.genRoomCategories) }}
</div>
<div class="form-section">
<h2>Fares and availability</h2>
{{ form_row(form.genFaretables) }}
{{ form_row(form.genAvailability) }}
{{ form_row(form.genMode) }}
<br>
{{ form_row(form.startDate) }}
{{ form_row(form.endDate) }}
</div>
<br>
{{ form_rest(form) }}
{{ form_end(form) }}
</div>
{% endblock %}
+24
View File
@@ -0,0 +1,24 @@
{% extends 'base.html.twig' %}
{% block title %}Setup!{% endblock %}
{% block body %}
<div class="container">
<h1>SomniaRooms - Set-Up!</h1>
{% if isError %}
<img src="{{ asset('resources/x.svg') }}" />
{% else %}
<img src="{{ asset('resources/coffee.svg') }}" />
{% endif %}
<p>{{message}}</p>
{% if linkRoute and linkLabel %}
<a href="{{ path(linkRoute) }}">{{linkLabel}}</a>
{% endif %}
</div>
{% endblock %}
+12
View File
@@ -0,0 +1,12 @@
{% extends 'base.html.twig' %}
{% block title %}Setup!{% endblock %}
{% block body %}
<div class="container">
<h1>SomniaRooms - Set-Up!</h1>
Setup your SomniaRooms backend application.
{{ form(form) }}
</div>
{% endblock %}