styl przycisków zmiany strony

This commit is contained in:
Łukasz Jędyk 2019-01-27 13:01:04 +01:00
parent e3bb9dd669
commit 6affb9915b
6 changed files with 18 additions and 5 deletions

View File

@ -65,3 +65,16 @@ a {
padding: 10px;
border: 2px solid grey;
}
#page {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
display:inline-block;
color: #444;
border: 1px solid #CCC;
background: #efefef;
box-shadow: 0 0 5px -1px rgba(0,0,0,0.2);
cursor: pointer;
vertical-align: middle;
max-width: 100px;
padding: 5px;
text-align: center;
}

View File

@ -84,21 +84,21 @@
</tr>
{% endfor %}
</table>
<br><br>
<br>
<center>
{% if firstpage == False %}
<a href="{% url 'indexpage' currentpage|add:'-1' %}"><button>Poprzednia strona</button></a>
<a href="{% url 'indexpage' currentpage|add:'-1' %}"><button id="page"><<</button></a>
{% endif %}
{% for p in pages %}
<a href="{% url 'indexpage' p %}">{{ p }}</a>
<a href="{% url 'indexpage' p %}"><div id="page">{{ p }}</div></a>
{% endfor %}
{% if lastpage == False %}
<a href="{% url 'indexpage' currentpage|add:'+1' %}"><button>Następna strona</button></a>
<a href="{% url 'indexpage' currentpage|add:'+1' %}"><button id="page">>></button></a>
{% endif %}
<br />
<br>
<table id="images">
<th><input type="image" src="static/images/background1.jpg" height="150px" width="250px" onClick="changeBackground(imageUrl='static/images/background1.jpg')"/></th>
<th><input type="image" src="static/images/background2.jpg" height="150px" width="250px" onClick="changeBackground(imageUrl='static/images/background2.jpg')"/></th>