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.

20 lines
728 B

@{
var id = Html.IdForModel();
var name = Html.NameForModel().ToString();
var src = Url.GetFullUrl(Model as string ?? "/images/empty.png");
}
<div style="padding-top:7px;">
<a class="fancybox" href="@src"><img style="height:60px;" id="image_@id" src="@src" /></a>
@Html.TextBox("", Model as string, new
{
@class = "edit-image",
style = "visibility:hidden;",
data_uploadUrl = "/File/Upload",
data_emptyImage = "/images/empty.png",
data_baseUrl = "/upload"
})
<br />
<br />
<button class="btn btn-sm btn-primary" type="button" id="btn_@id">上传</button>
<button class="btn btn-sm btn-primary" type="button" id="rest_@id">取消</button>
</div>