@Html.LabelFor(model => model.Name, new { @class = "control-label" })
@if (Model.ItemsInWorkFlow == 0)
{
@Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
}
else
{
@Html.TextBoxFor(model => model.Name, new { disabled = "disabled", @class = "form-control" })
}
@Html.ValidationMessageFor(model => model.Name)
@Html.LabelFor(model => model.DomainId, new { @class = "control-label" })
@if (Model.ItemsInWorkFlow == 0)
{
@Html.DropDownListFor(model => model.DomainId, Utils.GetEnumList(typeof(WorkFlowArea), true), new { @class = "form-control forselect2" })
}
else
{
@Html.DropDownListFor(model => model.DomainId, Utils.GetEnumList(typeof(WorkFlowArea), true), new { disabled = "disabled", @class = "form-control forselect2" })
}
@Html.ValidationMessageFor(model => model.DomainId)
@*
@Html.LabelFor(model => model.isDefault, new { @class = "control-label" })
@Html.CheckBoxFor(model => model.isDefault, new { @class = "switcher form-control" })
@Html.ValidationMessageFor(model => model.isDefault)
*@
@Html.LabelFor(model => model.isActive, new { @class = "control-label" })
@Html.CheckBoxFor(model => model.isActive, new { @class = "switcher form-control" })
@Html.ValidationMessageFor(model => model.isActive)
@*@if (Model.Id.HasValue && Model.ItemsInWorkFlow == 0)
{*@
@Html.ActionLink("Edit Workflow Diagram", "EditScheme", new { WorkFlowSchemaId = @Model.Id })
@*}
else
{
if (Model.ItemsInWorkFlow > 0)
{
This workflow has items in process. Please deactive the workflow, and create a new one if you wish to edit the diagram
}
else {
Please save your settings before you can edit your workflow diagram
}
}*@
@Html.ValidationSummary(false, "The WorkFlow definition could not be saved due to the following errors:")