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 %}
+8 -5
View File
@@ -1,17 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<title>{% block title %}Welcome!{% endblock %} - SomniaRooms</title>
<link rel="icon" href="{{asset('resources/bed.svg')}}">
{% block stylesheets %}
{% endblock %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
{% block javascripts %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
{% endblock %}
</head>
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>
</html>