|
- <h2><%= H(Model.Title) %></h2>
- <div class="row">
- <div class="col-md-8 col-sm-8 col-xs-12">
- <%= H(Model.RecordCount) %> Kit found. Showing <%= H(Model.PageSize) %> records per page.
- <%= HTML.LinkToExt("<i class='bi bi-plus-square-fill'></i> New","Kit", "Create", empty, Array("class", "btn btn-xs btn-primary")) %>
- </div>
- <div class="col-md-4 col-sm-4 col-xs-12">
-
- <%= HTML.FormTag("Kit", "Search", empty, empty) %>
-
- <div class="col-md-10 col-sm-10 col-xs-12">
- <label class="sr-only" for="search">Search</label>
- <div class="input-group">
- <input type="text" class="form-control input-search" value='<%= Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q")) %>' name="q" id="search" placeholder="Search">
- <span class="input-group-addon group-icon"><span class="glyphicon glyphicon-eye-open"></span>
- <button type="submit" class="btn btn-success"><i class="bi bi-search"></i>Search</buttton>
- </div>
- </div>
-
- </form>
- </div>
- </div>
- <table id="Kit" class="table table-striped">
- <thead>
- <tr>
- <th></th>
- <th style="text-align: left">ID</th>
- <th style="text-align: left">JobNumber</th>
- <th style="text-align: left">Jcode</th>
- <th style="text-align: left">CreatedOn</th>
- <th style="text-align: left">LabelsPrinted</th>
- <th style="text-align: left">ExportedToSnailWorks</th>
- <th style="text-align: left">InkJetJob</th>
- <th style="text-align: left">JobType</th>
- <th style="text-align: left">Filename</th>
- <th style="text-align: left">Cass</th>
- <th style="text-align: left">Status</th>
- <th style="text-align: left">OutboundSTID</th>
- <th style="text-align: left">InboundSTID</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <% dim it : set it = Model.Kit.Iterator %>
- <% dim Kit %>
- <% While it.HasNext %>
- <% set Kit = it.GetNext() %>
- <tr>
- <td>
- <%= HTML.LinkToExt("<i class='bi bi-search'></i>", "Kit", "Edit", Array("Id", Kit.ID), Array("class", "btn btn-primary")) %>
- </td>
- <td><% = H(Kit.ID) %></td>
- <td><% = H(Kit.JobNumber) %></td>
- <td><% = H(Kit.Jcode) %></td>
- <td><% = H(Kit.CreatedOn) %></td>
- <td><% = H(Kit.LabelsPrinted) %></td>
- <td><% = H(Kit.ExportedToSnailWorks) %></td>
- <td><% = H(Kit.InkJetJob) %></td>
- <td><% = H(Kit.JobType) %></td>
- <td><% = H(Kit.Filename) %></td>
- <td><% = H(Kit.Cass) %></td>
- <td><% = H(Kit.Status) %></td>
- <td><% = H(Kit.OutboundSTID) %></td>
- <td><% = H(Kit.InboundSTID) %></td>
- </tr>
- <% Wend %>
- </tbody>
- </table>
- <div>
- <% If Model.CurrentPageNumber <> 1 then %>
- <%= HTML.LinkToExt("<i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <%= HTML.LinkToExt("<i class='bi bi-chevron-left'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.CurrentPageNumber - 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <% Else %>
- <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i></a>
-
- <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i></a>
-
- <% End If %>
- <% If CInt(Model.CurrentPageNumber) < CInt(Model.PageCount) then %>
- <%= HTML.LinkToExt("<i class='bi bi-chevron-right'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.CurrentPageNumber + 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <%= HTML.LinkToExt("<i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.PageCount,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <% Else %>
- <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i></a>
-
- <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i></a>
-
- <% End If %>
- </div>
- </div>
|