64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
<%= csrf_meta_tag %>
|
|
<script type="text/javascript" src="/assets/jquery_ujs.js"></script>
|
|
<table width="100%" border="1">
|
|
<caption>執行計畫書 <a style="float: right;" href="<%= upload_cuser_file_path %>" class="btn btn-primary"><%= t("member_counselor.upload_file") %></a></caption>
|
|
<thead>
|
|
<tr>
|
|
<th width="100px" ><%= t("member_counselor.date") %></th>
|
|
<th><%= t("member_counselor.title") %></th>
|
|
<th width="200px"><%= t("member_counselor.action") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% if !@files.blank? %>
|
|
<% @files.each_with_index do |file,idx| %>
|
|
<tr>
|
|
<td><%= file.created_at.strftime("%y/%m/%d") %></td>
|
|
<td><%= file.title %></td>
|
|
<td>
|
|
<a href="<%= file.file.url %>" target="_blank"><%= t("member_counselor.download") %></a>
|
|
<a href="<%= edit_upload_cuser_file_path(file) %>"><%= t("edit") %></a>
|
|
<a style="color: red;" href="<%= delete_upload_cuser_file_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("member_counselor.delete") %></a>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% else %>
|
|
<tr>
|
|
<td colspan="3" style="text-align: center;"><%= t("member_counselor.no_files_uploaded") %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<br />
|
|
<br />
|
|
<table width="100%" border="1">
|
|
<caption>成果報告 <a style="float: right;" href="<%= upload_cuser_result_path %>" class="btn btn-primary"><%= t("member_counselor.upload_file") %></a></caption>
|
|
<thead>
|
|
<tr>
|
|
<th width="100px" ><%= t("member_counselor.date") %></th>
|
|
<th><%= t("member_counselor.title") %></th>
|
|
<th width="200px"><%= t("member_counselor.action") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% if !@results.blank? %>
|
|
<% @results.each_with_index do |file,idx| %>
|
|
<tr>
|
|
<td><%= file.created_at.strftime("%y/%m/%d") %></td>
|
|
<td><%= file.title %></td>
|
|
<td>
|
|
<a href="<%= file.file.url %>" target="_blank"><%= t("member_counselor.download") %></a>
|
|
<a href="<%= edit_upload_cuser_result_path(file) %>"><%= t("edit") %></a>
|
|
<a style="color: red;" href="<%= delete_upload_cuser_result_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("member_counselor.delete") %></a>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% else %>
|
|
<tr>
|
|
<td colspan="3" style="text-align: center;"><%= t("member_counselor.no_files_uploaded") %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<br /> |