<commit_before><%= render partial: "event_form_header" %>

<div class="row">

  <div class="col-md-12 col-sm-12">
    <div class="well"> 

      <%= form_for @event, class: "form-inline" do |f| %>
        <h4>Edit This Event</h4>

        <label for="event_title">What:</label>
        <div class="form-group" >
          <%= f.text_field :title, class: "form-control", placeholder: "Title of the event" %>
          <p class="help-block">What the event will go by in the WWW guide</p>
        </div>

        <label for="event_hosting_location">Where:</label>
        <div class="form-group" >
          <%= f.text_field :hosting_location, class: "form-control", placeholder: "Name of Hosting location" %>
          <p class="help-block">Theme Camp, Event, or Art Installation</p>
        </div>

        <label for="event_main_contact_person">Contact Person:</label>
        <div class="form-group" >
          <%= f.text_field :main_contact_person, class: "form-control", placeholder: "Name of Main Contact Person" %>
          <p class="help-block">First and Last</p>
        </div>
        <div class="form-group" >
          <%= f.text_field :contact_person_email, class: "form-control", placeholder: "Email" %>
          <p class="help-block">Email</p>
        </div>

        <label for="event_event_recurrence">When:</label>
        <div class="form-group" >
          <p class="help-block">Does this event happen on multiple occasions or dates? or happen only once?</p>
          <div class="radio">
            <label>
              <%= f.radio_button :event_recurrence, "single" %>
              This event happens once
            </label>
          </div>
          <div class="radio">
            <label>
              <%= f.radio_button :event_recurrence, "multiple" %>
              This event happens multiple times
            </label>
          </div>
        </div>

        <div id="single_occurrance_event" class="form-group event_time_inputs" style="display:none;">
          <%= f.text_field :single_occurrence_start_date, class: "form-control date start", placeholder: "Date" %>
          <%= f.text_field :single_occurrence_start_time, class: "form-control time start", placeholder: "Starting time" %>
          <%= f.text_field :single_occurrence_end_time, class: "form-control time end", placeholder: "Ending time" %>
          <%= f.text_field :single_occurrence_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
        </div>

        <div class="form-group" id="multiple_occurrance_event" style="display:none;">
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_wednesday_start_time">Wednesday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :wednesday_start_date, class: "form-control date start", placeholder: "start Date", style: "display: none;" %>
              <%= f.text_field :wednesday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :wednesday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :wednesday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_thursday_start_time">Thursday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :thursday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :thursday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :thursday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :thursday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_friday_start_time">Friday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :friday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :friday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :friday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :friday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_saturday_start_time">Saturday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :saturday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :saturday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :saturday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :saturday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_sunday_start_time">Sunday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :sunday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :sunday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :sunday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :sunday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>

        </div>


        <label for="event_event_description">What:</label>
        <div class="form-group" >
          <%= f.text_area :event_description, class: "form-control", placeholder: "Description" %>
          <p class="help-block">Brief description of the event, workshop, or performance. 50 words or less</p>
        </div>

        <%= submit_tag "Update", :class=>"btn btn-success" %>
        <%= link_to "Remove", @event, method: :delete, style: "color: #999; margin-left: 10px;", data: { confirm: "Are you sure you want to remove this event?"} %>

      <% end %>

    </div>
  </div>
</div><commit_msg>link to cancel editing an event<commit_after><%= render partial: "event_form_header" %>

<div class="row">

  <div class="col-md-12 col-sm-12">
    <div class="well"> 

      <%= form_for @event, class: "form-inline" do |f| %>
        <h4>Edit This Event</h4>

        <label for="event_title">What:</label>
        <div class="form-group" >
          <%= f.text_field :title, class: "form-control", placeholder: "Title of the event" %>
          <p class="help-block">What the event will go by in the WWW guide</p>
        </div>

        <label for="event_hosting_location">Where:</label>
        <div class="form-group" >
          <%= f.text_field :hosting_location, class: "form-control", placeholder: "Name of Hosting location" %>
          <p class="help-block">Theme Camp, Event, or Art Installation</p>
        </div>

        <label for="event_main_contact_person">Contact Person:</label>
        <div class="form-group" >
          <%= f.text_field :main_contact_person, class: "form-control", placeholder: "Name of Main Contact Person" %>
          <p class="help-block">First and Last</p>
        </div>
        <div class="form-group" >
          <%= f.text_field :contact_person_email, class: "form-control", placeholder: "Email" %>
          <p class="help-block">Email</p>
        </div>

        <label for="event_event_recurrence">When:</label>
        <div class="form-group" >
          <p class="help-block">Does this event happen on multiple occasions or dates? or happen only once?</p>
          <div class="radio">
            <label>
              <%= f.radio_button :event_recurrence, "single" %>
              This event happens once
            </label>
          </div>
          <div class="radio">
            <label>
              <%= f.radio_button :event_recurrence, "multiple" %>
              This event happens multiple times
            </label>
          </div>
        </div>

        <div id="single_occurrance_event" class="form-group event_time_inputs" style="display:none;">
          <%= f.text_field :single_occurrence_start_date, class: "form-control date start", placeholder: "Date" %>
          <%= f.text_field :single_occurrence_start_time, class: "form-control time start", placeholder: "Starting time" %>
          <%= f.text_field :single_occurrence_end_time, class: "form-control time end", placeholder: "Ending time" %>
          <%= f.text_field :single_occurrence_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
        </div>

        <div class="form-group" id="multiple_occurrance_event" style="display:none;">
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_wednesday_start_time">Wednesday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :wednesday_start_date, class: "form-control date start", placeholder: "start Date", style: "display: none;" %>
              <%= f.text_field :wednesday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :wednesday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :wednesday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_thursday_start_time">Thursday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :thursday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :thursday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :thursday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :thursday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_friday_start_time">Friday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :friday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :friday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :friday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :friday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_saturday_start_time">Saturday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :saturday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :saturday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :saturday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :saturday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>
          <div class="row event_time_inputs">
            <div class="col-xs-4">
              <label for="event_sunday_start_time">Sunday:</label>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :sunday_start_date, class: "form-control date start", placeholder: "Date", style: "display: none;" %>
              <%= f.text_field :sunday_start_time, class: "form-control time start", placeholder: "Starting time" %>
            </div>
            <div class="col-xs-4">
              <%= f.text_field :sunday_end_time, class: "form-control time end", placeholder: "Ending time" %>
              <%= f.text_field :sunday_end_date, class: "form-control date end", placeholder: "Ending date", style: "display: none;" %>
            </div>
          </div>

        </div>


        <label for="event_event_description">What:</label>
        <div class="form-group" >
          <%= f.text_area :event_description, class: "form-control", placeholder: "Description" %>
          <p class="help-block">Brief description of the event, workshop, or performance. 50 words or less</p>
        </div>

        <%= submit_tag "Update", :class=>"btn btn-success" %>
        <%= link_to 'Cancel', :back, style: "color: #999; margin-left: 10px;" %>
        <%= link_to "Remove", @event, method: :delete, style: "color: #999; margin-left: 10px;", data: { confirm: "Are you sure you want to remove this event?"} %>

      <% end %>

    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.15433928448335285, 'fraction_numerical': 0.004204866616116357, 'mean_word_length': 2.43222143364088, 'pattern_counts': {'":': 0, '<': 284, '<?xml version=': 0, '>': 286, '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': '4014793', 'n_tokens_mistral': 4540, 'n_tokens_neox': 4291, 'n_words': 1060}