~edwinvandeven/openstudio/2018.1

« back to all changes in this revision

Viewing changes to views/workshops/messages.html

  • Committer: Edwin van de Ven
  • Date: 2018-03-07 11:59:31 UTC
  • Revision ID: edwinvandeven@home.nl-20180307115931-kiwy79us9029my79
Moved workshops.py to events.py
Renamed products to tickets

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{{extend 'layout.html'}}
2
 
{{block header}}
3
 
{{=back}}
4
 
{{=btn_mail}}
5
 
{{end}}
6
 
 
7
 
<div class='row'>
8
 
    <div class='col-md-12'>
9
 
        <div class="nav-tabs-custom">
10
 
            {{=menu}}
11
 
        <div class="tab-content">
12
 
            {{=content}}
13
 
        </div>
14
 
    </div>
15
 
</div>
16
 
 
17
 
 
18
 
<script src={{=URL('static', 'plugin_os-js/general/openstudio.js')}}></script>
19
 
 
20
 
{{ import os }}
21
 
{{ include os.path.join(request.folder,'static','plugin_os-js/general/ajaj_post.html')}}
22
 
 
23
 
<script>
24
 
 
25
 
$('ul.list_messages li').click(function() {
26
 
        remove_active_class();
27
 
        $(this).addClass('active');
28
 
        $id = $(this).attr('id');
29
 
        url = '/workshops/messages_set_id.json';
30
 
        data = {};
31
 
        data['msgID'] = $id;
32
 
        $target = $('#message_display');
33
 
        ajaj_post(data, $target, url);
34
 
});
35
 
 
36
 
function remove_active_class() {
37
 
        $('ul.list_messages li').each(function() {
38
 
                $(this).removeClass('active');
39
 
        });
40
 
}
41
 
 
42
 
 
43
 
</script>
44
 
 
45