update jquery

This commit is contained in:
Robert Einsle 2017-02-02 21:17:04 +01:00
parent 047a022f7e
commit a003fbcf19
5 changed files with 11024 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
.idea/ .idea/
static/ /static/
*.sqlite3 *.sqlite3
*.py[cod] *.py[cod]
.so .so

View File

@ -0,0 +1,3 @@
$('#location-select').change(function(){
$('form#location-form').submit();
});

11008
billard/static/billard/js/jquery-1.12.4.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -3,9 +3,10 @@
{% block title %}Location Data{% endblock %} {% block title %}Location Data{% endblock %}
{% block content %} {% block content %}
<form action="." method="post" id="location-form">{% csrf_token %} <form action="." method="post" id="location-form">
{% csrf_token %}
<div id="location-selector" class="alert"> <div id="location-selector" class="alert">
<select class="form-control" form="location-form" name="location-selector"> <select class="form-control" form="location-form" name="location-selector" id="location-select">
{% for loc in locations %} {% for loc in locations %}
<option value="{{ loc.id }}"{% if loc.id == location_id %} selected{% endif %}>{{ loc.code }} - {{ loc.name }}</option> <option value="{{ loc.id }}"{% if loc.id == location_id %} selected{% endif %}>{{ loc.code }} - {{ loc.name }}</option>
{% endfor %} {% endfor %}
@ -34,7 +35,7 @@
{% endif %} {% endif %}
{% if cli.desk2_enable %} {% if cli.desk2_enable %}
<div class="col-md-6"> <div class="col-md-6">
<div class="col-sm-12 box table-info alert {% with cli.accounting_2|last as last %}{% if last.time_to is None %}alert-info{% else %}alert-success{% endif %}{% endwith %}"> <div class="col-md-12 table-info alert {% with cli.accounting_2|last as last %}{% if last.time_to is None %}alert-info{% else %}alert-success{% endif %}{% endwith %}">
<h4 style="text-align: center">(2) {{ cli.desk2_name }}</h4> <h4 style="text-align: center">(2) {{ cli.desk2_name }}</h4>
{% if cli.accounting_2 %} {% if cli.accounting_2 %}
<table class="table"> <table class="table">
@ -52,7 +53,9 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<div class="alert alert-danger">Keine Tische angelegt!</div> <div class="col-md-12">
<div class="col-md-12 alert alert-danger">Keine Tische angelegt!</div>
</div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}