55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
@model IEnumerable<StockManMVC.Models.Item>
|
|
|
|
@{
|
|
ViewBag.Title = "Articoli";
|
|
string mainCss = "col-sm-12";
|
|
//bool hasDetail = false;
|
|
//if (ViewBag.ItemID != 0)
|
|
//{
|
|
// hasDetail = true;
|
|
// mainCss = "col-sm-8";
|
|
//}
|
|
}
|
|
|
|
@using MVCGrid.Web
|
|
<div class="row" style="margin-top: 0.5em;">
|
|
@*@if (hasDetail)
|
|
{
|
|
<div class="col-sm-4">
|
|
Dettagli
|
|
<hr />
|
|
stock attuale
|
|
</div>
|
|
}*@
|
|
|
|
<div class="@(mainCss)">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<div class="row">
|
|
<div class="col-xs-8">
|
|
<strong>Anagrafica Articoli</strong>
|
|
</div>
|
|
<div class="col-xs-4 text-right">
|
|
@*@Html.ActionLink("Create New", "Create")*@
|
|
<a href="@Url.Action("Create", "Items")" class="btn btn-success">
|
|
<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
|
|
Aggiunta Nuovo articolo
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body small">
|
|
@Html.Partial("_MVCGridToolbar", new StockManMVC.Models.MVCGridToolbarModel()
|
|
{
|
|
MVCGridName = "ItemsGrid",
|
|
PageSize = true,
|
|
ColumnVisibility = true,
|
|
Export = false,
|
|
GlobalSearch = true
|
|
})
|
|
@Html.MVCGrid("ItemsGrid")
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|