Added a drop date option at the end of the wizard for Postcards only.
This commit is contained in:
parent
5a6ef3583a
commit
6ff8a8b817
|
|
@ -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>
|
<p>I'll be sending in a check by the invoice's due date (4/24/2026).</p>
|
||||||
}
|
}
|
||||||
</div>
|
</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">
|
<div class="col-12">
|
||||||
<label style="display:block" for="RequestedQuantity" class="text-center mb-3">Requested Quantity</label>
|
<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>
|
<TelerikTextBox class="mb-3" Id="RequestedQuantity" @bind-Value="@requestedQuantity" MaxLength="6" Width="15rem"></TelerikTextBox>
|
||||||
|
|
|
||||||
|
|
@ -130,8 +130,17 @@ public partial class Home
|
||||||
if (int.TryParse(requestedQuantity, out _))
|
if (int.TryParse(requestedQuantity, out _))
|
||||||
requestedQuantity = string.Format("{0:#,##0}", int.Parse(requestedQuantity));
|
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>" +
|
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);
|
"<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>",
|
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());
|
string.IsNullOrWhiteSpace(IpAddressService.RemoteIpAddress.ToString()) ? "NONE" : IpAddressService.RemoteIpAddress.ToString());
|
||||||
|
|
@ -248,6 +257,9 @@ public partial class Home
|
||||||
public bool callWithInfo = false;
|
public bool callWithInfo = false;
|
||||||
public bool check = false;
|
public bool check = false;
|
||||||
|
|
||||||
|
public bool beforeMemorialDay = true;
|
||||||
|
public bool beforeJulyFourth = false;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public void ToggleCardType()
|
public void ToggleCardType()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
|
||||||
<add key="Telerik Blazor 13.0.0" value="C:\Program Files (x86)\Progress\Telerik UI for Blazor 13.0.0" />
|
|
||||||
</packageSources>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
@ -8,10 +8,8 @@
|
||||||
<Exec Command="c:\misc\WaitForFolder $(PublishUrl) /nobeep" />
|
<Exec Command="c:\misc\WaitForFolder $(PublishUrl) /nobeep" />
|
||||||
</Target>
|
</Target>
|
||||||
<ItemGroup>
|
<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.SvgIcons" Version="4.8.0" />
|
||||||
<PackageReference Include="Telerik.UI.for.Blazor">
|
<PackageReference Include="Telerik.UI.for.Blazor" Version="13.1.0" />
|
||||||
<Version>13.0.0</Version>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
Loading…
Reference in New Issue