olympiamanagement/app/views/admin/olympiamanagements/class_setting.html.erb

40 lines
2.5 KiB
Plaintext

<link rel="stylesheet" media="screen" type="text/css" href="/assets/admin/olympiamanagement.scss">
<link rel="stylesheet" media="print" type="text/css" href="/assets/admin/olympiamanagement.scss">
<script src="/assets/admin/olympiamanagement.js"></script>
<fieldset class="fieldset_block class_setting_block">
<legend class="fieldset_title"><%=t('olympiamanagement.class_setting')%></legend>
<div class="col_text">
<li class="col" for="MinClass"><%= t('olympiamanagement.class_number')+"(#{t('olympiamanagement.spacing')})"%></li>
<li class="col_r"><input name="MinClass" type="text" id="MinClass" size="5" class="col_input" <%= @ClassSettingField.nil? ? nil : "value=#{@ClassSettingField.class_number_range[0]}"%>></li>
<span style="float:left;">~</span>
<li class="col_r"><input name="MaxClass" type="text" id="MaxClass" size="5" class="col_input" <%= @ClassSettingField.nil? ? nil : "value=#{@ClassSettingField.class_number_range[1]}"%>></li>
</div>
<div class="col_text">
<li class="col" for="Person"><%= t('olympiamanagement.enrollment_available') %></li><li class="col_r"><input name="Person" type="text" id="Person" size="5" class="col_input" <%= @ClassSettingField.nil? ? nil : "value=#{@ClassSettingField.enrollment_available}"%>></li>
</div>
<div style="clear:both;"></div>
<input type="submit" name="Submit" value="<%=t('olympiamanagement.confirm')%>">
<input type="reset" name="Submit" value="<%=t('olympiamanagement.cancel')%>">
</fieldset>
<table cellspacing="0" class="ts_rowsonly" width="100%" id="RSS_Table_page_contest_admin_1">
<thead>
<tr>
<th><%= t('olympiamanagement.class_number') %></th>
<th><%= t('olympiamanagement.enrollment_available') %></th>
<th><%= t('olympiamanagement.action') %></th>
</tr>
</thead>
<tbody>
<% @class_setting_list.each do |class_setting| %>
<tr>
<td><%= class_setting.class_number_range.join(' ~ ') %></td>
<td><%= class_setting.enrollment_available %></td>
<td>
<a href="<%=admin_olympiamanagements_class_setting_path+"?id=#{class_setting.id}"%>"><img src="/assets/edit.gif" alt="<%= t('olympiamanagement.edit') %>" align="top" width="24"><%= t('olympiamanagement.edit') %></a>
<a href="<%=admin_olympiamanagements_update_school_data_path+"?id=#{class_setting.id}&type=delete_class_setting"%>"><img src="/assets/trash.gif" alt="<%= t('olympiamanagement.delete') %>" align="top" width="24"><%= t('olympiamanagement.delete') %></a>
</td>
</tr>
<%end%>
</tbody>
</table>
<%=create_pagination(params[:page].to_i).html_safe%>