Enhanced Map control

This commit is contained in:
Martin Bauer
2013-09-26 21:56:32 +02:00
parent 204c8773a2
commit 11135b5592
43 changed files with 574 additions and 563 deletions

View File

@@ -44,7 +44,7 @@
function putStatus( button, status ) {
p = button.parent();
putObject = [ { "event": p.data("event-id"),
"musician": p.data("username"),
"user": p.data("username"),
"status": status } ];
request = $.ajax( {
@@ -66,7 +66,7 @@
putObject = [ { "event": $(this).data("event-id"),
"musician": $(this).data("username"),
"user": $(this).data("username"),
"comment": $(this).val() } ];
$.ajax( {

View File

@@ -72,7 +72,7 @@
dataObject = {
"event" : $(this).data("event"),
"musician": $(this).data("musician"),
"user" : $(this).data("username"),
"status" : $(this).children("button").data("status")
};
@@ -117,7 +117,7 @@
<tr>
<th> Termin </th>
<th> Datum </th>
{% for name in musicianNames %}
{% for name in usernames %}
<th> {{ name|capfirst }} </th>
{% endfor %}
@@ -133,7 +133,7 @@
{% for p in event.participation %}
<td class="center userEventTableData" data-musician="{{p.musician.user.username}}" data-event="{{event.pk}}">
<td class="center userEventTableData" data-username="{{p.user.username}}" data-event="{{event.pk}}">
{% if p.status == "Yes" %}
<button class="btn btn-mini btn-success eventButton" title="{{p.comment}}" data-status="{{p.status}}">
{% if p.comment %} <i class="icon-comment icon-white"></i> {% endif %}