Private
Public Access
1
0

add boat done

This commit is contained in:
Sander Roosendaal
2018-10-01 09:41:24 +02:00
parent 004031e352
commit f67bcdd95b
6 changed files with 25 additions and 19 deletions

View File

@@ -986,7 +986,7 @@ def course_map(course):
) )
div = """ div = """
<div id="map_canvas" style="width: 100%; height: 400px;"><p>&nbsp;</p></div> <div id="map_canvas" style="width: 100%; height: 400px; margin:0; padding:0;grid-gap:0;"></div>
""" """
return script,div return script,div

View File

@@ -13,19 +13,16 @@
<h1>{{ race.name }}</h1> <h1>{{ race.name }}</h1>
<ul class="main-content"> <ul class="main-content">
<li class="grid_2"> <li class="grid_2">
<p> <p>
<h2>Course</h2> <h2>Course</h2>
</p> </p>
<p> <div>
{{ coursediv|safe }} {{ coursediv|safe }}
{{ coursescript|safe }} {{ coursescript|safe }}
</div>
</p>
</li> </li>
<li class="grid_2"> <li class="grid_2">
<div id="raceinfo"> <div id="raceinfo">

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends "newbase.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load rowerfilters %} {% load rowerfilters %}
@@ -16,13 +16,10 @@
{% endblock %} {% endblock %}
{% block content %} {% block main %}
<div class="grid_12 alpha">
<div class="grid_6 alpha">
<h1>Register for {{ race.name }}</h1> <h1>Register for {{ race.name }}</h1>
</div>
</div>
<form id="race_register_form" <form id="race_register_form"
method="post"> method="post">
@@ -44,10 +41,8 @@
</table> </table>
</div> </div>
</div> </div>
<div class="grid_2 prefix_2 suffix_8">
{% csrf_token %} {% csrf_token %}
<input class="button green" type="submit" value="Submit"> <input class="button green" type="submit" value="Submit">
</div>
</form> </form>
@@ -55,3 +50,7 @@
{% block scripts %} {% block scripts %}
{% endblock %} {% endblock %}
{% block sidebar %}
{% include 'menu_racing.html' %}
{% endblock %}

View File

@@ -13908,7 +13908,7 @@ def virtualevent_addboat_view(request,id=0):
'form':form, 'form':form,
'race':race, 'race':race,
'rowerid':r.id, 'rowerid':r.id,
'active': 'nav-racing',
}) })
@login_required() @login_required()

View File

@@ -312,6 +312,14 @@ th.rotate > div > span {
color: #ffffff; color: #ffffff;
} }
.leafletmap {
padding:0;
margin:0;
display: grid;
grid-gap: 0;
}
.input { .input {
font: 1.1em/1.5em sans-serif; font: 1.1em/1.5em sans-serif;
text-decoration: none; text-decoration: none;
@@ -902,3 +910,4 @@ a.wh:hover {
/* show children when item is checked */ /* show children when item is checked */
display: block; display: block;
} }

View File

@@ -390,6 +390,7 @@
grid-column-end: span 4; grid-column-end: span 4;
} }
.maxheight { .maxheight {
max-height: 300px; max-height: 300px;
overflow: scroll; overflow: scroll;