Hi, can anyone suggest a good tutorial on asp.net boiler plate with Modals. As I am trying to get an edit modal form to populate and allow the saving of changes.
index.cshtml @if (IsGranted(AppPermissions.Pages_Tenant_PayRate_Edit)) { <button title="@L("Edit")" class="btn btn-circle btn-icon-only green edit-payRate" href="javascript"> <i class="icon-pencil"></i> </button> }
_EditPayRateModal.cshtml @Html.Partial("~/Areas/epayday/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditPayRate" + ": " + Model.PayRate.UsedPayRateID)))
<div class="modal-body"> <form role="form" novalidate class="form-validation">
<div class="form-group form-md-line-input form-md-floating-label no-hint">
<input class="form-control" type="text" name="UsedPayRateID" required maxlength="@PayRate.MaxUsedPayRateIDLength" value="@Model.PayRate.UsedPayRateID>
<label>@L("UsedPayRateID")</label>
</div>
<div class="form-group form-md-line-input form-md-floating-label no-hint">
<input class="form-control" type="text" name="PayRateType" required maxlength="@PayRate.MaxPayRateTypeLength">
<label>@L("PayRateType")</label>
</div>
This is probably not the best way to go about this. Thanks, epay.
1 Answer(s)
-
0
Hi,
Since you are a customer of AspNet Zero, there are examples of this in our template. I also got your project via email and modified a few files to demonstrate it to you but when I try to send an email, the previous email address I contacted with seems removed.
Can you send an email to <a href="mailto:[email protected]">[email protected]</a> so I can share my modification of your code with you.
Thanks.