index.html 1.26 KB
Newer Older
1 2
{{extend 'db_layout.html'}}

3 4 5 6 7 8
{{('message' in globals())}}
{{if 'message' in globals():}}

<div>
    <h3>{{=message}}</h3>
    
Marc Duez's avatar
Marc Duez committed
9 10 11 12 13 14 15 16 17 18 19 20 21
    <div id="db_table_container">
        <table class="db_table" id="table">
            <thead>
                <tr><td class="column2"> name </td>
                    <td> info </td>
                    <td> command </td>
                    <td class="column5"> </td>
                    <td class="column5"> </td>
                </tr>
            </thead>
           {{ 
           query = None
           c_id = ""
Marc Duez's avatar
Marc Duez committed
22
           query = db(db.config).select() 
Marc Duez's avatar
Marc Duez committed
23 24
           for row in query :}}
                <tr>
Marc Duez's avatar
Marc Duez committed
25 26 27 28 29
                    <td> {{=row.name }} </td>
                    <td> {{=row.info }} </td>
                    <td> {{=row.command }} </td>
                    <td onclick="db.call('config/edit', {'id' :'{{=row.id}}'} )" > e </td>
                    <td onclick="db.call('config/confirm', {'id' :'{{=row.id}}'} )" > X </td>
Marc Duez's avatar
Marc Duez committed
30 31 32 33 34 35
                </tr>
            {{pass}}
        </table>
        <table class="db_table" id="db_fixed_header"></table>
    </div>
    
Marc Duez's avatar
Marc Duez committed
36
    <span class="button" onclick="db.call('config/add')"> new config </span>
37 38 39 40 41 42 43
</div>

{{elif 'content' in globals():}}
{{=content}}
{{else:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}