Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if attendee in agenda.meeting.attendees %}
- <img class="icon" src="/media/img/attending.png" alt="Attending">
- {% else %}
- <img class="icon" src="/media/img/not_attending.png" alt="Not Attending" onclick="changeStatus()">
- {% endif %}
- code code code and more code
- blah blah blah wohoooo
- scripts here blah blah blah
- <script>
- function changeStatus()
- {
- $.post("{% url summit.schedule.views.attend_meeting agenda.meeting.summit.name, agenda.meeting.id %}", { participation: "ATTENDING" } , function(data){if data[success]=False: <img class="icon" src="/media/img/attending.png alt="Attending">});
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement