styling for favorites
This commit is contained in:
parent
3c6a339f56
commit
aaea98eef1
@ -3,8 +3,8 @@ from . import views
|
||||
|
||||
app_name = 'roomservice'
|
||||
urlpatterns = [
|
||||
path('', views.home, name='home'),
|
||||
path('', views.favorites, name='home'),
|
||||
path('adminpage', views.admin, name='admin'),
|
||||
path('booking', views.booking, name='booking'),
|
||||
path('favorites', views.favorites, name='favorites'),
|
||||
path('search', views.search, name='search'),
|
||||
]
|
||||
|
||||
@ -3,8 +3,9 @@ from roomservice.models import Room
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# Create your views here.
|
||||
def home(request):
|
||||
def search(request):
|
||||
rooms = Room.objects.all()
|
||||
return render(request, 'search.jinja', {"title":"rooF(i)S is love rooF(i)S is live!!", "rooms":rooms})
|
||||
|
||||
|
||||
7
roofis2/static/css/style.css
Normal file
7
roofis2/static/css/style.css
Normal file
@ -0,0 +1,7 @@
|
||||
.fav {
|
||||
height: 3.5em;
|
||||
background: #5a6268;
|
||||
border-radius: 30px;
|
||||
vertical-align: middle;
|
||||
padding-left: -1em;
|
||||
}
|
||||
@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% block css_extra %}{% endblock %}
|
||||
{% block head %}
|
||||
<!--<link rel="stylesheet" href="./static/style.css" />-->
|
||||
<link rel="stylesheet" href="../static/css/style.css" />
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
{% endblock %}
|
||||
<script src="{{ static('js/script.js') }}"></script>
|
||||
|
||||
@ -1,10 +1,20 @@
|
||||
{% extends 'base.jinja' %}
|
||||
{% block content %}
|
||||
<h1>Ressourcenpool Bamberg</h1>
|
||||
<p><strong>Impressum</strong></p>
|
||||
<p>Anbieter:<br />Max Mustermann<br />Musterstraße 1<br />96049 Bamberg</p>
|
||||
<p>Kontakt:<br />Telefon: 0951/12345678<br />Telefax: 0951/1234567<br />E-Mail: mail@mustermann.de<br />Website: www.mustermann.de</p>
|
||||
<p> </p>
|
||||
<p>Bei redaktionellen Inhalten:</p>
|
||||
<p>Verantwortlich nach § 55 Abs.2 RStV<br />Moritz Schreiberling<br />Musterstraße 2<br />96049 Bamberg</p>
|
||||
<div class="row container">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-9">
|
||||
<div class="row">
|
||||
{% for favorite in favorites %}
|
||||
<div class="well col-3" align="center"><div class="fav">{{favorite.room_number}}</div></div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="well col-3" align="center"><div class="fav">fuck</div></div>
|
||||
<div class="well col-3" align="center"><div class="fav">this</div></div>
|
||||
<div class="well col-3" align="center"><div class="fav">god</div></div>
|
||||
<div class="well col-3" align="center"><div class="fav">damn</div></div>
|
||||
<div class="well col-3" align="center"><div class="fav">shit</div></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@ -28,11 +28,6 @@
|
||||
</form>
|
||||
<div class="col"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user