|
77 | 77 | @Html.ActionLink("Sync", "Sync", new { id = entity.Id, area = "Sam" }, new { @style = entity.IsSynced ? "color:darkgreen;" : "color:black;" }) | |
78 | 78 | @Html.ActionLink("Versions", "Versions", new { id = entity.Id, area = "Sam" }) | |
79 | 79 | @Html.ActionLink("Delete", "Delete", new { id = entity.Id, area = "Sam" }) | |
80 | | - @Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }) | |
| 80 | + @Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }, new |
| 81 | + { |
| 82 | + @onclick = "return confirm('Are you sure you want to remove this entity from the database?');", // HTML attributes |
| 83 | + }) | |
81 | 84 | <a entityid="@entity.Id" class="number-of-rows-bt">Count</a> |
82 | 85 | </td> |
83 | 86 | } |
|
97 | 100 | <td> |
98 | 101 | @Html.ActionLink("Sync", "Sync", new { id = entity.Id, area = "Sam" }, new { @style = entity.IsSynced ? "color:darkgreen;" : "color:black;" }) | |
99 | 102 | @Html.ActionLink("Versions", "Versions", new { id = entity.Id, area = "Sam" }) | |
100 | | - @Html.ActionLink("Purge", "Purge", new { id = entity.Id })| |
| 103 | + @Html.ActionLink("Purge", "Purge", new { id = entity.Id }, new |
| 104 | + { |
| 105 | + @onclick = "return confirm('Are you sure you want to remove this entity from the database?');", // HTML attributes |
| 106 | + })| |
101 | 107 | <a entityid="@entity.Id" class="number-of-rows-bt">Count</a> |
102 | 108 | </td> |
103 | 109 | } |
|
119 | 125 | @Html.ActionLink("Sync", "Sync", new { id = entity.Id, area = "Sam" }, new { @style = entity.IsSynced ? "color:darkgreen;" : "color:black;" }) | |
120 | 126 | @Html.ActionLink("Versions", "Versions", new { id = entity.Id, area = "Sam" }) | |
121 | 127 | @Html.ActionLink("Undo delete", "UndoDelete", new { id = entity.Id, area = "Sam" }) | |
122 | | - @Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }) | |
| 128 | + @Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }, new |
| 129 | + { |
| 130 | + @onclick = "return confirm('Are you sure you want to remove this entity from the database?');", // HTML attributes |
| 131 | + })| |
123 | 132 | <a entityid="@entity.Id" class="number-of-rows-bt">Count</a> |
124 | 133 | </td> |
125 | 134 | } |
|
0 commit comments