index.html 1.38 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
    <div id="db_table_container">
        <table class="db_table" id="table">
            <thead>
                <tr><td class="column2"> name </td>
Marc Duez's avatar
Marc Duez committed
13
                    <td class="column2"> germline </td>
Marc Duez's avatar
Marc Duez committed
14
                    <td class="column1"> command </td>
Marc Duez's avatar
Marc Duez committed
15 16 17 18 19 20 21 22
                    <td> info </td>
                    <td class="column5"> </td>
                    <td class="column5"> </td>
                </tr>
            </thead>
           {{ 
           query = None
           c_id = ""
Marc Duez's avatar
Marc Duez committed
23
           query = db(db.config).select() 
Marc Duez's avatar
Marc Duez committed
24 25
           for row in query :}}
                <tr>
Marc Duez's avatar
Marc Duez committed
26
                    <td> {{=row.name }} </td>
Marc Duez's avatar
Marc Duez committed
27
                    <td> {{=row.germline }} </td>
Marc Duez's avatar
Marc Duez committed
28
                    <td> {{=row.command }} </td>
Marc Duez's avatar
Marc Duez committed
29
                    <td> {{=row.info }} </td>
Marc Duez's avatar
Marc Duez committed
30 31
                    <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
32 33 34 35 36 37
                </tr>
            {{pass}}
        </table>
        <table class="db_table" id="db_fixed_header"></table>
    </div>
    
Marc Duez's avatar
Marc Duez committed
38
    <span class="button" onclick="db.call('config/add')"> new config </span>
39 40 41 42 43 44 45
</div>

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