Skip to content

Instantly share code, notes, and snippets.

@supriya
Created April 16, 2010 17:11
Show Gist options
  • Save supriya/368683 to your computer and use it in GitHub Desktop.
Save supriya/368683 to your computer and use it in GitHub Desktop.
.admin-top
= title "Stores for #{@agent}"
- form_tag "", :method => :get do
%p
= submit_tag "Generate CSV", :name => "commit"
.clear
%table.subdued.agent-districts
%thead
%tr
%th Store
%th Silver
%th Gold
%th Black
%tbody
- @stores.each do |store|
%tr
%td= store.store_number + " " + store.name
%td= text_field_tag "stores[][silver]"
%td= text_field_tag "stores[][gold]"
%td= text_field_tag "stores[][black]"
= hidden_field_tag "stores[store_id]", store.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment