<commit_before><div id="content-header">
  <img src="/images/homework/button_homeworks.gif" alt="homework" />
  <h1>Homeworks</h1>
  <h3>New Homework</h3>
  <div id="app-back-button">
    <%= link_to_function image_tag("/images/buttons/back.png",:border => 0), "history.back()" %>
  </div>
</div>

<div id="page-yield">

  <% unless flash[:notice].nil? %>
    <p class="flash-msg"> <%= flash[:notice] %> </p>
  <% end %>

  <div class="box">
       <div class="bread_crumb">
      <%= link_to 'Courses', courses_path %> &raquo;
        <%= link_to @course.full_name, @course %> &raquo;
        <%= link_to "Batch #{@batch.name}", [@course, @batch] %> &raquo;
        <%= link_to 'homeworks', batch_homework_groups_path(@batch) %> &raquo;
        <%= link_to @homework_group.name, [@batch, @homework_group] %> &raquo;
        New
        </div>

    <h5>For homework group - <%= @homework_group.name %></h5>
    <% unless @homework_group.homework_type == 'Grades' %>
      <% form_for [@homework_group, @homework] do |f| %>
        <div class="label-field-pair">
          <label for="subject_id">Subject</label>
          <div class="text-input-bg"><%= f.select :subject_id, @subjects.map { |s| [s.name, s.id]} %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_start_time">Start Time</label>
          <div class="text-input-bg"> <%= f.calendar_date_select :start_time %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_end_time">End Time</label>
          <div class="text-input-bg"> <%= f.calendar_date_select :end_time %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_maximum_marks">Maximum Marks</label>
          <div class="text-input-bg"><%= f.text_field :maximum_marks %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_minimum_marks">Minimum Marks</label>
          <div class="text-input-bg"> <%= f.text_field :minimum_marks %></div>
        </div>

           <%= submit_tag "", :value => "► Save", :class => "submit_button" %>

      <% end %>

    <% else %>
      <% form_for [@homework_group, @homework] do |f| %>


        <div class="label-field-pair">
          <%= f.label :subject_id %>
          <div class="text-input-bg">  <%= f.select :subject_id, @subjects.map { |s| [s.name, s.id]} %></div>
        </div>

        <div class="label-field-pair">
          <%= f.label :start_time %>
          <div class="text-input-bg"><%= f.calendar_date_select :start_time %></div>
        </div>
        <div class="label-field-pair">
          <%= f.label :end_time %>
          <div class="text-input-bg"><%= f.calendar_date_select :end_time %></div>
        </div>

        <%= submit_tag "", :value => "► Save", :class => "submit_button" %>

      <% end %>
    <% end %>
    <div class="extender"></div>
  </div>
</div><commit_msg>Footer<commit_after><div id="content-header">
  <img src="/images/homework/button_homeworks.gif" alt="homework" />
  <h1>Homeworks</h1>
  <h3>New Homework</h3>
  <div id="app-back-button">
    <%= link_to_function image_tag("/images/buttons/back.png",:border => 0), "history.back()" %>
  </div>
</div>

<div id="page-yield">

  <% unless flash[:notice].nil? %>
    <p class="flash-msg"> <%= flash[:notice] %> </p>
  <% end %>

  <div class="box">
       <div class="bread_crumb">
      <%= link_to 'Courses', courses_path %> &raquo;
        <%= link_to @course.full_name, @course %> &raquo;
        <%= link_to "Batch #{@batch.name}", [@course, @batch] %> &raquo;
        <%= link_to 'homeworks', batch_homework_groups_path(@batch) %> &raquo;
        <%= link_to @homework_group.name, [@batch, @homework_group] %> &raquo;
        New
        </div>

    <h5>For homework group - <%= @homework_group.name %></h5>
    <% unless @homework_group.homework_type == 'Grades' %>
      <% form_for [@homework_group, @homework] do |f| %>
        <div class="label-field-pair">
          <label for="subject_id">Subject</label>
          <div class="text-input-bg"><%= f.select :subject_id, @subjects.map { |s| [s.name, s.id]} %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_start_time">Start Time</label>
          <div class="text-input-bg"> <%= f.calendar_date_select :start_time %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_end_time">End Time</label>
          <div class="text-input-bg"> <%= f.calendar_date_select :end_time %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_maximum_marks">Maximum Marks</label>
          <div class="text-input-bg"><%= f.text_field :maximum_marks %></div>
        </div>
        <div class="label-field-pair">
          <label for="subject_minimum_marks">Minimum Marks</label>
          <div class="text-input-bg"> <%= f.text_field :minimum_marks %></div>
        </div>

           <%= submit_tag "", :value => "► Save", :class => "submit_button" %>

      <% end %>

    <% else %>
      <% form_for [@homework_group, @homework] do |f| %>


        <div class="label-field-pair">
          <%= f.label :subject_id %>
          <div class="text-input-bg">  <%= f.select :subject_id, @subjects.map { |s| [s.name, s.id]} %></div>
        </div>

        <div class="label-field-pair">
          <%= f.label :start_time %>
          <div class="text-input-bg"><%= f.calendar_date_select :start_time %></div>
        </div>
        <div class="label-field-pair">
          <%= f.label :end_time %>
          <div class="text-input-bg"><%= f.calendar_date_select :end_time %></div>
        </div>
 <div class="label-field-pair">
	 <%= f.label :description %>
 <div><%= homework_form.text_area :description,:rows => 7 %></div>
</div>
        <%= submit_tag "", :value => "► Save", :class => "submit_button" %>

      <% end %>
    <% end %>
    <div class="extender"></div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.2072721179624665, 'fraction_numerical': 0.0025134048257372654, 'mean_word_length': 2.7005579665220085, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 206, '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': '1663503', 'n_tokens_mistral': 2206, 'n_tokens_neox': 2030, 'n_words': 377}