2016-01-20 16:24:14 +08:00
|
|
|
<div class="boxContainer">
|
|
|
|
<div>
|
|
|
|
<div class="sendText fl mr10" style="width: auto">发送到</div>
|
|
|
|
<div class="resourcesSendTo">
|
2016-09-01 11:12:56 +08:00
|
|
|
<% if @hidden_unproject %>
|
|
|
|
<select class="resourcesSendType" onclick="chooseSendType2('<%= send_id %>','<%= send_ids %>','<%= User.current.id %>','file', '<%= @type %>');">
|
|
|
|
<option value="1">班级</option>
|
|
|
|
<option value="2" selected>项目</option>
|
|
|
|
<option value="3">组织</option>
|
|
|
|
</select>
|
|
|
|
<% else %>
|
|
|
|
<select class="resourcesSendType" onclick="chooseSendType2hidden('<%= send_id %>', '<%= send_ids%>','<%= User.current.id %>','file', '<%= @type %>');">
|
|
|
|
<option value="1" selected>项目</option>
|
|
|
|
<option value="2">组织</option>
|
|
|
|
</select>
|
|
|
|
<% end %>
|
2016-01-20 16:24:14 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
<!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose" onclick="closeModal();"></a></div>-->
|
|
|
|
<div class="fl">
|
|
|
|
<%= form_tag search_user_project_user_path(user),:method => 'get',
|
|
|
|
:remote=>true,:id=>'search_user_project_form',:class=>'resourcesSearchBox' do %>
|
|
|
|
<%= hidden_field_tag(:send_id, send_id) %>
|
|
|
|
<%= hidden_field_tag(:send_ids, send_ids) %>
|
|
|
|
<input type="text" id="search_project_input" value="<%= @search %>" name="search" placeholder="输入项目ID或者名称搜索" class="searchResourcePopup" />
|
|
|
|
<script>
|
2016-01-21 14:33:31 +08:00
|
|
|
observeSearchfieldOnInput('search_project_input','<%= search_user_project_user_path(user)%>','<%= send_id %>','<%= send_ids %>','news')
|
2016-01-20 16:24:14 +08:00
|
|
|
</script>
|
|
|
|
<!--<a href="javascript:void(0);" class="searchIconPopup"></a>-->
|
|
|
|
<%= submit_tag '',:class=>'searchIcon2',:onfocus=>"this.blur();",:style=>'border-style:none' %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-03-28 19:20:09 +08:00
|
|
|
<div id="project_news_form">
|
|
|
|
<%= render :partial => 'users/project_news_form', :locals => {:user => user, :projects => projects, :send_id => send_id, :send_ids => send_ids} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-01-20 16:24:14 +08:00
|
|
|
|