31 lines
944 B
Plaintext
31 lines
944 B
Plaintext
@using Kendo.Mvc.Extensions;
|
|
@using Kendo.Mvc.UI;
|
|
@using System.Web.Script.Serialization;
|
|
@model IList<EnVisage.Models.AttachmentModel>
|
|
@{
|
|
object attributes;
|
|
if (ViewBag.Disabled == true)
|
|
{
|
|
attributes = new { disabled = "disabled" };
|
|
}
|
|
else
|
|
{
|
|
attributes = new { };
|
|
}
|
|
string GridID = Guid.NewGuid().ToString();
|
|
string toolBarId = Guid.NewGuid().ToString();
|
|
string dataId = Guid.NewGuid().ToString();
|
|
var json = @Html.Raw((new JavaScriptSerializer()).Serialize(Model));
|
|
}
|
|
|
|
<div>
|
|
<span class="btn btn-success Linkinput-button" data-uf-link-name-template="@(Html.NameFor(t=>t))" dataid="@dataId" gridId='@GridID' id="@toolBarId">
|
|
<i class="glyphicon glyphicon-plus"></i>
|
|
<span>Add link...</span>
|
|
</span>
|
|
</div>
|
|
<br />
|
|
<div id="@GridID" class="@GridID" style="width:100%"></div>
|
|
<input type="hidden" class="jsonData @dataId" value='@json'
|
|
id="@dataId">
|