2013-08-01 10:33:49 +08:00
|
|
|
<%= labelled_form_for @project do |f| %>
|
2013-08-07 15:29:24 +08:00
|
|
|
<!--Added by young-->
|
2013-08-30 09:34:21 +08:00
|
|
|
<% if @course_tag == '1' %>
|
|
|
|
<h3><%=l(:label_course_new)%></h3>
|
|
|
|
<div class="box tabular">
|
|
|
|
<%= render :partial => 'course_form', :locals => { :f => f } %>
|
|
|
|
<%= submit_tag l(:button_create) %>
|
|
|
|
<%= submit_tag l(:button_create_and_continue), :name => 'course_continue' %>
|
|
|
|
<% else %>
|
|
|
|
<h3><%=l(:label_project_new)%></h3>
|
|
|
|
<div class="box tabular">
|
|
|
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
|
|
|
<%= submit_tag l(:button_create) %>
|
|
|
|
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
|
|
|
<% end %>
|
|
|
|
<%= javascript_tag "$('#project_name').focus();" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-08-07 15:29:24 +08:00
|
|
|
<!--Ended by young-->
|