<commit_before>

{{> header }}

<h1>General settings</h1>

<p class="lead">Account main settings</p>

{{> show_flash_messages }}

<div class="row">&nbsp;</div>

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        Company
      </div>
      <div class="panel-body">
        <div class="row">

          <div class="col-md-5">
            <form class="form-horizontal" method="POST" action="/settings/company/" id="company_edit_form">
              <div class="form-group">
                <label for="input_company_name" class="col-md-4 control-label">Company name</label>
                <div class="col-md-8">
                  <input class="form-control" id="input_company_name" placeholder="Our company name" value="{{company.name}}" name="name">
                </div>
              </div>
              <div class="form-group">
                <label for="input_country" class="col-md-4 control-label">Country</label>
                <div class="col-md-8">
                  <select class="form-control" id="input_country" name="country">
                    {{#each countries}}
                    <option value="{{@key}}" {{# if_equal @key ../company.country }} selected="selected"{{/if_equal}}>{{this.name}}</option>
                    {{/each}}
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label for="input_date_format" class="col-md-4 control-label">Date format</label>
                <div class="col-md-8">
                  <select class="form-control" id="input_date_format" name="date_format">
                    {{#with company}}
                    {{#each this.get_available_date_formats}}
                    <option value="{{this}}" {{# if_equal this ../date_format }} selected="selected"{{/if_equal}}>{{this}}</option>
                    {{/each}}
                    {{/with}}
                  </select>
                </div>
              </div>
              <div class="form-group">
                <div class="col-md-offset-4 col-md-8">
                  <div class="checkbox">
                    <label for="share-all-absences">
                      <input id="share-all-absences" type="checkbox" name="share_all_absences" {{# if company.share_all_absences }} checked="checked"{{/if}}>Share absences between all employees
                    </label>
                    <p>
                      <em>If enabled all employees can see information about everybody's absences regardless departments.</em>
                    </p>
                  </div>
                </div>
              </div>
              <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                  <button type="submit" class="btn btn-success pull-right">Save changes</button>
                </div>
              </div>
            </form>
          </div>

          <div class="col-md-offset-1 col-md-5">
            <form class="form-horizontal" method="POST" action="/settings/company/export/" id="company_export_form">
              <div class="form-group">
                <label for="input_country" class="col-md-6 control-label">Export company data</label>
                <div class="col-md-6">
                  <button type="submit" class="btn btn-success">Download</button>
                </div>
              </div>
              <div class="form-group">
                <div class="col-md-offset-2">
                  <em>Download company dump file that could be used to restore account on another TimeOff.Management installation</em>
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>


<div class="row">
  <div class="col-md-5"><commit_msg>Add UI for editing company wide schedule.<commit_after>

{{> header }}

<h1>General settings</h1>

<p class="lead">Account main settings</p>

{{> show_flash_messages }}

<div class="row">&nbsp;</div>

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        Company
      </div>
      <div class="panel-body">
        <div class="row">

          <div class="col-md-5">
            <form class="form-horizontal" method="POST" action="/settings/company/" id="company_edit_form">
              <div class="form-group">
                <label for="input_company_name" class="col-md-4 control-label">Company name</label>
                <div class="col-md-8">
                  <input class="form-control" id="input_company_name" placeholder="Our company name" value="{{company.name}}" name="name">
                </div>
              </div>
              <div class="form-group">
                <label for="input_country" class="col-md-4 control-label">Country</label>
                <div class="col-md-8">
                  <select class="form-control" id="input_country" name="country">
                    {{#each countries}}
                    <option value="{{@key}}" {{# if_equal @key ../company.country }} selected="selected"{{/if_equal}}>{{this.name}}</option>
                    {{/each}}
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label for="input_date_format" class="col-md-4 control-label">Date format</label>
                <div class="col-md-8">
                  <select class="form-control" id="input_date_format" name="date_format">
                    {{#with company}}
                    {{#each this.get_available_date_formats}}
                    <option value="{{this}}" {{# if_equal this ../date_format }} selected="selected"{{/if_equal}}>{{this}}</option>
                    {{/each}}
                    {{/with}}
                  </select>
                </div>
              </div>
              <div class="form-group">
                <div class="col-md-offset-4 col-md-8">
                  <div class="checkbox">
                    <label for="share-all-absences">
                      <input id="share-all-absences" type="checkbox" name="share_all_absences" {{# if company.share_all_absences }} checked="checked"{{/if}}>Share absences between all employees
                    </label>
                    <p>
                      <em>If enabled all employees can see information about everybody's absences regardless departments.</em>
                    </p>
                  </div>
                </div>
              </div>
              <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                  <button type="submit" class="btn btn-success pull-right">Save changes</button>
                </div>
              </div>
            </form>
          </div>

          <div class="col-md-offset-1 col-md-5">
            <form class="form-horizontal" method="POST" action="/settings/company/export/" id="company_export_form">
              <div class="form-group">
                <label for="export_company_btn" class="col-md-6 control-label">Export company data</label>
                <div class="col-md-6">
                  <button type="submit" id="export_company_btn" class="btn btn-success">Download</button>
                </div>
              </div>
              <div class="form-group">
                <div class="col-md-offset-2">
                  <em>Download company dump file that could be used to restore account on another TimeOff.Management installation.</em>
                </div>
              </div>
            </form>


            <form class="form-horizontal" method="POST" action="/settings/company/schedule" id="company_schedule_form">
            <div class="form-group">
              <label for="" class="col-md-6 control-label">Company week schedule</label>
            </div>
            <div class="form-group">
              <div class="col-md-offset-2">
                <div class="btn-group" data-toggle="buttons">
                  <label class="btn btn-default active"><input name="schedule_mon" type="checkbox" autocomplete="off" checked>Mon</label>
                  <label class="btn btn-default active"><input name="schedule_tue" type="checkbox" autocomplete="off" checked>Tue</label>
                  <label class="btn btn-default active"><input name="schedule_wed" type="checkbox" autocomplete="off" checked>Wed</label>
                  <label class="btn btn-default active"><input name="schedule_thu" type="checkbox" autocomplete="off" checked>Thu</label>
                  <label class="btn btn-default active"><input name="schedule_fri" type="checkbox" autocomplete="off" checked>Fri</label>
                  <label class="btn btn-default"><input name="schedule_sat" type="checkbox" autocomplete="off">Sat</label>
                  <label class="btn btn-default"><input name="schedule_sun" type="checkbox" autocomplete="off">Sun</label>
                </div>
              </div>
            </div>
            <div class="form-group">
              <div class="col-md-offset-2">
                <em>Define company wide weekly schedule. Press correspondent button to toggle working/non-working day.</em>
              </div>
            </div>
            <div class="form-group">
              <div class="col-md-offset-2 col-md-11">
                <button type="submit" class="btn btn-success pull-right">Save schedule</button>
              </div>
            </div>
            </form>


          </div>
        </div>
      </div>
    </div>
  </div>
</div>


<div class="row">
  <div class="col-md-5">
{'fraction_non_alphanumeric': 0.15465947963097337, 'fraction_numerical': 0.00518295843267337, 'mean_word_length': 1.7455890722822993, 'pattern_counts': {'":': 0, '<': 224, '<?xml version=': 0, '>': 228, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6244647', 'n_tokens_mistral': 2690, 'n_tokens_neox': 2549, 'n_words': 540}