This commit is contained in:
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user