@using NewLife;
@using XCode;
@using XCode.Configuration;
@{
var pair = Model as Pair;
var entity = pair.First as IEntity;
var item = pair.Second as FieldItem;
var set = NewLife.Cube.Setting.Current;
var cls = set.FormGroupClass;
if (cls.IsNullOrEmpty()) { cls = "form-group col-xs-12 col-sm-6 col-lg-4"; }
}
@if (item.Name == "Permission")
{
if (!entity.IsNullKey)
{
@Html.Partial("SetPermission", new { Role = entity })
}
}
else
{
<div class="@cls">
@Html.Partial("_Form_Item", new Pair(entity, item))
</div>
}
|