make it useful :-)

This commit is contained in:
koksnuss 2020-05-27 12:04:52 +02:00
parent d74a62abb8
commit 711303838e
5 changed files with 12 additions and 10 deletions

View File

@ -227,6 +227,11 @@ $(document).ready(function() {
// Buttons // Buttons
// //
// go home
$('thead tr:first-child th').click(function() {
window.location = './'; });
// button #begin_edit // button #begin_edit
$('#begin_edit').click(function() { $('#begin_edit').click(function() {
$('nav.navbar').fadeIn('fast'); $('nav.navbar').fadeIn('fast');
@ -234,7 +239,7 @@ $(document).ready(function() {
// add coin // add coin
$('td.coin').each(function() { $('td.coin').each(function() {
$(this).css('cursor', 'copy'); $(this).css('cursor', 'cell');
$(this).click(function() { $(this).click(function() {
save_settings(); save_settings();
@ -294,7 +299,7 @@ $(document).ready(function() {
dataType: 'json', dataType: 'json',
td: td, td: td,
success: function(response) { success: function(response) {
$(td).css('cursor', 'copy'); $(td).css('cursor', 'cell');
if (response.status === 0) { if (response.status === 0) {
render_response(data, this.td, settings); render_response(data, this.td, settings);
detach('add_coin_name'); detach('add_coin_name');

View File

@ -187,6 +187,7 @@ thead > tr:first-child > th {
padding: 5px; padding: 5px;
text-align: left; text-align: left;
top: 0; top: 0;
cursor: w-resize;
} }
thead > tr:nth-child(2) > th { thead > tr:nth-child(2) > th {

View File

@ -6,10 +6,10 @@
<table name="{{ country.name_iso }}"> <table name="{{ country.name_iso }}">
<thead> <thead>
<tr> <tr>
<th colspan="12"> <th colspan="12" title="Zurück zur Länderübersicht">
<a name="{{ country.name_iso }}"></a>
<img src="/static/coinc/images/{{ country.name_iso }}.png" /> <img src="/static/coinc/images/{{ country.name_iso }}.png" />
<a href="{% url 'coinc:country' country.name_iso %}">{{ country.name }}</a>{% if country.comment %}<small> - {{ country.comment }}</small>{% endif %} {{ country.name }}{% if country.comment %}
<small> - {{ country.comment }}</small>{% endif %}
</th> </th>
</tr> </tr>
<tr> <tr>

View File

@ -1,7 +1,7 @@
<ul class="nav nav-pills"> <ul class="nav nav-pills">
{% for country in countrys %} {% for country in countrys %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link btn btn-outline-primary" href="#{{ country.name_iso }}">{{ country.name }}</a> <a class="nav-link btn btn-outline-primary" href="{% url 'coinc:country' country.name_iso %}">{{ country.name }}</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@ -1,10 +1,6 @@
{% include 'header.html' with title='Münzsammlung' %} {% include 'header.html' with title='Münzsammlung' %}
{% include 'coinc/controlbar.html' with users=users %}
{% if countrys %} {% if countrys %}
{% include 'coinc/filter_country.html' with countrys=countrys %} {% include 'coinc/filter_country.html' with countrys=countrys %}
{% for country in countrys %}
{% show_country country %}
{% endfor %}
{% else %} {% else %}
<p>Trage zuerst Länder im Adminbereich ein.</p>{% endif %} <p>Trage zuerst Länder im Adminbereich ein.</p>{% endif %}
{% include 'footer.html' with title='Münzsammlung' %} {% include 'footer.html' with title='Münzsammlung' %}