Consolidated ASP Classic MVC framework from best components
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

87 wiersze
4.7KB

  1. <div class="container mt-4">
  2. <nav aria-label="breadcrumb" class="mb-3">
  3. <ol class="breadcrumb">
  4. <li class="breadcrumb-item"><a href="/householder-names">Householder Names</a></li>
  5. <% If IsObject(HouseholderNameController.household) Then %>
  6. <li class="breadcrumb-item"><a href="/households/<%= HouseholderNameController.household.Id %>"><%= Server.HTMLEncode(HouseholderNameController.household.Address) %></a></li>
  7. <% End If %>
  8. <li class="breadcrumb-item active">New</li>
  9. </ol>
  10. </nav>
  11. <h1 class="mb-4">
  12. New Householder Name
  13. <% If IsObject(HouseholderNameController.household) Then %>
  14. <small class="text-muted">for <%= Server.HTMLEncode(HouseholderNameController.household.Address) %></small>
  15. <% End If %>
  16. </h1>
  17. <% Flash().ShowSuccessIfPresent %>
  18. <% Flash().ShowErrorsIfPresent %>
  19. <div class="row">
  20. <div class="col-md-8">
  21. <div class="card">
  22. <div class="card-body">
  23. <form method="post" action="/householder-names">
  24. <div class="mb-3">
  25. <label for="Name" class="form-label">Name <span class="text-danger">*</span></label>
  26. <input type="text" class="form-control" id="Name" name="Name" required autofocus
  27. value="<%= Server.HTMLEncode(HouseholderNameController.householderName.Name & "") %>">
  28. </div>
  29. <div class="mb-3">
  30. <label for="HouseholdId" class="form-label">Household <span class="text-danger">*</span></label>
  31. <% If IsObject(HouseholderNameController.household) Then %>
  32. <input type="hidden" name="HouseholdId" value="<%= HouseholderNameController.household.Id %>">
  33. <input type="text" class="form-control" readonly value="<%= Server.HTMLEncode(HouseholderNameController.household.Address) %>">
  34. <% Else %>
  35. <input type="number" class="form-control" id="HouseholdId" name="HouseholdId" required
  36. value="<%= HouseholderNameController.householderName.HouseholdId %>"
  37. placeholder="Enter Household ID">
  38. <div class="form-text">Enter the ID of the household this name belongs to.</div>
  39. <% End If %>
  40. </div>
  41. <!-- IsBusiness moved to Household -->
  42. <div class="mb-3">
  43. <div class="form-check">
  44. <input class="form-check-input" type="checkbox" id="LetterReturned" name="LetterReturned" value="1"
  45. <% If HouseholderNameController.householderName.LetterReturned = 1 Then Response.Write "checked" End If %>>
  46. <label class="form-check-label" for="LetterReturned">
  47. Letter was returned
  48. </label>
  49. </div>
  50. </div>
  51. <div class="mb-3">
  52. <label for="ReturnDate" class="form-label">Return Date</label>
  53. <input type="date" class="form-control" id="ReturnDate" name="ReturnDate">
  54. <div class="form-text">Only fill in if letter was returned.</div>
  55. </div>
  56. <div class="d-flex gap-2">
  57. <button type="submit" class="btn btn-primary">Create Householder Name</button>
  58. <a href="/householder-names<% If HouseholderNameController.householderName.HouseholdId > 0 Then Response.Write "?household=" & HouseholderNameController.householderName.HouseholdId End If %>" class="btn btn-secondary">Cancel</a>
  59. </div>
  60. </form>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-md-4">
  65. <div class="card">
  66. <div class="card-header">
  67. <h5 class="mb-0">Help</h5>
  68. </div>
  69. <div class="card-body">
  70. <p class="mb-2"><strong>Name:</strong> The name of the person or business at this address.</p>
  71. <p class="mb-2"><strong>Type:</strong> Business/Residential is now stored on the household, not the name.</p>
  72. <p class="mb-0"><strong>Letter Returned:</strong> Check if a letter sent to this name was returned as undeliverable.</p>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>

Powered by TurnKey Linux.