@model ValueTuple<IEntity, DataField>
@using NewLife;
@using NewLife.Cube.ViewModels
@using Stardust.Data.Deployment
@using XCode;
@using XCode.Configuration;
@{
var pair = Model;
var entity = pair.Item1 as AppDeployNode;
var field = pair.Item2;
var projectId = entity.Deploy?.ProjectId ?? 0;
var set = NewLife.Cube.CubeSetting.Current;
var cls = set.FormGroupClass;
if (cls.IsNullOrEmpty()) { cls = "form-group col-xs-12 col-sm-6 col-lg-4"; }
}
<div class="@cls">
<label class="control-label col-xs-3 col-sm-3">节点</label>
<div class="input-group col-xs-9 col-sm-9">
@await Html.PartialAsync("_SelectNode", new SelectNodeModel { Id = "nodeId", NodeId = entity.NodeId, ProjectId = projectId, Product = "StarAgent" })
</div>
</div>
|