This repository has been archived by the owner on Jul 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
2,719 additions
and
1,096 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
//= require bootstrap | ||
html, body | ||
background-color: #eee | ||
|
||
body | ||
padding-top: 40px | ||
|
||
.container > footer p | ||
text-align: center | ||
|
||
.container | ||
width: 820px | ||
|
||
|
||
.content | ||
background-color: white | ||
padding: 20px | ||
margin: 0 -20px | ||
-webkit-border-radius: 0 0 6px 6px | ||
-moz-border-radius: 0 0 6px 6px | ||
border-radius: 0 0 6px 6px | ||
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15) | ||
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.15) | ||
box-shadow: 0 1px 2px rgba(0,0,0,.15) | ||
|
||
.page-header | ||
background: #f5f5f5 | ||
padding: 20px 20px 10px | ||
margin: -20px -20px 20px | ||
|
||
.content | ||
.span10, .span4 | ||
min-height: 500px | ||
|
||
.span4 | ||
margin-left: 10px | ||
padding-left: 9px | ||
border-left: 1px solid #eee | ||
|
||
.alert-message | ||
margin-left: 20px | ||
|
||
.row-actions | ||
text-align: right |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
= simple_form_for resource do |f| | ||
- attributes.each do |attr| | ||
= f.input attr | ||
= f.submit | ||
= simple_form_for resource, :wrapper => :inline do |f| | ||
%fieldset | ||
- attributes.each do |attr| | ||
= f.input attr | ||
.actions | ||
= f.submit :class => "btn primary" | ||
%button.btn{:type => "reset"} Cancel |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
= simple_form_for [ :backend, resource ] do |f| | ||
- attributes.each do |attr| | ||
= f.input attr | ||
= f.submit | ||
= simple_form_for [ :backend, resource ], :wrapper => :inline do |f| | ||
%fieldset | ||
%legend Fields | ||
- attributes.each do |attr| | ||
= f.input attr | ||
= f.submit :class => "primary" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
.block | ||
.content | ||
%h2= resource_class.model_name.human(count: 2) | ||
.inner | ||
%table.table | ||
%thead | ||
%tr | ||
- attributes.each do |attr| | ||
%th= resource_class.human_attribute_name(attr) | ||
%th | ||
%tbody | ||
- collection.each do |resource| | ||
%tr[resource]{odd_or_even} | ||
- attributes.each do |attr| | ||
%td= resource.public_send(attr).to_s.truncate(20) | ||
%td | ||
= link_to 'show', resource_path(resource) | ||
| | ||
= link_to 'edit', edit_resource_path(resource) | ||
| | ||
= link_to 'destroy', resource_path(resource), method: :delete, confirm: "Are you sure?" | ||
- content_for :header do | ||
%h1= resource_class.model_name.human(count: 2) | ||
|
||
.actions-bar.wat-cf | ||
= paginate collection | ||
%ul.tabs | ||
%li.active= link_to "Index", "#" | ||
%li= link_to "New", new_resource_path | ||
|
||
= content_for :sidebar do | ||
.block | ||
%h3 Navigation | ||
%ul.navigation | ||
%li= link_to "New #{resource_class.model_name.human}", new_resource_path | ||
%table.zebra-striped | ||
%thead | ||
%tr | ||
- attributes.each do |attr| | ||
%th= resource_class.human_attribute_name(attr) | ||
%th | ||
%tbody | ||
- collection.each do |resource| | ||
%tr[resource]{odd_or_even} | ||
- attributes.each do |attr| | ||
%td= resource.public_send(attr).to_s.truncate(20) | ||
%td.row-actions | ||
= link_to 'show', resource_path(resource) | ||
| | ||
= link_to 'edit', edit_resource_path(resource) | ||
| | ||
= link_to 'destroy', resource_path(resource), method: :delete, confirm: "Are you sure?" | ||
|
||
= paginate collection |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
.block | ||
.content | ||
%h2 Edit #{resource_class.model_name.human} | ||
- content_for :header do | ||
%h1 Edit #{resource_class.model_name.human} | ||
|
||
.inner | ||
= render "form", attributes: attributes | ||
%ul.tabs | ||
%li= link_to "Index", collection_path | ||
%li= link_to "New", new_resource_path | ||
%li= link_to "Show", resource_path | ||
%li.active= link_to "Edit", "#" | ||
%li= link_to "Destroy", resource_path, method: :delete, confirm: "Are you sure?" | ||
|
||
= content_for :sidebar do | ||
.block | ||
%h3 Navigation | ||
%ul.navigation | ||
%li= link_to "Back", resource_path | ||
= render "form", attributes: attributes |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
.block | ||
.content | ||
%h2 New #{resource_class.model_name.human} | ||
- content_for :header do | ||
%h1 New #{resource_class.model_name.human} | ||
|
||
.inner | ||
- attributes = resource_class.attribute_names - %w(id created_at updated_at) | ||
= render "form", attributes: attributes | ||
%ul.tabs | ||
%li= link_to "Index", collection_path | ||
%li.active= link_to "New", "#" | ||
|
||
= content_for :sidebar do | ||
.block | ||
%h3 Navigation | ||
%ul.navigation | ||
%li= link_to "Back", collection_path | ||
- attributes = resource_class.attribute_names - %w(id created_at updated_at) | ||
= render "form", attributes: attributes |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
.block | ||
.content | ||
%h2= resource_class.model_name.human | ||
.inner | ||
= render "show" | ||
- content_for :header do | ||
%h1= resource_class.model_name.human | ||
|
||
= content_for :sidebar do | ||
.block | ||
%h3 Navigation | ||
%ul.navigation | ||
%li= link_to "Back", collection_path | ||
%li= link_to "Edit", edit_resource_path | ||
%li= link_to "Destroy", resource_path, method: :delete, confirm: "Are you sure?" | ||
= yield :actions | ||
%ul.tabs | ||
%li= link_to "Index", collection_path | ||
%li= link_to "New", new_resource_path | ||
%li.active= link_to 'Show', '#' | ||
%li= link_to "Edit", edit_resource_path | ||
%li= link_to "Destroy", resource_path, method: :delete, confirm: "Are you sure?" | ||
|
||
= render "show" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
= simple_form_for [ :backend, resource ] do |f| | ||
= f.input :name | ||
= f.association :product | ||
= f.input :active | ||
= f.submit | ||
= simple_form_for [ :backend, resource ], :wrapper => :inline do |f| | ||
%fieldset | ||
%legend Please enter some widget info | ||
= f.input :name | ||
= f.association :product | ||
= f.input :active | ||
.actions | ||
= f.submit :class => "btn primary" | ||
%button.btn{:type => "reset"} Cancel |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.