|
- <h2><%= H(Model.Title & " " & Model.Kit.Jurisdiction) %></h2>
- <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("KitEditForm")) %>
- <%= HTML.Hidden("Id", Model.Kit.ID) %>
- <div class="row">
- <div class="col-md-6">
- <h2>Job Number: <%= Model.Kit.JobNumber %></h2>
- <p><strong>Jurisdiction:</strong> <%= Model.Kit.Jurisdiction %></p>
- <p><strong>Label Count:</strong> <%= Model.Kit.LabelCount %></p>
- <p><strong>Created On:</strong> <%= Model.Kit.CreatedOn %></p>
- <p><strong>Labels Printed On :</strong> <%= Model.Kit.LabelsPrinted %></p>
- <p><strong>Exported to SnailWorks On:</strong> <%= Model.Kit.ExportedToSnailWorks %></p>
- <% IF Model.Kit.Status = "Ready To Assign STIDS" THEN %>
- <%= HTML.FormTag("Kit","SwitchBoardPurpleEnvelopeEditPost",empty,empty) %>
- <p><strong>Amount of Office Copies:</strong></p>
- <%= HTML.TextBox("OfficeCopiesAmount","0") %>
- <p></p>
- <p><strong>Select Outbound STID:</strong></p>
- <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("KitEditForm")) %>
- <%= HTML.Hidden("Id", Model.Kit.ID) %>
- <%= HTML.DropDownListExt("OutboundSTID","hmm",Model.StidDropDown,"STID","OPTION",Array("Class","form-select")) %>
- <p></p>
- <%= HTML.Checkbox("InBoundTracking",0) %><strong>Inbound Tracking</strong>
- <p></p>
- <p><%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save", "btn-primary") %></p>
- </form>
- <p></p>
- <hr>
- <h4>Color Assignment</h4>
- <div class="card mb-3">
- <div class="card-header">
- <strong>Assign Color to ALL Labels in Kit</strong>
- </div>
- <div class="card-body">
- <%= HTML.FormTag("Kit","AssignKitColorPost",empty,empty) %>
- <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("ColorAssignForm")) %>
- <%= HTML.Hidden("Id", Model.Kit.ID) %>
- <div class="row">
- <div class="col-md-6">
- <label>Select Color for All Labels:</label>
- <%= HTML.DropDownListExt("KitColorId","",Model.ColorsDropDown,"ID","Name",Array("Class","form-select")) %>
- </div>
- <div class="col-md-6">
- <p></p>
- <%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Apply to All", "btn-success") %>
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="card mb-3">
- <div class="card-header">
- <strong>Assign Colors by Precinct</strong>
- </div>
- <div class="card-body">
- <%= HTML.FormTag("Kit","AssignPrecinctColorsPost",empty,empty) %>
- <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("ColorAssignForm")) %>
- <%= HTML.Hidden("Id", Model.Kit.ID) %>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Precinct</th>
- <th>Current Color</th>
- <th>Assign New Color</th>
- </tr>
- </thead>
- <tbody>
- <%
- dim precinctRS : set precinctRS = Model.Precincts
- dim colorsRS
- Do Until precinctRS.EOF
- %>
- <tr>
- <td><%= H(precinctRS("PRECINCT")) %></td>
- <td>
- <% If Not IsNull(precinctRS("ColorId")) AND Len(precinctRS("ColorId")) > 0 Then %>
- <% dim currentColor : set currentColor = ColorsRepository.FindByID(precinctRS("ColorId")) %>
- <%= H(currentColor.Name) %>
- <% Else %>
- <em>Not assigned</em>
- <% End If %>
- </td>
- <td>
- <%
- set colorsRS = ColorsRepository.GetColorsDropDownRS()
- %>
- <%= HTML.DropDownListExt("PrecinctColor_" & precinctRS("PRECINCT"), precinctRS("ColorId"), colorsRS, "ID", "Name", Array("Class","form-select form-select-sm")) %>
- </td>
- </tr>
- <%
- precinctRS.MoveNext
- Loop
- %>
- </tbody>
- </table>
- <p><%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save Precinct Colors", "btn-primary") %></p>
- </form>
- </div>
- </div>
- <% ELSE %>
- <p><strong>Office Copies Amount :</strong> <%= Model.Kit.OfficeCopiesAmount %></p>
- <% END IF %>
- </div>
- </div>
|