35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
@model IList<EnVisage.Models.AttachmentModel>
|
|
@{
|
|
object attributes;
|
|
if (ViewBag.Disabled == true)
|
|
{
|
|
attributes = new { disabled = "disabled" };
|
|
}
|
|
else
|
|
{
|
|
attributes = new { };
|
|
}
|
|
}
|
|
<span class="btn btn-success fileinput-button">
|
|
<i class="glyphicon glyphicon-plus"></i>
|
|
<span>Select files...</span>
|
|
<input type="file" multiple data-uf-name-template="@(Html.NameFor(t=>t))" />
|
|
</span>
|
|
<br />
|
|
<div class="progress">
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
|
|
<span class="sr-only">0% complete</span>
|
|
</div>
|
|
</div>
|
|
@if (Model != null)
|
|
{
|
|
for (var i = 0; i < Model.Count(); i++)
|
|
{
|
|
<div data-uf-file="@Model[i].Id">
|
|
<input type="hidden" name="@Html.NameFor(t=>t[i].Id)" data-uf-file-id="" value="@Model[i].Id"/>
|
|
<input type="hidden" name="@Html.NameFor(t=>t[i].Name)" data-uf-file-name="" value="@Model[i].Name"/>
|
|
<input type="hidden" name="@Html.NameFor(t=>t[i].Size)" data-uf-file-size="" value="@Model[i].Size"/>
|
|
<input type="hidden" name="@Html.NameFor(t=>t[i].IsNew)" data-uf-file-isnew="" value="@Model[i].IsNew.ToString()"/>
|
|
</div>
|
|
}
|
|
} |