{{#if canEdit}}
  {{#if this.currentUser.can_create_group}}
    <div class="control-group">
      <label class="control-label" for="name">{{i18n "groups.name"}}</label>

      {{text-field name="name"
          class="input-xxlarge group-form-name"
          value=nameInput
          placeholderKey="admin.groups.name_placeholder"}}

      {{input-tip validation=nameValidation}}
    </div>
  {{/if}}

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

    {{text-field name="full_name"
        class="input-xxlarge group-form-full-name"
        value=model.full_name}}
  </div>
{{/if}}

<div class="control-group">
  <label class="control-label" for="bio">{{i18n "groups.bio"}}</label>
  {{d-editor value=model.bio_raw class="group-form-bio input-xxlarge"}}
</div>

{{#if model.automatic}}
  <div class="control-group">
    {{group-flair-inputs model=model}}
  </div>
{{/if}}

{{#if canEdit}}
  {{yield}}

  {{plugin-outlet name="group-edit" args=(hash group=model)}}
{{/if}}
