Enhanced Map control
This commit is contained in:
@@ -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( {
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user