From 711303838e9852519b017a054ee509dc9727d689 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Wed, 27 May 2020 12:04:52 +0200 Subject: [PATCH] make it useful :-) --- coinmanager/coinc/static/coinc/main.js | 9 +++++++-- coinmanager/coinc/static/coinc/styles.css | 1 + coinmanager/coinc/templates/coinc/country.html | 6 +++--- coinmanager/coinc/templates/coinc/filter_country.html | 2 +- coinmanager/coinc/templates/coinc/index.html | 4 ---- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/coinmanager/coinc/static/coinc/main.js b/coinmanager/coinc/static/coinc/main.js index 8d442ae..5d4da5f 100644 --- a/coinmanager/coinc/static/coinc/main.js +++ b/coinmanager/coinc/static/coinc/main.js @@ -227,6 +227,11 @@ $(document).ready(function() { // Buttons // + + // go home + $('thead tr:first-child th').click(function() { + window.location = './'; }); + // button #begin_edit $('#begin_edit').click(function() { $('nav.navbar').fadeIn('fast'); @@ -234,7 +239,7 @@ $(document).ready(function() { // add coin $('td.coin').each(function() { - $(this).css('cursor', 'copy'); + $(this).css('cursor', 'cell'); $(this).click(function() { save_settings(); @@ -294,7 +299,7 @@ $(document).ready(function() { dataType: 'json', td: td, success: function(response) { - $(td).css('cursor', 'copy'); + $(td).css('cursor', 'cell'); if (response.status === 0) { render_response(data, this.td, settings); detach('add_coin_name'); diff --git a/coinmanager/coinc/static/coinc/styles.css b/coinmanager/coinc/static/coinc/styles.css index 432cbf4..359316e 100644 --- a/coinmanager/coinc/static/coinc/styles.css +++ b/coinmanager/coinc/static/coinc/styles.css @@ -187,6 +187,7 @@ thead > tr:first-child > th { padding: 5px; text-align: left; top: 0; + cursor: w-resize; } thead > tr:nth-child(2) > th { diff --git a/coinmanager/coinc/templates/coinc/country.html b/coinmanager/coinc/templates/coinc/country.html index d498bf3..c769691 100644 --- a/coinmanager/coinc/templates/coinc/country.html +++ b/coinmanager/coinc/templates/coinc/country.html @@ -6,10 +6,10 @@ - diff --git a/coinmanager/coinc/templates/coinc/filter_country.html b/coinmanager/coinc/templates/coinc/filter_country.html index 61188b1..b192c56 100644 --- a/coinmanager/coinc/templates/coinc/filter_country.html +++ b/coinmanager/coinc/templates/coinc/filter_country.html @@ -1,7 +1,7 @@ diff --git a/coinmanager/coinc/templates/coinc/index.html b/coinmanager/coinc/templates/coinc/index.html index d19298f..a55ca51 100644 --- a/coinmanager/coinc/templates/coinc/index.html +++ b/coinmanager/coinc/templates/coinc/index.html @@ -1,10 +1,6 @@ {% include 'header.html' with title='Münzsammlung' %} -{% include 'coinc/controlbar.html' with users=users %} {% if countrys %} {% include 'coinc/filter_country.html' with countrys=countrys %} - {% for country in countrys %} - {% show_country country %} - {% endfor %} {% else %}

Trage zuerst Länder im Adminbereich ein.

{% endif %} {% include 'footer.html' with title='Münzsammlung' %}
- + - {{ country.name }}{% if country.comment %} - {{ country.comment }}{% endif %} + {{ country.name }}{% if country.comment %} + - {{ country.comment }}{% endif %}