% # encoding: utf-8 %>
<%= stylesheet_link_tag "lib/jquery-ui-1.12.1/jquery-ui.min.css" %>
<%= stylesheet_link_tag "application_form" %>
<%= javascript_include_tag 'basic.js' %>
<% @@session = session %>
<%= yield %>
<%
data = action_data
@con = data["con"]
@application_form = data["application_form"]
@application_form_signup = data["application_form_signup"]
@form_index = 0
%>
<% if !session[:application_form_signup_id].blank? %>
<% if ( @application_form.contribute_file_count.blank? or @application_form_signup.application_form_signup_contributes.count < @application_form.contribute_file_count.to_i ) %>
<%= form_for @con, url: add_file_proc_application_forms_path, html: {class: "content form-horizontal" , :id=>"new-application_form-signup-contribute"} do |f| %>
<% begin %>
<%= render :partial => 'application_forms/contribute_form',:locals=>{:f=>f} %>
<%rescue => e%>
<%= e %>
<% end %>
<% end %>
<% else %>
上傳檔案數已滿
<% end %>
<% else %>
請先登入
回列表頁
<% end %>