1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

fix user roles error on create and update

This commit is contained in:
Lee Brown
2019-08-05 19:53:04 -08:00
parent 6523cbc481
commit f114ae1ad6
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@
<div class="form-group">
<label for="inputRoles">Roles</label>
<span class="help-block "><small>- Select at least one role.</small></span>
{{ range $r := .roles }}
{{ range $r := .roles.Options }}
<div class="form-check">
<input class="form-check-input {{ ValidationFieldClass $.validationErrors "Roles" }}"
type="checkbox" name="Roles"

View File

@@ -60,7 +60,7 @@
<div class="form-group">
<label for="inputRoles">Roles</label>
<span class="help-block "><small>- Select at least one role.</small></span>
{{ range $r := .roles }}
{{ range $r := .roles.Options }}
<div class="form-check">
<input class="form-check-input {{ ValidationFieldClass $.validationErrors "Roles" }}"
type="checkbox" name="Roles"