parent
35172dab59
commit
5883b451ca
@ -0,0 +1,6 @@
|
|||||||
|
<div class="tabs">
|
||||||
|
<ul>
|
||||||
|
<li><%= link_to '未审批', {:action => 'applied_schools'}, class: "#{current_page?(unapplied_schools_path)? 'selected' : nil }" %></li>
|
||||||
|
<li><%= link_to '已审批', {:action => 'has_applied_schools'}, class: "#{current_page?(applied_schools_path)? 'selected' : nil }" %></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
@ -0,0 +1,76 @@
|
|||||||
|
<h3>
|
||||||
|
<%=l(:label_applied_shcools)%>
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<%= render 'tab_has_applied_applied' %>
|
||||||
|
|
||||||
|
<%= form_tag({}, :method => :get) do %>
|
||||||
|
<fieldset>
|
||||||
|
<label for='name'>
|
||||||
|
单位名称:
|
||||||
|
</label>
|
||||||
|
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '输入单位名称进行搜索' %>
|
||||||
|
<%= submit_tag l(:button_apply ), :class => "small", :name => nil %>
|
||||||
|
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'applied_shcools'}, :class => 'icon icon-reload' %>
|
||||||
|
</fieldset>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="autoscroll">
|
||||||
|
<table class="list" style="width: 100%;table-layout: fixed">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 20px;">
|
||||||
|
序号
|
||||||
|
</th>
|
||||||
|
<th style="width: 85px;">
|
||||||
|
单位名称
|
||||||
|
</th>
|
||||||
|
<th style="width: 75px;">
|
||||||
|
地区
|
||||||
|
</th>
|
||||||
|
<th style="width: 75px;">
|
||||||
|
详细地址
|
||||||
|
</th>
|
||||||
|
<th style="width: 20px;">
|
||||||
|
用户
|
||||||
|
</th>
|
||||||
|
<th style="width: 60px;">
|
||||||
|
创建时间
|
||||||
|
</th>
|
||||||
|
<th style="width: 75px;">
|
||||||
|
操作
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% @apply_status.each do |apply| %>
|
||||||
|
<tr class="odd">
|
||||||
|
<td style="text-align: center;">
|
||||||
|
<%= apply.id %>
|
||||||
|
</td>
|
||||||
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=apply.name%>' id="schools_title_<%= apply.id %>">
|
||||||
|
<%= apply.name %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= apply.province + apply.city %>
|
||||||
|
</td>
|
||||||
|
<td align="left" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
||||||
|
<%= apply.address %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= apply.user_id %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= format_date(apply.created_at) %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= link_to( "批准", { :controller => 'admin', :action => 'approve_applied_schools', :id => apply.id }, :class => 'icon-del') %>
|
||||||
|
<%= link_to( "删除", { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id }, :class => 'icon-del') %>
|
||||||
|
<%= link_to( "更改", { :controller => 'admin', :action => 'edit_applied_schools', :id => apply.id, :name => apply.name }, :class => 'icon-del') %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
@ -0,0 +1,75 @@
|
|||||||
|
<h3>
|
||||||
|
<%=l(:label_applied_shcools)%>
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<%= render 'tab_has_applied_applied' %>
|
||||||
|
|
||||||
|
<%= form_tag({}, :method => :get) do %>
|
||||||
|
<fieldset>
|
||||||
|
<label for='name'>
|
||||||
|
单位名称:
|
||||||
|
</label>
|
||||||
|
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '输入单位名称进行搜索' %>
|
||||||
|
<%= submit_tag l(:button_apply ), :class => "small", :name => nil %>
|
||||||
|
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'applied_shcools'}, :class => 'icon icon-reload' %>
|
||||||
|
</fieldset>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="autoscroll">
|
||||||
|
<table class="list" style="width: 100%;table-layout: fixed">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 20px;">
|
||||||
|
序号
|
||||||
|
</th>
|
||||||
|
<th style="width: 85px;">
|
||||||
|
单位名称
|
||||||
|
</th>
|
||||||
|
<th style="width: 75px;">
|
||||||
|
地区
|
||||||
|
</th>
|
||||||
|
<th style="width: 75px;">
|
||||||
|
详细地址
|
||||||
|
</th>
|
||||||
|
<th style="width: 20px;">
|
||||||
|
用户
|
||||||
|
</th>
|
||||||
|
<th style="width: 60px;">
|
||||||
|
创建时间
|
||||||
|
</th>
|
||||||
|
<th style="width: 75px;">
|
||||||
|
操作
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% @has_apply_status.each do |apply| %>
|
||||||
|
<tr class="odd">
|
||||||
|
<td style="text-align: center;">
|
||||||
|
<%= apply.id %>
|
||||||
|
</td>
|
||||||
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=apply.name%>' id="schools_title_<%= apply.id %>">
|
||||||
|
<%= apply.name %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= apply.province + apply.city %>
|
||||||
|
</td>
|
||||||
|
<td align="left" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
||||||
|
<%= apply.address %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= apply.user_id %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= format_date(apply.created_at) %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= link_to( "删除", { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id }, :class => 'icon-del') %>
|
||||||
|
<%= link_to( "更改", { :controller => 'admin', :action => 'edit_applied_schools', :id => apply.id, :name => apply.name }, :class => 'icon-del') %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue