2014-07-01 10:19:07 +00:00
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="span1"><%= t('personal_plugins.year') %></th>
|
|
|
|
<th class="span7"><%= t('module_name.personal_conference') %></th>
|
|
|
|
<th class="span1"><%= t('personal_plugins.author') %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody_writing_conferences" class="sort-holder">
|
2014-07-18 06:31:29 +00:00
|
|
|
<%= render 'writing_conference' %>
|
2014-07-01 10:19:07 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="bottomnav clearfix">
|
|
|
|
<div class="action pull-right">
|
2015-12-15 11:33:41 +00:00
|
|
|
<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/writing_conferences/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/writing_conferences/download_excel_format.xlsx">Download excel format</a>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-01-20 06:43:31 +00:00
|
|
|
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:new_), new_admin_writing_conference_path, :class => 'btn btn-primary' %>
|
2014-07-01 10:19:07 +00:00
|
|
|
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), admin_writing_conference_setting_path, :class => 'btn btn-primary pull-right' %>
|
|
|
|
</div>
|
|
|
|
<div class="pagination pagination-centered">
|
2014-07-18 06:31:29 +00:00
|
|
|
<%= content_tag :div, paginate(@writing_conferences), class: "pagination pagination-centered" %>
|
2014-07-01 10:19:07 +00:00
|
|
|
</div>
|
2015-12-15 11:33:41 +00:00
|
|
|
</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.");
|
|
|
|
window.location.href = "<%= admin_writing_conferences_url %>"
|
|
|
|
</script>
|
|
|
|
<% end %>
|