im Работа с bootstrap modal-body и bootstrap-switch-container, поэтому проблема в том, что class = "bootstrap-switch-container" не работает с class = "modal-body".это просто флажок.
cshtml код
я хочу вместо кнопки переключателя.какие-либо предложения? результат
@Html.AntiForgeryToken()
<div class="modal-body">
<div class="form-horizontal">
@if (Model != null)
{
@Html.HiddenFor(model => model.FileGrossMarginID)
}
<div class="form-group">
@Html.LabelFor(m => m.OperationID, new { @class = "control-label col-sm-3" })
<div class="col-sm-9">
@Html.DropDownList("OperationID", null, "", htmlAttributes: new { @class = "form-control input-circle" })
@Html.ValidationMessageFor(model => model.OperationID, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(m => m.PriceLevelID, new { @class = "control-label col-sm-3" })
<div class="col-sm-9">
@Html.DropDownList("PriceLevelID", null, "", htmlAttributes: new { @class = "form-control input-circle" })
@Html.ValidationMessageFor(model => model.PriceLevelID, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(m => m.Value, new { @class = "control-label col-sm-3" })
<div class="col-sm-9">
@Html.EditorFor(model => model.Value, new { htmlAttributes = new { @class = "form-control input-circle" } })
@Html.ValidationMessageFor(model => model.Value, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(m => m.IsSpecialConditions, new { @class = "control-label col-sm-3" })
<div class="col-sm-9">
<div class="bootstrap-switch-container">
@Html.EditorFor(model => model.IsSpecialConditions, new { htmlAttributes = new { @class = "make-switch" } })
@Html.ValidationMessageFor(model => model.IsSpecialConditions, "", new { @class = "text-danger" })
</div>
</div>
</div>
</div>
</div>