| 1234567891011121314151617181920212223 |
- @using IwbZero.ToolCommon.StringModel
- @model ContractService.Views.Shared.Modals.ModalViewModel
- @{
- string width = Model.Width == null || Model.Width <= 500 ? "" : "max-width:" + Model.Width + "px";
- string size = string.IsNullOrEmpty(Model.SizeClass) ? "" : Model.SizeClass.Sw("modal-");
- string center = Model.IsCenter ? "modal-dialog-centered" : "";
- }
- <!-- MODAL @(Model.ModalId) START-->
- <section>
- <div class="modal fade" id="@Model.ModalId" >
- <div class="modal-dialog @(center) @(size)" style="@width">
- <div class="modal-content">
- @Html.Partial("Modals/_ModalHeader", Model.Header)
- @if (Model.Body != null)
- {
- @Html.Partial("Modals/_ModalBody", Model.Body)
- }
- @Html.Partial("Modals/_ModalFooter", Model.Footer??"")
- </div>
- </div>
- </div>
- </section>
- <!-- MODAL @(Model.ModalId) END-->
|