1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<a href="http://127.0.0.1:8085/share/page/repository#filter=path|%2FDictionnaire%2520de%2520donn%25E9es%2FMod%25E8les%2520d%2527espace&page=1" class="btn btn-primary btn-lg" role="button" id="modCreate">Crée un nouveau modèle</a>
</p>
<div>
<table id="modtab">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.createur)
</th>
<th>
@Html.DisplayNameFor(model => model.datecr)
</th>
<th></th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.createur)
</td>
<td>
@Html.DisplayFor(modelItem => item.datecr)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Visualiser le modèle", "","") |// ici je veux passer le item.Name au controlleur
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
</td>
</tr>
}
</table> |
Partager