|
|
@ -1,4 +1,6 @@
|
|
|
|
<h3><%=l(:label_attachment_new)%></h3>
|
|
|
|
<h3>
|
|
|
|
|
|
|
|
<%=l(:label_attachment_new)%>
|
|
|
|
|
|
|
|
</h3>
|
|
|
|
<% attachmenttypes = course.attachmenttypes %>
|
|
|
|
<% attachmenttypes = course.attachmenttypes %>
|
|
|
|
<%= error_messages_for 'attachment' %>
|
|
|
|
<%= error_messages_for 'attachment' %>
|
|
|
|
<div id="network_issue" style="color: red; display: none;">上传出现错误,请您检查您的网络环境,并刷新页面重新上传。</div>
|
|
|
|
<div id="network_issue" style="color: red; display: none;">上传出现错误,请您检查您的网络环境,并刷新页面重新上传。</div>
|
|
|
@ -8,8 +10,7 @@
|
|
|
|
<% if attachmenttypes.any? %>
|
|
|
|
<% if attachmenttypes.any? %>
|
|
|
|
<%= l(:attachment_type) %></label>
|
|
|
|
<%= l(:attachment_type) %></label>
|
|
|
|
<%= select_tag "attachment_type",
|
|
|
|
<%= select_tag "attachment_type",
|
|
|
|
options_from_collection_for_select(attachmenttypes, "id",
|
|
|
|
options_from_collection_for_select(attachmenttypes, "id","typeName", 2), {style: 'width:100px'} %>
|
|
|
|
"typeName", 2), {style: 'width:100px'} %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|