<template name="editUserGroups">
  <div class="modal fade">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">
            <i class="fa fa-user"></i>&nbsp;
             <!--{{_ "editUserGroups-header" }}-->
             Edit user group(s)
           </h4>
        </div>

        <div class="modal-body">
          <div class="form-group">
            <label for="">
              Group(s)
            </label>
            <select multiple class="form-control" name="editUserGroups" id="">
              {{#each groups}}
                <option value="{{ _id }}">{{ name }}</option>
              {{/each}}
            </select>
          </div>
        </div>

        <div class="modal-footer">
          <button id="saveGroups" type="submit" class="btn btn-success">
            <!--{{_ "editUserGroups-saveButton" }}-->
            Save
          </button>
          <button type="button" class="btn btn-danger" data-dismiss="modal">
            <!--{{_ "editUserGroups-cancelButton" }}-->
            Cancel
          </button>
        </div>

      </div>
    </div>
  </div>
</template>
<template name="editUserGroups">
  <div class="modal fade">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">
            <i class="fa fa-user"></i>&nbsp;
             <!--{{_ "editUserGroups-header" }}-->
             Edit user group(s)
           </h4>
        </div>

        <div class="modal-body">
          <div class="form-group">
            <label for="">
              Group(s)
            </label>
            <select multiple class="form-control" name="editUserGroups" id="">
              {{#each groups}}
                <option value="{{ _id }}" {{selected}}>{{ name }}</option>
              {{/each}}
            </select>
          </div>
        </div>

        <div class="modal-footer">
          <button id="saveGroups" type="submit" class="btn btn-success">
            <!--{{_ "editUserGroups-saveButton" }}-->
            Save
          </button>
          <button type="button" class="btn btn-danger" data-dismiss="modal">
            <!--{{_ "editUserGroups-cancelButton" }}-->
            Cancel
          </button>
        </div>

      </div>
    </div>
  </div>
</template>
Add selected property to group options
Add selected property to group options
