You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
617 B
18 lines
617 B
@{
|
|
var defaultMetadata = ViewData.ModelMetadata as Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelMetadata;
|
|
var attribute = defaultMetadata.Attributes.Attributes.OfType<MustBeTrueAttribute>().FirstOrDefault() as MustBeTrueAttribute;
|
|
var list = ViewData.ModelMetadata.AdditionalValues;
|
|
int i = 0;
|
|
}
|
|
<div class="checkboxfix">
|
|
@Html.CheckBox("")
|
|
<span>
|
|
@Html.DisplayName("")
|
|
</span>
|
|
@foreach (var item in ViewData.ModelMetadata.AdditionalValues)
|
|
{
|
|
<span>@(i == 0 ? "" : "和")</span>
|
|
<a href="@item.Value">@item.Key</a>
|
|
i += 1;
|
|
}
|
|
</div> |