2017-05-18 12:12:35 +00:00
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
<script type="text/javascript" src="/assets/jquery_ujs.js"></script>
|
|
|
|
<table width="100%" border="1">
|
2017-07-05 03:22:01 +00:00
|
|
|
<caption>執行計畫書 <a style="float: right;" href="<%= upload_cuser_file_path %>" class="btn btn-primary"><%= t("member_counselor.upload_file") %></a></caption>
|
2017-05-18 12:12:35 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-07-05 03:22:01 +00:00
|
|
|
<th width="100px" ><%= t("member_counselor.date") %></th>
|
|
|
|
<th><%= t("member_counselor.title") %></th>
|
|
|
|
<th width="200px"><%= t("member_counselor.action") %></th>
|
2017-05-18 12:12:35 +00:00
|
|
|
</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>
|
2017-07-05 06:46:46 +00:00
|
|
|
<a href="<%= file.file.url %>" target="_blank"><%= t("member_counselor.download") %></a>
|
2017-07-05 03:22:01 +00:00
|
|
|
<a href="<%= edit_upload_cuser_file_path(file) %>"><%= t("edit") %></a>
|
2017-07-05 06:46:46 +00:00
|
|
|
<a style="color: red;" href="<%= delete_upload_cuser_file_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("member_counselor.delete") %></a>
|
2017-05-18 12:12:35 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<tr>
|
2017-07-05 03:22:01 +00:00
|
|
|
<td colspan="3" style="text-align: center;"><%= t("member_counselor.no_files_uploaded") %></td>
|
2017-05-18 12:12:35 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-06-27 12:01:36 +00:00
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
<br />
|
2017-06-27 12:01:36 +00:00
|
|
|
<br />
|
|
|
|
<table width="100%" border="1">
|
2017-07-05 03:22:01 +00:00
|
|
|
<caption>成果報告 <a style="float: right;" href="<%= upload_cuser_result_path %>" class="btn btn-primary"><%= t("member_counselor.upload_file") %></a></caption>
|
2017-06-27 12:01:36 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-07-05 03:22:01 +00:00
|
|
|
<th width="100px" ><%= t("member_counselor.date") %></th>
|
|
|
|
<th><%= t("member_counselor.title") %></th>
|
|
|
|
<th width="200px"><%= t("member_counselor.action") %></th>
|
2017-06-27 12:01:36 +00:00
|
|
|
</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>
|
2017-07-05 06:46:46 +00:00
|
|
|
<a href="<%= file.file.url %>" target="_blank"><%= t("member_counselor.download") %></a>
|
2017-07-05 03:22:01 +00:00
|
|
|
<a href="<%= edit_upload_cuser_result_path(file) %>"><%= t("edit") %></a>
|
2017-07-05 06:46:46 +00:00
|
|
|
<a style="color: red;" href="<%= delete_upload_cuser_result_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("member_counselor.delete") %></a>
|
2017-06-27 12:01:36 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<tr>
|
2017-07-05 03:22:01 +00:00
|
|
|
<td colspan="3" style="text-align: center;"><%= t("member_counselor.no_files_uploaded") %></td>
|
2017-06-27 12:01:36 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br />
|