{{#if canAdminGroup}}
  <div class="control-group">
    <label class="control-label">{{i18n "admin.groups.manage.interaction.visibility"}}</label>
    <label for="visiblity">{{i18n "admin.groups.manage.interaction.visibility_levels.title"}}</label>

    {{combo-box
      name="alias"
      valueProperty="value"
      value=model.visibility_level
      content=visibilityLevelOptions
      castInteger=true
      class="groups-form-visibility-level"
      onChange=(action (mut model.visibility_level))
    }}

    <div class="control-instructions">
      {{i18n "admin.groups.manage.interaction.visibility_levels.description"}}
    </div>
  </div>

  <div class="control-group">
    <label for="visiblity">{{i18n "admin.groups.manage.interaction.members_visibility_levels.title"}}</label>

    {{combo-box name="alias"
      valueProperty="value"
      value=membersVisibilityLevel
      content=visibilityLevelOptions
      class="groups-form-members-visibility-level"
      onChange=(action (mut model.members_visibility_level))
    }}

    <div class="control-instructions">
      {{i18n "admin.groups.manage.interaction.members_visibility_levels.description"}}
    </div>
  </div>
{{/if}}

<div class="control-group">
  <label class="control-label">{{i18n "groups.manage.interaction.posting"}}</label>
  <label for="alias">{{i18n "groups.alias_levels.mentionable"}}</label>

  {{combo-box
    name="alias"
    valueProperty="value"
    value=mentionableLevel
    content=aliasLevelOptions
    class="groups-form-mentionable-level"
    onChange=(action (mut model.mentionable_level))
  }}
</div>

<div class="control-group">
  <label for="alias">{{i18n "groups.alias_levels.messageable"}}</label>

  {{combo-box
    name="alias"
    valueProperty="value"
    value=messageableLevel
    content=aliasLevelOptions
    class="groups-form-messageable-level"
    onChange=(action (mut model.messageable_level))
  }}
</div>

{{#if canAdminGroup}}
  <div class="control-group">
    <label>
      {{input type="checkbox"
            checked=model.publish_read_state
            class="groups-form-publish-read-state"}}

      {{i18n "admin.groups.manage.interaction.publish_read_state"}}
    </label>
  </div>
{{/if}}

{{#if showEmailSettings}}
  <div class="control-group">
    <label class="control-label">{{i18n "admin.groups.manage.interaction.email"}}</label>
    <label for="incoming_email">{{i18n "admin.groups.manage.interaction.incoming_email"}}</label>

    {{text-field name="incoming_email"
        class="input-xxlarge groups-form-incoming-email"
        value=model.incoming_email
        placeholderKey="admin.groups.manage.interaction.incoming_email_placeholder"}}

    {{plugin-outlet name="group-email-in" args=(hash model=model)}}
  </div>
{{/if}}

<label class="control-label">{{i18n "groups.manage.interaction.notification"}}</label>

<div class="control-group">
  <label>{{i18n "groups.notification_level"}}</label>

  {{notifications-button
    value=defaultNotificationLevel
    class="groups-form-default-notification-level"
    options=(hash
      i18nPrefix="groups.notifications"
    )
    onChange=(action (mut model.default_notification_level))
  }}
</div>
