Created
January 26, 2012 09:46
-
-
Save pke/1681999 to your computer and use it in GitHub Desktop.
slim example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-@title = 'License Slots' | |
.block | |
.secondary-navigation | |
ul.wat-cf | |
li.first==link_to pat(:list), url(:licenses, :index) | |
li==link_to pat(:new), url(:licenses, :new) | |
li==link_to pat(:edit), url(:licenses, :edit, :id => @license.id) | |
li.active==link_to pat(:slots), url(:licenses, :slots, :id => @license.id) | |
.content | |
.secondary-navigation | |
ul.wat-cf | |
- @categories.each do |c| | |
li==link_to c.name, url(:licenses, :slots, :id => @license.id, :category => c.id), :class => c.id == params[:category] ? 'active' : '' | |
.inner | |
==form_for :license, url(:licenses, :slots, :id => @license.id), :method => :put, :class => :form do |f| | |
- if @slots[:none] | |
table | |
tr | |
th=pat(:name) | |
th=pat(:user) | |
th=pat(:expires) | |
[email protected](:none).each do |s| | |
==partial "licenses/slot", :locals => { :f => f, :s => s } | |
- @slots.each_key do |k| | |
fieldset | |
legend=k | |
table | |
tr | |
th=pat(:name) | |
th=pat(:user) | |
th=pat(:expires) | |
-@slots[k].each do |s| | |
==partial "licenses/slot", :locals => { :f => f, :s => s } | |
==f.submit pat(:save) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment