make it useful :-)
This commit is contained in:
parent
d74a62abb8
commit
711303838e
@ -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');
|
||||
|
@ -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 {
|
||||
|
@ -6,10 +6,10 @@
|
||||
<table name="{{ country.name_iso }}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="12">
|
||||
<a name="{{ country.name_iso }}"></a>
|
||||
<th colspan="12" title="Zurück zur Länderübersicht">
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<ul class="nav nav-pills">
|
||||
{% for country in countrys %}
|
||||
<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>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -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 %}
|
||||
<p>Trage zuerst Länder im Adminbereich ein.</p>{% endif %}
|
||||
{% include 'footer.html' with title='Münzsammlung' %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user