Hi guys, somebody know how hide the comments column at a edit form using
SQLFORM.grid() ??
I can do it using jquery with:
$("tr td:nth-child(3)").each(function(){this.remove()});
But 'm finding a server side(controllers maybe) way to do it..
<table>
<tbody>
<tr id="velocities_id__row"><td class="w2p_fl"><label for="velocities_id" id
="velocities_id__label">Id: </label></td><td class="w2p_fw"><span id=
"velocities_id">1</span></td><td class="w2p_fc"></td></tr>
<tr id="velocities_customer__row"><td class="w2p_fl"><label for=
"velocities_customer" id="velocities_customer__label">Cliente:
</label></td><td class="w2p_fw"><select class="generic-widget" id=
"velocities_customer" name="customer" disabled="disabled"><option value=""
></option><option selected="selected" value="1">Intsercom Ltda
</option></select></td><td class="w2p_fc"></td></tr>
<tr id="velocities_name__row"><td class="w2p_fl"><label for=
"velocities_name" id="velocities_name__label">Nombre: </label></td><td class
="w2p_fw"><input class="string" id="velocities_name" name="name" type="text"
value="Ciudad" size="18" maxlength="14"></td><td class="w2p_fc"></td></tr>
<tr id="velocities_max__row"><td class="w2p_fl"><label for="velocities_max"
id="velocities_max__label">Velocidad Maxima: </label></td><td class="w2p_fw"
><input class="slider" id="velocities_max" name="max" type="number" value=
"40" min="10" max="200" maxlength="5" size="6"></td><td class="w2p_fc"
></td></tr>
<tr id="delete_record__row"><td class="w2p_fl"><label for="delete_record" id
="delete_record__label">Marque para eliminar: </label></td><td class=
"w2p_fw"><input class="delete cascade_delete" id="delete_record" name=
"delete_this_record" type="checkbox" value="on"></td><td class="w2p_fc"
></td></tr>
<tr id="submit_record__row"><td class="w2p_fl"></td><td class="w2p_fw"
><input type="submit" value="Guardar"></td><td class="w2p_fc"></td></tr>
</tbody>
</table>
Thanks in advance.
Christian.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.