Added a drop date option at the end of the wizard for Postcards only.

This commit is contained in:
Josh Deck 2026-03-25 13:45:06 -04:00
parent 5a6ef3583a
commit 6ff8a8b817
4 changed files with 370 additions and 351 deletions

View File

@ -497,6 +497,18 @@ else if (ShowWizard)
<p>I'll be sending in a check by the invoice's due date (4/24/2026).</p>
}
</div>
@if (isPostcard)
{
<div class="col-12">
<h4>When would you like your cards to be in homes?</h4>
<TelerikButtonGroup SelectionMode="@ButtonGroupSelectionMode.Single" Class="vertical-buttons block-buttons mb-5">
<ButtonGroupToggleButton @bind-Selected="@beforeMemorialDay">Before Memorial Day</ButtonGroupToggleButton>
<ButtonGroupToggleButton @bind-Selected="@beforeJulyFourth">Before July 4th</ButtonGroupToggleButton>
</TelerikButtonGroup>
</div>
}
<div class="col-12">
<label style="display:block" for="RequestedQuantity" class="text-center mb-3">Requested Quantity</label>
<TelerikTextBox class="mb-3" Id="RequestedQuantity" @bind-Value="@requestedQuantity" MaxLength="6" Width="15rem"></TelerikTextBox>

View File

@ -130,8 +130,17 @@ public partial class Home
if (int.TryParse(requestedQuantity, out _))
requestedQuantity = string.Format("{0:#,##0}", int.Parse(requestedQuantity));
string timingString = "";
if (isPostcard)
{
if (beforeJulyFourth)
timingString = "<tr><td>Timing:</td><td>Before July 4th</td></tr>";
else if (beforeMemorialDay)
timingString = "<tr><td>Timing:</td><td>Before Memorial Day</td></tr>";
}
var paymentString = string.Format("<tr><td>Payment Method:</td><td>{0}</td></tr>" +
"<tr style='padding-top:14px'><td>Requested Quantity:</td><td>{1}</td></tr>" +
"<tr style='padding-top:14px'><td>Requested Quantity:</td><td>{1}</td></tr>" + timingString +
"<tr><td>Additional Comments:</td><td>{2}</td></tr>", paymentMethod, requestedQuantity, additionalComments);
var ipString = string.Format("<tr style='padding-top:20px'><td>IP Address</td><td>{0}</td></tr>",
string.IsNullOrWhiteSpace(IpAddressService.RemoteIpAddress.ToString()) ? "NONE" : IpAddressService.RemoteIpAddress.ToString());
@ -248,6 +257,9 @@ public partial class Home
public bool callWithInfo = false;
public bool check = false;
public bool beforeMemorialDay = true;
public bool beforeJulyFourth = false;
#endregion
public void ToggleCardType()

View File

@ -1,6 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Telerik Blazor 13.0.0" value="C:\Program Files (x86)\Progress\Telerik UI for Blazor 13.0.0" />
</packageSources>
</configuration>

View File

@ -8,10 +8,8 @@
<Exec Command="c:\misc\WaitForFolder $(PublishUrl) /nobeep" />
</Target>
<ItemGroup>
<PackageReference Include="kmCommonLibsCore" Version="2.0.0.199" />
<PackageReference Include="kmCommonLibsCore" Version="2.0.0.203" />
<PackageReference Include="Telerik.SvgIcons" Version="4.8.0" />
<PackageReference Include="Telerik.UI.for.Blazor">
<Version>13.0.0</Version>
</PackageReference>
<PackageReference Include="Telerik.UI.for.Blazor" Version="13.1.0" />
</ItemGroup>
</Project>