YaleSTC/shifts

View on GitHub
app/views/users/_import_table.html.erb

Summary

Maintainability
Test Coverage
<table id="form_table">
  <tr>
    <th>Username</th>
    <th>First Name</th>
    <th>Nick Name</th>
    <th>Last Name</th>
    <th>Email</th>
    <th>Employee ID</th>
    <th>Role</th>
    <% unless @appconfig.login_options.length==1 %>
      <th colspan=<%=@appconfig.login_options.length %>>Authentication Type</th>
    <% end %>
    <th>Import?</th>
  </tr>
  <%= form_tag url_for(:action=>'save_import') do %>
    <%= render partial: "import_table_form" %>
    <tr class="button_row">
      <td colspan=2><%= submit_tag "Cancel" %></td>
      <td colspan=<%= @appconfig.login_options.length==1 ? 4 : @appconfig.login_options.length+4 %>></td>
      <td colspan=2 align="right"><%= submit_tag "Save!" %></td>
    </tr>
  <% end %>
</table>
<%#= button_to "Cancel", url_for(:action=>'import'), {:id=>"cancel"} %>