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

<h2>@title</h2>


@using( Html.BeginForm() ) {
	<table class="table table-bordered">
		<tr>
			<th>Nom</th>
			<th>Prix</th>
			<th>Qté</th>
		</tr>
		@{
			int i = 0;
			foreach( var a in Model ) {
				Html.RenderPartial("UneLigneArticle", a, new ViewDataDictionary() { { "I", i } }  );
				i++;
			}
		}
		<tr>
			<td colspan="3"><input type="submit" value="MàJ" class="btn btn-primary" /></td>
		</tr>
	</table>
}
