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.
11 lines
379 B
11 lines
379 B
@model List<Guid>
|
|
@{
|
|
var list = (ViewData[ViewData.ModelMetadata.PropertyName + "SelectList"] as MultiSelectList) ?? new MultiSelectList(new List<SelectListItem>());
|
|
}
|
|
@if (Model != null && Model.Count > 0)
|
|
{
|
|
foreach (var id in Model)
|
|
{
|
|
<a href="javascript:;" class="btn btn-default btn-xs">@list.FirstOrDefault(o => o.Value == id.ToString()).Text</a>
|
|
}
|
|
} |