~edwinvandeven/openstudio/2.01

« back to all changes in this revision

Viewing changes to web2py/applications/OpenStudio/controllers/teachers.py

  • Committer: Edwin van de Ven
  • Date: 2013-09-10 04:10:49 UTC
  • Revision ID: edwinvandeven@home.nl-20130910041049-1zisek5a2yt2np0h
Final finetuning

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    grid.elements('span[title=Delete]', replace=None) # remove text from delete button
63
63
    
64
64
    # combine back and add buttons
65
 
 
 
65
    back = A(SPAN(_class="buttontext button", _title=T("Back")), SPAN(_class="icon leftarrow icon-arrow-left"), T("Back"), _class="w2p_trap button btn", \
 
66
        _href=URL('school_properties', 'index', user_signature=True))
66
67
    
67
68
    if 'edit' not in request.args and 'new' not in request.args:
68
69
        export = A(SPAN(_class="buttontext button", _title=T("Export contact list")), SPAN(_class="icon download icon-download"), " " + T("Export contact list"), _class="w2p_trap button btn", \
69
70
            _href=URL('export_excel', user_signature=True))
70
71
        # combine export and add buttons
71
72
        add = grid.element('a', _class='w2p_trap button btn')
72
 
        buttons = DIV(add, " ", export)
 
73
        buttons = DIV(back, " ", add, " ", export)
73
74
        grid.element('a', _class='w2p_trap button btn', replace=buttons)
74
75
    else:
75
76
        export = ''