_serach.html projects/2/files

This commit is contained in:
yanxd 2014-01-18 11:24:21 +08:00
parent 6e15e90253
commit 0d44c2314c
2 changed files with 9 additions and 14 deletions

View File

@ -1,14 +1,10 @@
<!-- <h3> --><!-- %=l(:label_attachment_plural)%></h3 -->
<style>
table {
line-height: 20px;
font-size: 14px;
}
#ver-zebra
#ver-zebra, .file_table_des
{
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 12px;
margin: 20px;
margin: 5px 10px;
width: 98%;
text-align: left;
border-collapse: collapse;
@ -66,10 +62,9 @@
<!-- %= link_to(l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add') if User.current.member_of?(@project) % -->
<% end %>
</div>
<span class="font_lighter file_table_des"><%=(@project.project_type == 1) ? t(:label_user_course) : t(:label_project) %>文件共享专区</span>
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
<table class="list files" id="ver-zebra">
<table class="list files" id="ver-zebra" style="line-height: 20px; font-size: 14px;">
<colgroup>
<col class="vzebra-odd" />
<col class="vzebra-even" />
@ -81,7 +76,7 @@
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope =>"col" , :id => "vzebra-comedy")%>
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope =>"col", :id=> "vzebra-children")%>
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope =>"col", :id => "vzebra-action") %>
<%= sort_header_tag('downloads', :caption => "操作", :scope =>"col", :id => "vzebra-children") %>
<%= sort_header_tag('downloads', :caption => "", :scope =>"col", :id => "vzebra-children") %>
<!-- <%= sort_header_tag('description', :caption => l(:field_description)) %> -->
</tr></thead>
<tbody>

View File

@ -1,6 +1,6 @@
<div style="margin: 10px 2px;">
<%= form_tag( search_stores_path, method: 'post') do %>
<%= text_field_tag 'name', params[:name], size:"58", placeholder:'请输入要搜索的关键字', name: "name", :class => 'blueinputbar'%>
<%= text_field_tag 'name', params[:name], placeholder:'请输入要搜索的关键字', name: "name", :class => 'blueinputbar', :style => 'width:433px;'%>
<div style="display:inline-block; width: 2%;"></div>
<%= submit_tag l(:label_search), :class => "enterprise"%>
<span class='font_lighter' style="margin-left: 10px;">全站文件搜索。不会搜索私有项目中的内容、学生已经提交的作业。</span>