parent
dd88742b78
commit
15cff47c92
|
@ -14,7 +14,7 @@ class OrganizationsController < ApplicationController
|
||||||
include PollHelper
|
include PollHelper
|
||||||
helper :user_score
|
helper :user_score
|
||||||
helper :journals
|
helper :journals
|
||||||
|
helper :attachments
|
||||||
# added by liuping 关注
|
# added by liuping 关注
|
||||||
|
|
||||||
helper :watchers
|
helper :watchers
|
||||||
|
|
|
@ -2,10 +2,14 @@
|
||||||
<!--<span class="fontBlue pl10">请在左侧选择要转发的位置</span>-->
|
<!--<span class="fontBlue pl10">请在左侧选择要转发的位置</span>-->
|
||||||
<% if !org.nil? %>
|
<% if !org.nil? %>
|
||||||
<span class="fontBlue pl10">组织:<%= org.name %></span>
|
<span class="fontBlue pl10">组织:<%= org.name %></span>
|
||||||
<% org.org_subfields.where("field_type='Post'").each do |subfield| %>
|
<% if org.org_subfields.where("field_type='Post'").count > 0 %>
|
||||||
<li>
|
<% org.org_subfields.where("field_type='Post'").each do |subfield| %>
|
||||||
<label><input type="checkbox" name='org_subfields[]' value='<%= subfield.id %>' class="mt3 fl mr5"/><span><%= subfield.name %></span></label>
|
<li>
|
||||||
</li>
|
<label><input type="checkbox" name='org_subfields[]' value='<%= subfield.id %>' class="mt3 fl mr5"/><span><%= subfield.name %></span></label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<li><span class="mt3 fl mr5">暂无资源栏目</span></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="fontBlue pl10">请在左侧选择组织</span>
|
<span class="fontBlue pl10">请在左侧选择组织</span>
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
<%= document.content.html_safe %>
|
<%= document.content.html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<div class=" fl" style="width: 600px">
|
||||||
|
<%= link_to_attachments_course document, :author => false %>
|
||||||
|
</div>
|
||||||
<!-- <%# if defined?(home_id) %>
|
<!-- <%# if defined?(home_id) %>
|
||||||
<div style="float:right;">最后编辑:<%#= User.find() %></div>
|
<div style="float:right;">最后编辑:<%#= User.find() %></div>
|
||||||
<%# end %>-->
|
<%# end %>-->
|
||||||
|
|
Loading…
Reference in New Issue