some mods
This commit is contained in:
parent
6cc56bee26
commit
9c6bef074c
|
@ -1,12 +1,12 @@
|
||||||
<%= csrf_meta_tag %>
|
<%= csrf_meta_tag %>
|
||||||
<script type="text/javascript" src="/assets/jquery_ujs.js"></script>
|
<script type="text/javascript" src="/assets/jquery_ujs.js"></script>
|
||||||
<table width="100%" border="1">
|
<table width="100%" border="1">
|
||||||
<caption>執行計畫書 <a style="float: right;" href="<%= upload_cuser_file_path %>" class="btn btn-primary">Upload File</a></caption>
|
<caption>執行計畫書 <a style="float: right;" href="<%= upload_cuser_file_path %>" class="btn btn-primary"><%= t("member_counselor.upload_file") %></a></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="100px" >Date</th>
|
<th width="100px" ><%= t("member_counselor.date") %></th>
|
||||||
<th>Title</th>
|
<th><%= t("member_counselor.title") %></th>
|
||||||
<th width="200px">Action</th>
|
<th width="200px"><%= t("member_counselor.action") %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -17,14 +17,14 @@
|
||||||
<td><%= file.title %></td>
|
<td><%= file.title %></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="<%= file.file.url %>" target="_blank">Download</a>
|
<a href="<%= file.file.url %>" target="_blank">Download</a>
|
||||||
<a href="<%= edit_upload_cuser_file_path(file) %>">Edit</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?">Delete</a>
|
<a style="color: red;" href="<%= delete_upload_cuser_file_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("delete") %></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" style="text-align: center;">No files uploaded.</td>
|
<td colspan="3" style="text-align: center;"><%= t("member_counselor.no_files_uploaded") %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -33,12 +33,12 @@
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<table width="100%" border="1">
|
<table width="100%" border="1">
|
||||||
<caption>成果報告 <a style="float: right;" href="<%= upload_cuser_result_path %>" class="btn btn-primary">Upload Result</a></caption>
|
<caption>成果報告 <a style="float: right;" href="<%= upload_cuser_result_path %>" class="btn btn-primary"><%= t("member_counselor.upload_file") %></a></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="100px" >Date</th>
|
<th width="100px" ><%= t("member_counselor.date") %></th>
|
||||||
<th>Title</th>
|
<th><%= t("member_counselor.title") %></th>
|
||||||
<th width="200px">Action</th>
|
<th width="200px"><%= t("member_counselor.action") %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -49,14 +49,14 @@
|
||||||
<td><%= file.title %></td>
|
<td><%= file.title %></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="<%= file.file.url %>" target="_blank">Download</a>
|
<a href="<%= file.file.url %>" target="_blank">Download</a>
|
||||||
<a href="<%= edit_upload_cuser_result_path(file) %>">Edit</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?">Delete</a>
|
<a style="color: red;" href="<%= delete_upload_cuser_result_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("delete") %></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" style="text-align: center;">No files uploaded.</td>
|
<td colspan="3" style="text-align: center;"><%= t("member_counselor.no_files_uploaded") %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
|
|
||||||
<form action="/cuser/member_counselor/login" method="post">
|
<form action="/cuser/member_counselor/login" method="post">
|
||||||
<div>
|
<div>
|
||||||
<label for="username">Account</label>
|
<label for="username"><%= t("member_counselor.account") %></label>
|
||||||
<input type="text" name="username" id="username" />
|
<input type="text" name="username" id="username" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="password">Password</label>
|
<label for="password"><%= t("member_counselor.password") %></label>
|
||||||
<input type="password" name="password" id="password" />
|
<input type="password" name="password" id="password" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a href="<%= member_logout_path %>">Logout</a>
|
<a class="cuser_logout" href="<%= member_logout_path %>"><%= t("member_counselor.logout") %></a>
|
||||||
<% case current_counselor_user.user_type %>
|
<% case current_counselor_user.user_type %>
|
||||||
<% when 0,1 %>
|
<% when 0,1 %>
|
||||||
<%= render :partial => "body" %>
|
<%= render :partial => "body" %>
|
||||||
|
|
|
@ -9,6 +9,8 @@ en:
|
||||||
account: User Account
|
account: User Account
|
||||||
password: Password
|
password: Password
|
||||||
confirm_password: Confirm Password
|
confirm_password: Confirm Password
|
||||||
|
logout: Logout
|
||||||
|
upload_file: Upload File
|
||||||
affilated_committee: Affilated Committee
|
affilated_committee: Affilated Committee
|
||||||
name: Name
|
name: Name
|
||||||
organization: Organization
|
organization: Organization
|
||||||
|
@ -30,4 +32,7 @@ en:
|
||||||
city: City
|
city: City
|
||||||
year: Year
|
year: Year
|
||||||
file_date: Date
|
file_date: Date
|
||||||
downloaded_times: Download Count
|
downloaded_times: Download Count
|
||||||
|
date: Date
|
||||||
|
action: Action
|
||||||
|
no_files_uploaded: No Files Uploaded
|
|
@ -9,7 +9,9 @@ zh_tw:
|
||||||
account: 帳號
|
account: 帳號
|
||||||
password: 密碼
|
password: 密碼
|
||||||
confirm_password: 確認密碼
|
confirm_password: 確認密碼
|
||||||
|
logout: 登出
|
||||||
affilated_committee: 所屬委員
|
affilated_committee: 所屬委員
|
||||||
|
upload_file: 上傳檔案
|
||||||
name: 姓名
|
name: 姓名
|
||||||
organization: 服務機關
|
organization: 服務機關
|
||||||
title: 職稱
|
title: 職稱
|
||||||
|
@ -31,6 +33,9 @@ zh_tw:
|
||||||
year: 年度
|
year: 年度
|
||||||
file_date: Date
|
file_date: Date
|
||||||
downloaded_times: Download Count
|
downloaded_times: Download Count
|
||||||
|
date: 日期
|
||||||
|
action: 操作
|
||||||
|
no_files_uploaded: 尚未上傳任何檔案
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue