<commit_before>extends ./base.jade

block title
  title Create a League - My LoL Fantasy

block content
  div.container.theme-showcase(role='main')
    .well
      .create-league-error
        if messages.createLeagueError
          p= messages.createLeagueError

      form#create-league-form(method='post', role='form', action='')
        h1 Create New League
        div#league-name-input-div
          input#league-name-input.form-control(type='text', name='groupName', placeholder='League Name', value= messages.createLeagueName ? messages.createLeagueName : false)
        br
        div(class='inline-block')
          input#league-include-self(type='checkbox', name='includeSelf', checked= !messages.spectatorLeague ? 'checked': false)
          &nbsp;
        div(class='inline-block')
          p= "Include Self in League"
        br
        if messages.createLeagueSummoners
          each name, index in messages.createLeagueSummoners
            div(id= 'summoner-input-' + index, class= 'summoner-input ' + (messages.createLeagueInvalidSummoner && 'has-error'))
              input.form-control(type='text', placeholder='Summoner Name', value= name)
              button.btn.btn-primary(type='button') Remove
        else
          div#summoner-input-0.summoner-input
            input.form-control(type='text', placeholder='Summoner Name')
            button.btn.btn-primary(type='button') Remove
        br#last-summoner-input-break
        button#add-summoner.btn.btn-primary(type='button') Add Summoner
        button.btn.btn-primary(type='submit') Create

block scripts
  script(src= baseUrl + '/js/create_league.js')
<commit_msg>Fixed small code formatting issues brought up in pull request<commit_after>extends ./base.jade

block title
  title Create a League - My LoL Fantasy

block content
  div.container.theme-showcase(role='main')
    .well
      .create-league-error
        if messages.createLeagueError
          p= messages.createLeagueError

      form#create-league-form(method='post', role='form', action='')
        h1 Create New League
        div#league-name-input-div
          input#league-name-input.form-control(type='text', name='groupName', placeholder='League Name', value= messages.createLeagueName ? messages.createLeagueName : false)
        br
        div(class='inline-block')
          input#league-include-self(type='checkbox', name='includeSelf', checked= !messages.spectatorLeague) 
        div(class='inline-block')
          p= "Include Self in League"
        br
        if messages.createLeagueSummoners
          each name, index in messages.createLeagueSummoners
            div(id= 'summoner-input-' + index, class= 'summoner-input ' + (messages.createLeagueInvalidSummoner && 'has-error'))
              input.form-control(type='text', placeholder='<NAME>', value= name)
              button.btn.btn-primary(type='button') Remove
        else
          div#summoner-input-0.summoner-input
            input.form-control(type='text', placeholder='<NAME>')
            button.btn.btn-primary(type='button') Remove
        br#last-summoner-input-break
        button#add-summoner.btn.btn-primary(type='button') Add Summoner
        button.btn.btn-primary(type='submit') Create

block scripts
  script(src= baseUrl + '/js/create_league.js')

{'fraction_non_alphanumeric': 0.12314225053078556, 'fraction_numerical': 0.001213224143160449, 'mean_word_length': 2.9591836734693877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7025259', 'n_tokens_mistral': 969, 'n_tokens_neox': 931, 'n_words': 186}