2015-12-29 11:35:44 +00:00
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="span1"><%= t('personal_course.year') %></th>
|
2020-09-20 09:20:43 +00:00
|
|
|
<th class="span7"><%= t('personal_course.title') %></th>
|
|
|
|
<th class="span2"><%= t('personal_course.course_assignment') %></th>
|
2015-12-29 11:35:44 +00:00
|
|
|
<th class="span1"><%= t("personal_plugins.author") %></th>
|
2020-09-15 09:02:43 +00:00
|
|
|
<th class="span2"><%= t("personal_course.students") %></th>
|
2015-12-29 11:35:44 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody_writing_journals" class="sort-holder">
|
|
|
|
<%= render 'courses' %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="bottomnav clearfix">
|
|
|
|
<div class="action pull-right">
|
|
|
|
<!-- <div class="dropup upload-button">
|
|
|
|
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
|
|
|
|
<i class="icon-upload-alt icon-white"></i>上傳
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu upload-box">
|
|
|
|
<form action="/admin/journal_papers/import_from_excel" method="post" enctype="multipart/form-data">
|
|
|
|
<%#= hidden_field_tag :authenticity_token, form_authenticity_token %>
|
|
|
|
<input type="file" name="import_file" >
|
|
|
|
<button class="btn btn-primary" type="submit"><%#= t(:submit) %></button>
|
|
|
|
<a class="" href="/admin/journal_papers/download_excel_format.xlsx">Download excel format</a>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:new_), new_admin_course_path, :class => 'btn btn-primary' %>
|
|
|
|
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), admin_course_setting_path, :class => 'btn btn-primary pull-right' %>
|
|
|
|
</div>
|
|
|
|
<div class="pagination pagination-centered">
|
|
|
|
<%= content_tag :div, paginate(@courses), class: "pagination pagination-centered" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% if params[:error] == "1" %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
alert("File cannot be imported. File has more than 500 entries. Please seperate the entries in different files.");
|
2016-06-07 07:12:13 +00:00
|
|
|
window.location.href = "<%= admin_courses_url %>"
|
2015-12-29 11:35:44 +00:00
|
|
|
</script>
|
|
|
|
<% end %>
|