<commit_before><h1>New <%= t('presentation') %></h1>

<%= form_tag({:action => :create}, :multipart => true) do -%>
    <div class="asset_form">
      <%= error_messages_for :presentation -%>

      <%= render :partial=>"assets/upload_box",:locals=>{:resource=>@presentation} -%>

      <div class="form-group">
        <label>Title <span class="required">*</span></label>
        <% presentation_title_value = (params[:presentation].blank? || params[:presentation][:title].blank?) ? nil : params[:presentation][:title] -%>
        <%= text_area_tag "presentation[title]", presentation_title_value, :class=>"form-control" -%>
      </div>

      <div class="form-group">
        <label>Description</label>
        <% presentation_description_value = (params[:presentation].blank? || params[:presentation][:description].blank?) ? nil : params[:presentation][:description] -%>
        <%= text_area_tag "presentation[description]", presentation_description_value,:class=>"form-control" -%>
      </div>

      <%= render :partial => "projects/project_selector", :locals => { :resource => @presentation, :allow_nil => Seek::Config.is_virtualliver } -%>

      <%= render :partial => "scales/scales_selector",:locals=>{:object=>@presentation} if show_scales?%>

      <%= render :partial => 'assets/license_selector', :locals => { :resource => @presentation } %>

      <%= fields_for(@presentation) {|f|  f.hidden_field :parent_name } -%>

      <%= fields_for(@presentation) {|f| render :partial=>"assets/asset_form_bottom", :locals=> {:f => f}} -%>

      <% if Seek::Config.events_enabled -%>
          <%= render :partial => "assets/associate_event", :locals=>{:resource => @presentation} -%>
      <% end -%>

      <div>
        <%= preview_permission_popup_link(@presentation)-%>
        <%= submit_tag "Upload and Save", :id => "presentation_submit_btn",
                       :onclick => "javascript: validateResourceFields(true,'presentation',true); return(false);",
                       :class => 'btn btn-primary' -%>
        or <%= cancel_button(presentations_path) -%>
      </div>
    </div>
<% end -%>
<commit_msg>OPSK-1237 - use text field tag for presentation title<commit_after><h1>New <%= t('presentation') %></h1>

<%= form_tag({:action => :create}, :multipart => true) do -%>
    <div class="asset_form">
      <%= error_messages_for :presentation -%>

      <%= render :partial=>"assets/upload_box",:locals=>{:resource=>@presentation} -%>

      <div class="form-group">
        <label>Title <span class="required">*</span></label>
        <% presentation_title_value = (params[:presentation].blank? || params[:presentation][:title].blank?) ? nil : params[:presentation][:title] -%>
        <%= text_field_tag "presentation[title]", presentation_title_value, :class=>"form-control" -%>
      </div>

      <div class="form-group">
        <label>Description</label>
        <% presentation_description_value = (params[:presentation].blank? || params[:presentation][:description].blank?) ? nil : params[:presentation][:description] -%>
        <%= text_area_tag "presentation[description]", presentation_description_value,:class=>"form-control" -%>
      </div>

      <%= render :partial => "projects/project_selector", :locals => { :resource => @presentation, :allow_nil => Seek::Config.is_virtualliver } -%>

      <%= render :partial => "scales/scales_selector",:locals=>{:object=>@presentation} if show_scales?%>

      <%= render :partial => 'assets/license_selector', :locals => { :resource => @presentation } %>

      <%= fields_for(@presentation) {|f|  f.hidden_field :parent_name } -%>

      <%= fields_for(@presentation) {|f| render :partial=>"assets/asset_form_bottom", :locals=> {:f => f}} -%>

      <% if Seek::Config.events_enabled -%>
          <%= render :partial => "assets/associate_event", :locals=>{:resource => @presentation} -%>
      <% end -%>

      <div>
        <%= preview_permission_popup_link(@presentation)-%>
        <%= submit_tag "Upload and Save", :id => "presentation_submit_btn",
                       :onclick => "javascript: validateResourceFields(true,'presentation',true); return(false);",
                       :class => 'btn btn-primary' -%>
        or <%= cancel_button(presentations_path) -%>
      </div>
    </div>
<% end -%>

{'fraction_non_alphanumeric': 0.1966984422227389, 'fraction_numerical': 0.001860032550569635, 'mean_word_length': 3.7641196013289036, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 127, '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': '803978', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1282, 'n_words': 205}