<commit_before><form class="ui form {{if isLoading 'loading'}}" autocomplete="off" {{action 'move' 'forwards' on='submit' preventDefault=true}}>

  <div class="ui centered grid">
    <div class="column">
      <div class="ui {{if data.event.isSponsorsEnabled 'basic'}} segment">
        <div class="center aligned text">
          <div class=" field">
            <div class="ui slider checkbox">
              {{input type='checkbox' checked=data.event.isSponsorsEnabled}}
              <label class="weight-300" style="font-size: large">
                {{if data.event.isSponsorsEnabled (t 'Turn off') (t 'Turn on')}}
                {{t 'Sponsors'}}
              </label>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  {{#if data.event.isSponsorsEnabled}}
    {{#each sponsors as |sponsor index|}}
      <h4>
        {{t 'Sponsor'}} #{{inc index}}
        {{#if sponsors.length}}
          <button type="button" class="ui mini red button right floated" {{action 'removeSponsor' sponsor}}>
            <i class="trash icon"></i>
            {{t 'Remove'}}
          </button>
        {{/if}}
      </h4>
      <br>
      <div class="fields">
        <div class="five wide field">
          <label class="required">{{t 'Name'}}</label>
          {{input type='text' value=sponsor.name name='name'}}
        </div>
        <div class="two wide field">
          <label>{{t 'Level'}}</label>
          {{input type='number' value=sponsor.level name='level' min=0}}
        </div>
        <div class="three wide field">
          <label>{{t 'Type'}}</label>
          {{input type='text' value=sponsor.type name='type'}}
        </div>
        <div class="six wide field">
          <label>{{t 'URL'}}</label>
          {{widgets/forms/link-input segmentedLink=sponsor.segmentedLink name='url'}}
        </div>
      </div>
      <div class="fields">
        <div class="five wide computer eight wide tablet field">
          <label>{{t 'Description'}}</label>
          {{widgets/forms/rich-text-editor value=sponsor.description name='description'}}
        </div>
        <div class="sponsors-step eleven wide computer eight wide tablet field {{if device.isMobile 'less padding'}}">
          {{widgets/forms/image-upload
            label=(t 'Logo')
            imageUrl=sponsor.logoUrl
            icon='image'
            hint=(t 'Select Logo')
            maxSizeInKb=1000}}
        </div>
      </div>
      {{#if (not-eq (inc index) data.event.sponsors.length)}}
        <div class="ui section divider"></div>
      {{/if}}
    {{/each}}
    <button type="button" class="ui primary {{if device.isMobile 'small'}} button" {{action 'addSponsor'}}>{{t 'Add another sponsor'}}</button>
    <div class="spacer-50"></div>
  {{else}}
    <div class="spacer-50"></div>
  {{/if}}

  <div class="{{if device.isMobile 'mini four' 'right floated large'}} ui fields buttons">
    <button class="ui three field left labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'move' 'backwards'}}>
      {{t 'Previous'}}
      <i class="left chevron icon"></i>
    </button>
    <button class="ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'move' 'forwards'}}>
      {{t 'Forward'}}
      <i class="right chevron icon"></i>
    </button>
    <button class="blue ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'saveDraft'}}>
      {{t 'Save draft'}}
      <i class="save icon"></i>
    </button>
    {{#if data.event.locationName}}
      <button class="green ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'publish'}}>
        {{t 'Publish'}}
        <i class="check icon"></i>
      </button>
    {{/if}}
  </div><commit_msg>Fix add another sponsor button text when all sponsors are removed. (#2534)<commit_after><form class="ui form {{if isLoading 'loading'}}" autocomplete="off" {{action 'move' 'forwards' on='submit' preventDefault=true}}>

  <div class="ui centered grid">
    <div class="column">
      <div class="ui {{if data.event.isSponsorsEnabled 'basic'}} segment">
        <div class="center aligned text">
          <div class=" field">
            <div class="ui slider checkbox">
              {{input type='checkbox' checked=data.event.isSponsorsEnabled}}
              <label class="weight-300" style="font-size: large">
                {{if data.event.isSponsorsEnabled (t 'Turn off') (t 'Turn on')}}
                {{t 'Sponsors'}}
              </label>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  {{#if data.event.isSponsorsEnabled}}
    {{#each sponsors as |sponsor index|}}
      <h4>
        {{t 'Sponsor'}} #{{inc index}}
        {{#if sponsors.length}}
          <button type="button" class="ui mini red button right floated" {{action 'removeSponsor' sponsor}}>
            <i class="trash icon"></i>
            {{t 'Remove'}}
          </button>
        {{/if}}
      </h4>
      <br>
      <div class="fields">
        <div class="five wide field">
          <label class="required">{{t 'Name'}}</label>
          {{input type='text' value=sponsor.name name='name'}}
        </div>
        <div class="two wide field">
          <label>{{t 'Level'}}</label>
          {{input type='number' value=sponsor.level name='level' min=0}}
        </div>
        <div class="three wide field">
          <label>{{t 'Type'}}</label>
          {{input type='text' value=sponsor.type name='type'}}
        </div>
        <div class="six wide field">
          <label>{{t 'URL'}}</label>
          {{widgets/forms/link-input segmentedLink=sponsor.segmentedLink name='url'}}
        </div>
      </div>
      <div class="fields">
        <div class="five wide computer eight wide tablet field">
          <label>{{t 'Description'}}</label>
          {{widgets/forms/rich-text-editor value=sponsor.description name='description'}}
        </div>
        <div class="sponsors-step eleven wide computer eight wide tablet field {{if device.isMobile 'less padding'}}">
          {{widgets/forms/image-upload
            label=(t 'Logo')
            imageUrl=sponsor.logoUrl
            icon='image'
            hint=(t 'Select Logo')
            maxSizeInKb=1000}}
        </div>
      </div>
      {{#if (not-eq (inc index) data.event.sponsors.length)}}
        <div class="ui section divider"></div>
      {{/if}}
    {{/each}}
    <button type="button" class="ui primary {{if device.isMobile 'small'}} button" {{action 'addSponsor'}}>{{t (if sponsors.length 'Add another sponsor' 'Add sponsor')}}</button>
    <div class="spacer-50"></div>
  {{else}}
    <div class="spacer-50"></div>
  {{/if}}

  <div class="{{if device.isMobile 'mini four' 'right floated large'}} ui fields buttons">
    <button class="ui three field left labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'move' 'backwards'}}>
      {{t 'Previous'}}
      <i class="left chevron icon"></i>
    </button>
    <button class="ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'move' 'forwards'}}>
      {{t 'Forward'}}
      <i class="right chevron icon"></i>
    </button>
    <button class="blue ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'saveDraft'}}>
      {{t 'Save draft'}}
      <i class="save icon"></i>
    </button>
    {{#if data.event.locationName}}
      <button class="green ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'publish'}}>
        {{t 'Publish'}}
        <i class="check icon"></i>
      </button>
    {{/if}}
  </div>
{'fraction_non_alphanumeric': 0.1792379471228616, 'fraction_numerical': 0.00414722654224987, 'mean_word_length': 2.5595018450184504, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4935953', 'n_tokens_mistral': 2405, 'n_tokens_neox': 2304, 'n_words': 640}