I have a table with the following structure.
    firstname string
    st            boolean

I can display the info with a view,
but I'd like to check/uncheck certain names
using the status check box, then delete
the checked names.

I feel I'm going about this the WRONG way
because most of the logic should be in
a controller, and views should mostly
only display the data.

Here's the view.

Thanks in advance!

<table>
{{ for r in recs : }}
<tr>
{{=TD(r.id)}} {{=TD(r.firstname)}}
<td><form> <input type = 'checkbox' name = 'st' {{ if r.st == True: }}
checked {{pass}} > </form> </td>
</tr>
{{pass}}
<table>

Reply via email to