We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e0317 commit d06ea10Copy full SHA for d06ea10
views/users/user-all.html
@@ -91,11 +91,19 @@ <h2 class="mt-4">{{ .name }}</h2>
91
class="btn btn-sm btn-warning"
92
>View</a
93
>
94
+ {{if eq $user.Model.ID 1}}
95
+ <button
96
+ class="btn btn-sm btn-danger"
97
+ disabled
98
+ >Delete</button
99
+ >
100
+ {{else}}
101
<a
102
href="/users/delete/{{$user.Model.ID}}"
103
class="btn btn-sm btn-danger"
104
>Delete</a
105
106
+ {{end}}
107
</td>
108
</tr>
109
{{end}}
0 commit comments