修改新建课程中年份的选项
This commit is contained in:
parent
9aa903d79c
commit
d4fb5665df
|
@ -62,7 +62,167 @@
|
|||
|
||||
<!-- added by bai 增加了“年度”和“学期” -->
|
||||
<p><table><tr><td>
|
||||
<% unless @course.nil? %>
|
||||
<!--#######-->
|
||||
<% unless @course.nil? %>
|
||||
<% if @course.time == 2014 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px; margin-left:20px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014' selected='selected'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2015 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015' selected='selected'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2016 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016' selected='selected'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2017 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017' selected='selected'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2018 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018' selected='selected'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2019 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019' selected='selected'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2020 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020' selected='selected'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2021 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021' selected='selected'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2022 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022' selected='selected'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% elsif @course.time == 2023 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023' selected='selected'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% else %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
<%= select_tag 'time', "<option value = '2014'>2014</option>
|
||||
<option value = '2015'>2015</option>
|
||||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>
|
||||
<option value = '2018'>2018</option>
|
||||
<option value = '2019'>2019</option>
|
||||
<option value = '2020'>2020</option>
|
||||
<option value = '2021'>2021</option>
|
||||
<option value = '2022'>2022</option>
|
||||
<option value = '2023'>2023</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% end %>
|
||||
<% end %></td>
|
||||
<td>
|
||||
<!--#######-->
|
||||
<!-- <% unless @course.nil? %>
|
||||
<% if @course.time == 2008 %>
|
||||
<p><table><tr><td class="info" align="right" style="width: 86px; margin-left:20px"><strong><%= l(:label_term) %><span class="required"> * </span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
|
@ -217,9 +377,9 @@
|
|||
<option value = '2016'>2016</option>
|
||||
<option value = '2017'>2017</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %></td>
|
||||
<td>
|
||||
<td> -->
|
||||
<% unless @course.nil? %>
|
||||
<% if @course.term == l(:label_spring) %>
|
||||
<p><table><tr>
|
||||
|
|
Loading…
Reference in New Issue