@model IEnumerable<Article>
@{
	string title = "Gestion du stock";
	ViewBag.Title = "Index";
}

<h2>@title</h2>

@using (Html.BeginForm(null, null, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
	<table class="table table-bordered table-hover">
		<tr>
			<th>Nom</th>
			<th>Prix</th>
			<th>Qté</th>
		</tr>
		@{
			int i = 0;
			foreach (var m in Model) {
				Html.RenderPartial("UneLigneArticle", m, new ViewDataDictionary() { { "I", i } });
				i++;
			}
			}
		<tr>
			<td colspan="3"><input type="submit" value="MAJ" class="btn btn-primary" /></td>
		</tr>
	</table>
}

