[dancer-users] table records into updateable checkbox list

Richard Reina gatorreina at gmail.com
Mon Aug 31 18:10:33 BST 2015


Does template toolkit provide of any sort of way to iterate a query results
like below but to also allow a space to the right (like an addon) for user
to type in text? So that I would have:

[checkbox] [table columns] [small text area]
I have been struggling with how to go about this for about a day and I
believe it is beyond my pay-grade.

I feel like I am close but have been stuck for so long that I am beginning
to question if I am going about this entirely the wrong way and that
perhaps there is an easier TT method.

<div class="container" style="margin-top:20px;">
  <div class="row">
    <div class="col-xs-12">
          <form role="form" action="openchallenges" method="POST">
            <h3 class="text-center">Open To Do</h3>
            <div class="well" style="max-height: 300px;overflow: auto;">
                <ul class="list-group">    <!-- <ul class="list-group
checked-list-box"> -->
             <table style="width:100%">
                <% FOREACH ID IN Chlngs.keys.sort %>
                <tr class="list-group-item">
                 <td width="5"> <input type="checkbox" name="<% Chlngs.$
ID.ID %>"</input> </td>
                  <td width="70"><% Chlngs.$ID.SNAME %></td>
                  <td width="75"><% Chlngs.$ID.ANAME %></td>
                  <td width="35"><% Chlngs.$ID.SSN %></td>
                  <td width="35"><% Chlngs.$ID.YR %></td>
                  <td width="250"><% Chlngs.$ID.CHNAME %></td>
                  <td width="550"><% Chlngs.$ID.DESCRIP %></td>
                  <% END %>
                </tr>
            </ul>
        </table>
        </div>
    <hr class="colorgraph">
    <div class="row">
    <div class="col-xs-12 col-md-12"><input type="submit" value="Submit"
class="btn btn-primary btn-block btn-lg"></div>
    </form>
    </div>
  </div>
</div>

Thanks,

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150831/1696ec2c/attachment.html>


More information about the dancer-users mailing list