Consolidated ASP Classic MVC framework from best components
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- <div class="container mt-4">
- <nav aria-label="breadcrumb" class="mb-3">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="/householder-names">Householder Names</a></li>
- <% If IsObject(HouseholderNameController.household) Then %>
- <li class="breadcrumb-item"><a href="/households/<%= HouseholderNameController.household.Id %>"><%= Server.HTMLEncode(HouseholderNameController.household.Address) %></a></li>
- <% End If %>
- <li class="breadcrumb-item active">New</li>
- </ol>
- </nav>
-
- <h1 class="mb-4">
- New Householder Name
- <% If IsObject(HouseholderNameController.household) Then %>
- <small class="text-muted">for <%= Server.HTMLEncode(HouseholderNameController.household.Address) %></small>
- <% End If %>
- </h1>
-
- <% Flash().ShowSuccessIfPresent %>
- <% Flash().ShowErrorsIfPresent %>
-
- <div class="row">
- <div class="col-md-8">
- <div class="card">
- <div class="card-body">
- <form method="post" action="/householder-names">
- <div class="mb-3">
- <label for="Name" class="form-label">Name <span class="text-danger">*</span></label>
- <input type="text" class="form-control" id="Name" name="Name" required autofocus
- value="<%= Server.HTMLEncode(HouseholderNameController.householderName.Name & "") %>">
- </div>
-
- <div class="mb-3">
- <label for="HouseholdId" class="form-label">Household <span class="text-danger">*</span></label>
- <% If IsObject(HouseholderNameController.household) Then %>
- <input type="hidden" name="HouseholdId" value="<%= HouseholderNameController.household.Id %>">
- <input type="text" class="form-control" readonly value="<%= Server.HTMLEncode(HouseholderNameController.household.Address) %>">
- <% Else %>
- <input type="number" class="form-control" id="HouseholdId" name="HouseholdId" required
- value="<%= HouseholderNameController.householderName.HouseholdId %>"
- placeholder="Enter Household ID">
- <div class="form-text">Enter the ID of the household this name belongs to.</div>
- <% End If %>
- </div>
-
- <!-- IsBusiness moved to Household -->
-
- <div class="mb-3">
- <div class="form-check">
- <input class="form-check-input" type="checkbox" id="LetterReturned" name="LetterReturned" value="1"
- <% If HouseholderNameController.householderName.LetterReturned = 1 Then Response.Write "checked" End If %>>
- <label class="form-check-label" for="LetterReturned">
- Letter was returned
- </label>
- </div>
- </div>
-
- <div class="mb-3">
- <label for="ReturnDate" class="form-label">Return Date</label>
- <input type="date" class="form-control" id="ReturnDate" name="ReturnDate">
- <div class="form-text">Only fill in if letter was returned.</div>
- </div>
-
- <div class="d-flex gap-2">
- <button type="submit" class="btn btn-primary">Create Householder Name</button>
- <a href="/householder-names<% If HouseholderNameController.householderName.HouseholdId > 0 Then Response.Write "?household=" & HouseholderNameController.householderName.HouseholdId End If %>" class="btn btn-secondary">Cancel</a>
- </div>
- </form>
- </div>
- </div>
- </div>
-
- <div class="col-md-4">
- <div class="card">
- <div class="card-header">
- <h5 class="mb-0">Help</h5>
- </div>
- <div class="card-body">
- <p class="mb-2"><strong>Name:</strong> The name of the person or business at this address.</p>
- <p class="mb-2"><strong>Type:</strong> Business/Residential is now stored on the household, not the name.</p>
- <p class="mb-0"><strong>Letter Returned:</strong> Check if a letter sent to this name was returned as undeliverable.</p>
- </div>
- </div>
- </div>
- </div>
- </div>
|