.modal-dialog
  .modal-content
    .modal-header
      button.close(data-dismiss="modal", aria-hidden="true", type="button") &times;
      h4.modal-title Access control
      .g-dialog-subtitle
        if (modelType == 'folder')
          i.icon-folder
        else if (modelType == 'collection')
          i.icon-sitemap
        | #{model.name()}
    .modal-body.g-access-modal-body
      .g-public-container
        .radio
          label
            input#g-access-private(type="radio", name="privacy",
                                   checked=(public ? undefined : "checked"))
            i.icon-lock
            | Private &mdash; Access is required to view this resource
        .radio
          label
            input#g-access-public(type="radio", name="privacy",
                                  checked=(public ? "checked" : undefined))
            i.icon-globe
            | Public &mdash; Anyone can view this resource
      .g-ac-list-title
        i.icon-key-1
        |  Permissions
      .g-ac-list
        #g-ac-list-groups
        #g-ac-list-users

      .g-grant-access-container
        form(role="form")
          .form-group
            label(for="addAccess") Grant access to another group or user
            .g-search-field-container
    .modal-footer
      a.btn.btn-small.btn-default(data-dismiss="modal") Close
      button.g-save-access-list.btn.btn-small.btn-primary(type="submit")
        i.icon-ok
        |  Save
