EnVisageOnline/Main/Source/EnVisage/Views/Scenarios/_editRate.cshtml

48 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model EnVisage.Models.RateModel
<div class="modal-content">
<form id="rate" class="innerForm">
@Html.HiddenFor(t => t.Id)
@Html.HiddenFor(t => t.ParentId)
@Html.HiddenFor(t => t.DerivedObjectId)
@Html.HiddenFor(t => t.ExpenditureCategoryId)
@Html.HiddenFor(t => t.FreezeRate)
@Html.HiddenFor(t => t.Type)
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">@Resources.Labels.Rate_Edit</h4>
</div>
<div class="modal-body">
<div class="form-group">
@Html.LabelFor(model => model.Rate1, new { @class = "col-sm-2 control-label" })
<div class="col-sm-10">
@Html.EditorFor(model => model.Rate1, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Rate1)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.StartDate, new { @class = "col-sm-2 control-label" })
<div class="col-sm-10">
@Html.EditorFor(t => t.StartDate, new { htmlAttributes = new { id = "RateStartDate", @class = "form-control" } })
@Html.ValidationMessageFor(x => x.StartDate)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.EndDate, new { @class = "col-sm-2 control-label" })
<div class="col-sm-10">
@Html.EditorFor(t => t.EndDate, new { htmlAttributes = new { id = "RateEndDate", @class = "form-control" } })
@Html.ValidationMessageFor(x => x.EndDate)
</div>
</div>
</div>
@Html.ValidationSummary(false, "The rate could not be saved due to the following errors:")
<div class="modal-footer" style="margin-bottom: 0;">
<div class="col-sm-offset-2 col-sm-10">
<label style="display:none;" id="saveLoader"><span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> Saving...</label>
<a class="btn btn-success lockable" id="btnsave" href="javascript:void(0)" onclick="editRateConfirmed();"><i class="fa fa-save"></i> @Resources.Buttons.Common_Save</a>
</div>
</div>
</form>
</div>