Skip to content

Commit

Permalink
Minor table cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Hurt committed May 26, 2009
1 parent bfefa38 commit fc93f69
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
8 changes: 6 additions & 2 deletions app/views/settings/assignment_categories/index.html.erb
Expand Up @@ -4,13 +4,17 @@
<%= error_messages_for "assignment_categories" %>

<table>
<table class='master'>
<thead>
<th>Name</th>
<th width='1'></th>
</thead>
<tbody>
<tr><td colspan='0'><%= link_to "Add Type", new_assignment_category_path(), :class => 'btn positive' %></td></tr>
<tr class="<%= cycle('odd', 'even') %>">
<td colspan='10'>
<%= link_to "Add Type", new_assignment_category_path(), :class => 'btn positive' %>
</td>
</tr>
<% for type in @types %>
<tr class="<%= cycle('odd', 'even')%>" onclick="location.href='<%= url_for(type) + '/edit' %>'">
<td><%= link_to type.name, edit_assignment_category_path(type) %></td>
Expand Down
8 changes: 6 additions & 2 deletions app/views/settings/grading_scales/index.html.erb
Expand Up @@ -4,13 +4,17 @@
<%= error_messages_for :scale, :header_message => "Please Try Again!", :message => "We had some problems saving your changes:" %>

<table>
<table class='master'>
<thead>
<th>Name</th>
<th width='1'></th>
</thead>
<tbody>
<tr><td colspan='0'><%= link_to "Add Scale", new_grading_scale_path, :class => 'btn positive' %></td></tr>
<tr class="<%= cycle('odd', 'even')%>">
<td colspan='10'>
<%= link_to "Add Scale", new_grading_scale_path, :class => 'btn positive' %>
</td>
</tr>
<% for scale in @scales %>
<tr class="<%= cycle('odd', 'even')%>" onclick="location.href='<%#= url_for(scale) + '/edit' %>'">
<td><%= link_to scale.name, edit_grading_scale_path(scale) %></td>
Expand Down
8 changes: 6 additions & 2 deletions app/views/settings/grading_skills/index.html.erb
Expand Up @@ -4,14 +4,18 @@
<%= error_messages_for :skill, :header_message => "Please Try Again!", :message => "We had some problems saving your changes:" %>

<table>
<table class='master'>
<thead>
<th width='1'>Symbol</th>
<th>Description</th>
<th width='1'></th>
</thead>
<tbody>
<tr><td colspan='0'><%= link_to "Add skill", new_grading_skill_path, :class => 'btn positive' %></td></tr>
<tr class="<%= cycle('odd', 'even')%>">
<td colspan='10'>
<%= link_to "Add skill", new_grading_skill_path, :class => 'btn positive' %>
</td>
</tr>
<% for skill in @skills %>
<tr class="<%= cycle('odd', 'even')%>" onclick="location.href='<%= url_for(skill) + '/edit' %>'">
<td><%= h skill.symbol %></td>
Expand Down
8 changes: 6 additions & 2 deletions app/views/settings/sites/index.html.erb
Expand Up @@ -4,13 +4,17 @@
<%= error_messages_for "site" %>

<table>
<table class='master'>
<thead>
<th>Name</th>
<th width='1'></th>
</thead>
<tbody>
<tr><td colspan='0'><%= link_to "Add Campus", new_site_path(), :class => 'btn positive' %></td></tr>
<tr class="<%= cycle('odd', 'even')%>">
<td colspan='10'>
<%= link_to "Add Campus", new_site_path(), :class => 'btn positive' %>
</td>
</tr>
<% for site in @sites %>
<tr class="<%= cycle('odd', 'even')%>" onclick="location.href='<%= url_for(site) + '/edit' %>'">
<td><%= link_to site.name, edit_site_path(site) %></td>
Expand Down
8 changes: 6 additions & 2 deletions app/views/settings/terms/index.html.erb
Expand Up @@ -4,7 +4,7 @@
<%= error_messages_for "term" %>

<table>
<table class='master'>
<thead>
<th>Name</th>
<th>School Year</th>
Expand All @@ -14,7 +14,11 @@
<th width='1'></th>
</thead>
<tbody>
<tr><td colspan='0'><%= link_to "Add Period", new_term_path(), :class => 'btn positive' %></td></tr>
<tr class="<%= cycle('odd', 'even')%>">
<td colspan='0'>
<%= link_to "Add Period", new_term_path(), :class => 'btn positive' %>
</td>
</tr>
<% for term in @terms %>
<tr class="<%= cycle('odd', 'even')%>" onclick="location.href='<%= url_for(term) + '/edit' %>'">
<td><%= link_to term.name, edit_term_path(term) %></td>
Expand Down

0 comments on commit fc93f69

Please sign in to comment.