aslon_scaffold 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/Gemfile +4 -0
- data/MIT-LICENSE +20 -0
- data/README +26 -0
- data/Rakefile +2 -0
- data/aslon_scaffold.gemspec +33 -0
- data/config/locales/aslon_scaffold.fr.yml +14 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/app/controllers/articles_controller.rb +7 -0
- data/lib/app/helpers/application_helper.rb +410 -0
- data/lib/app/views/aslon_scaffolds/_search.haml +1 -0
- data/lib/app/views/aslon_scaffolds/index.haml +4 -0
- data/lib/app/views/aslon_scaffolds/new_edit.haml +8 -0
- data/lib/app/views/aslon_scaffolds/show.haml +9 -0
- data/lib/aslon_scaffold.rb +34 -0
- data/lib/aslon_scaffold/aslon_scaffold.rb +237 -0
- data/lib/aslon_scaffold/version.rb +4 -0
- data/lib/generators/haml.rb +11 -0
- data/lib/generators/haml/scaffold/scaffold_generator.rb +25 -0
- data/lib/generators/haml/scaffold/templates/_new_edit.haml.erb +6 -0
- data/lib/generators/haml/scaffold/templates/_search.haml.erb +6 -0
- data/lib/generators/haml/scaffold/templates/edit.haml.erb +5 -0
- data/lib/generators/haml/scaffold/templates/index.haml.erb +10 -0
- data/lib/generators/haml/scaffold/templates/layout.haml.erb +17 -0
- data/lib/generators/haml/scaffold/templates/new.haml.erb +6 -0
- data/lib/generators/haml/scaffold/templates/new_edit.haml.erb +13 -0
- data/lib/generators/haml/scaffold/templates/show.haml.erb +14 -0
- data/lib/generators/nifty.rb +28 -0
- data/lib/generators/nifty/aslon/USAGE +51 -0
- data/lib/generators/nifty/aslon/aslon_generator.rb +320 -0
- data/lib/generators/nifty/aslon/templates/actions/create.rb +8 -0
- data/lib/generators/nifty/aslon/templates/actions/destroy.rb +5 -0
- data/lib/generators/nifty/aslon/templates/actions/edit.rb +3 -0
- data/lib/generators/nifty/aslon/templates/actions/index.rb +3 -0
- data/lib/generators/nifty/aslon/templates/actions/new.rb +3 -0
- data/lib/generators/nifty/aslon/templates/actions/show.rb +3 -0
- data/lib/generators/nifty/aslon/templates/actions/update.rb +8 -0
- data/lib/generators/nifty/aslon/templates/controller.rb +10 -0
- data/lib/generators/nifty/aslon/templates/fixtures.yml +9 -0
- data/lib/generators/nifty/aslon/templates/helper.rb +2 -0
- data/lib/generators/nifty/aslon/templates/migration.rb +16 -0
- data/lib/generators/nifty/aslon/templates/model.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/actions/create.rb +11 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/actions/destroy.rb +6 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/actions/edit.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/actions/index.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/actions/new.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/actions/show.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/actions/update.rb +11 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/controller.rb +8 -0
- data/lib/generators/nifty/aslon/templates/tests/rspec/model.rb +7 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/actions/create.rb +13 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/actions/destroy.rb +8 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/actions/edit.rb +6 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/actions/index.rb +6 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/actions/new.rb +6 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/actions/show.rb +6 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/actions/update.rb +13 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/controller.rb +5 -0
- data/lib/generators/nifty/aslon/templates/tests/shoulda/model.rb +7 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/actions/create.rb +11 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/actions/destroy.rb +6 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/actions/edit.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/actions/index.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/actions/new.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/actions/show.rb +4 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/actions/update.rb +11 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/controller.rb +5 -0
- data/lib/generators/nifty/aslon/templates/tests/testunit/model.rb +7 -0
- data/lib/generators/nifty/aslon/templates/views/haml/_new_edit.html.haml +6 -0
- data/lib/generators/nifty/aslon/templates/views/haml/_search.html.haml +6 -0
- data/lib/generators/nifty/aslon/templates/views/haml/index.html.haml +10 -0
- data/lib/generators/nifty/aslon/templates/views/haml/layout.haml.erb +17 -0
- data/lib/generators/nifty/aslon/templates/views/haml/new_edit.html.haml +13 -0
- data/lib/generators/nifty/aslon/templates/views/haml/show.html.haml +14 -0
- data/lib/generators/nifty/layout/USAGE +25 -0
- data/lib/generators/nifty/layout/layout_generator.rb +42 -0
- data/lib/generators/nifty/layout/templates/_default.html.haml +9 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/add.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/delete.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/edit.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/folder.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/grid-blue-hd.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/grid-split.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/grid3-hrow.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/indicator.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/magnifier.png +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/sort_asc.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/sort_desc.gif +0 -0
- data/lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/base.css.sass +263 -0
- data/lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/formtastic.css.sass +176 -0
- data/lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/formtastic_changes.css.sass +31 -0
- data/lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/table_coffee_with_milk.css.sass +94 -0
- data/lib/generators/nifty/layout/templates/error_messages_helper.rb +23 -0
- data/lib/generators/nifty/layout/templates/layout.html.haml +13 -0
- data/lib/generators/nifty/layout/templates/layout_helper.rb +22 -0
- data/lib/generators/nifty/layout/templates/locales/aslon_scaffold.fr.yml +14 -0
- data/lib/generators/nifty/scaffold/USAGE +51 -0
- data/lib/generators/nifty/scaffold/scaffold_generator.rb +319 -0
- data/lib/generators/nifty/scaffold/templates/actions/create.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/actions/destroy.rb +5 -0
- data/lib/generators/nifty/scaffold/templates/actions/edit.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/index.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/new.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/show.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/update.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/controller.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/fixtures.yml +9 -0
- data/lib/generators/nifty/scaffold/templates/helper.rb +2 -0
- data/lib/generators/nifty/scaffold/templates/migration.rb +16 -0
- data/lib/generators/nifty/scaffold/templates/model.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/create.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/index.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/new.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/show.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/update.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/controller.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/model.rb +7 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/controller.rb +5 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/model.rb +7 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/create.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/index.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/new.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/show.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/update.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/controller.rb +5 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/model.rb +7 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/_form.html.erb +10 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/edit.html.erb +14 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/index.html.erb +29 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/new.html.erb +7 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/show.html.erb +20 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/_new_edit.html.haml +6 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/_search.html.haml +6 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/index.html.haml +10 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/layout.haml.erb +17 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/new_edit.haml.erb +13 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/show.haml.erb +14 -0
- data/lib/generators/templates/rails/scaffold_controller/controller.rb +11 -0
- data/lib/tasks/aslon_scaffold_tasks.rake +91 -0
- data/lib/tasks/task.rake +113 -0
- data/test/articles_controller_test.rb +24 -0
- data/test/database.yml +8 -0
- data/test/schema.rb +6 -0
- data/test/test_helper.rb +39 -0
- data/test/undeletable_plugin.sqlite.db +0 -0
- data/test/undeletable_plugin2.sqlite3.db +0 -0
- data/uninstall.rb +1 -0
- data/vendor/assets/images/aslon_scaffold/add.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/delete.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/edit.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/folder.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/grid-blue-hd.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/grid-split.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/grid3-hrow.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/indicator.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/magnifier.png +0 -0
- data/vendor/assets/images/aslon_scaffold/sort_asc.gif +0 -0
- data/vendor/assets/images/aslon_scaffold/sort_desc.gif +0 -0
- data/vendor/assets/stylesheets/aslon_scaffold_base.css.sass +116 -0
- data/vendor/assets/stylesheets/aslon_scaffold_base.css.sass.old +263 -0
- data/vendor/assets/stylesheets/aslon_scaffold_table.css.sass +94 -0
- data/vendor/assets/stylesheets/formtastic_changes.css.sass +31 -0
- metadata +185 -4
@@ -0,0 +1,263 @@
|
|
1
|
+
body
|
2
|
+
margin: 0px
|
3
|
+
padding: 0px
|
4
|
+
font:
|
5
|
+
family: verdana, arial, helvetica, sans-serif
|
6
|
+
size: 80%
|
7
|
+
color: #333
|
8
|
+
background-color: white
|
9
|
+
|
10
|
+
h1
|
11
|
+
margin: 0px 0px 1px 0px
|
12
|
+
padding: 0px
|
13
|
+
line-height: 28px
|
14
|
+
font:
|
15
|
+
weight: 900
|
16
|
+
size: 14px
|
17
|
+
color: red
|
18
|
+
border-bottom: solid 1px #C5DBF7
|
19
|
+
h2
|
20
|
+
margin: 0px 0px 1px 0px
|
21
|
+
padding: 0px
|
22
|
+
font:
|
23
|
+
weight: 900
|
24
|
+
size: 14px
|
25
|
+
line-height: 28px
|
26
|
+
color: black
|
27
|
+
border-bottom: solid 1px #C5DBF7
|
28
|
+
|
29
|
+
#menu
|
30
|
+
float: left
|
31
|
+
margin: 2px
|
32
|
+
width: 150px
|
33
|
+
height: 400px
|
34
|
+
|
35
|
+
|
36
|
+
#titre1
|
37
|
+
margin: 0px 0px 10px 0px
|
38
|
+
padding: 0px
|
39
|
+
font-size: 14px
|
40
|
+
line-height: 28px
|
41
|
+
font-weight: 900
|
42
|
+
color: black
|
43
|
+
border-bottom: solid 1px #C5DBF7
|
44
|
+
background-color: #eee
|
45
|
+
text-indent: 30px
|
46
|
+
|
47
|
+
|
48
|
+
#titre2
|
49
|
+
margin: 0px 0px 10px 0px
|
50
|
+
padding: 0px
|
51
|
+
font-size: 14px
|
52
|
+
line-height: 28px
|
53
|
+
font-weight: 900
|
54
|
+
color: black
|
55
|
+
border-bottom: solid 1px #C5DBF7
|
56
|
+
background-color: #eee
|
57
|
+
text-indent: 30px
|
58
|
+
margin: 10px 0px 10px 0px
|
59
|
+
|
60
|
+
|
61
|
+
p
|
62
|
+
font: 11px/20px verdana, arial, helvetica, sans-serif
|
63
|
+
margin: 0px 0px 16px 0px
|
64
|
+
padding: 0px
|
65
|
+
|
66
|
+
|
67
|
+
a
|
68
|
+
color: #09c
|
69
|
+
font-size: 11px
|
70
|
+
text-decoration: none
|
71
|
+
font-weight: 600
|
72
|
+
font-family: verdana, arial, helvetica, sans-serif
|
73
|
+
|
74
|
+
&:link
|
75
|
+
color: #09c
|
76
|
+
|
77
|
+
&:visited
|
78
|
+
color: #07a
|
79
|
+
|
80
|
+
&:hover
|
81
|
+
background-color: #eee
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
.flash
|
86
|
+
ul
|
87
|
+
padding-left: 0pt
|
88
|
+
margin-bottom: 0pt
|
89
|
+
margin-top: 0pt
|
90
|
+
list-style-type: none
|
91
|
+
margin-left: 0pt
|
92
|
+
|
93
|
+
li
|
94
|
+
margin-bottom: 0em
|
95
|
+
padding-left: 1em
|
96
|
+
vertical-align: top
|
97
|
+
text-align: center
|
98
|
+
font-size: 1em
|
99
|
+
|
100
|
+
.container
|
101
|
+
padding-top: 0em
|
102
|
+
padding-left: 2em
|
103
|
+
position: absolute
|
104
|
+
top: 1px
|
105
|
+
left: 200px
|
106
|
+
width: 500px
|
107
|
+
height: 25px
|
108
|
+
|
109
|
+
.containerild
|
110
|
+
padding: 1em
|
111
|
+
padding-left: 5em
|
112
|
+
margin-bottom: 1.5em
|
113
|
+
|
114
|
+
.error
|
115
|
+
color: red
|
116
|
+
|
117
|
+
.errorold
|
118
|
+
background: #fcf6d0 url(../images/icons/flashes/error.gif) 1.5em 1.5em no-repeat
|
119
|
+
border-top: 1px solid #ecd757
|
120
|
+
border-bottom: 1px solid #ecd757
|
121
|
+
border-left: 1px solid #ecd757
|
122
|
+
border-right: 1px solid #ecd757
|
123
|
+
|
124
|
+
.back
|
125
|
+
background: #e9f3dc url(../images/icons/flashes/back.gif) 1.5em 1em no-repeat
|
126
|
+
border-top: 1px solid #bfcbb0
|
127
|
+
border-bottom: 1px solid #bfcbb0
|
128
|
+
|
129
|
+
.confirm
|
130
|
+
background: #e9f3dc url(../images/icons/flashes/confirm.gif) 1.5em 1em no-repeat
|
131
|
+
border-top: 1px solid #bfcbb0
|
132
|
+
border-bottom: 1px solid #bfcbb0
|
133
|
+
|
134
|
+
.info, .notice
|
135
|
+
color: green
|
136
|
+
|
137
|
+
.warn
|
138
|
+
color: orange
|
139
|
+
|
140
|
+
|
141
|
+
.fieldWithErrors
|
142
|
+
padding: 3px
|
143
|
+
background-color: red
|
144
|
+
display: table
|
145
|
+
|
146
|
+
|
147
|
+
#errorExplanation
|
148
|
+
width: 500px
|
149
|
+
border: 1px solid red
|
150
|
+
padding: 7px
|
151
|
+
padding-bottom: 12px
|
152
|
+
margin-bottom: 20px
|
153
|
+
background-color: #f0f0f0
|
154
|
+
|
155
|
+
h2
|
156
|
+
text-align: left
|
157
|
+
font-weight: bold
|
158
|
+
padding: 5px 5px 5px 60px
|
159
|
+
font-size: 12px
|
160
|
+
margin: -7px
|
161
|
+
background: url(../images/icons/flashes/error.gif) 1.5em 0.2em no-repeat
|
162
|
+
color: red
|
163
|
+
|
164
|
+
p
|
165
|
+
color: #333
|
166
|
+
margin-bottom: 0
|
167
|
+
padding: 5px
|
168
|
+
|
169
|
+
ul li
|
170
|
+
font-size: 12px
|
171
|
+
list-style: square
|
172
|
+
|
173
|
+
|
174
|
+
.pagination
|
175
|
+
font-size: 10px
|
176
|
+
padding: 3px
|
177
|
+
margin: 3px
|
178
|
+
|
179
|
+
a
|
180
|
+
padding: 2px 5px 2px 5px
|
181
|
+
margin: 2px
|
182
|
+
border: 1px solid #aaaadd
|
183
|
+
text-decoration: none
|
184
|
+
color: gray
|
185
|
+
|
186
|
+
&:hover, &:active
|
187
|
+
border: 1px solid gray
|
188
|
+
color: #000
|
189
|
+
|
190
|
+
span
|
191
|
+
&.current
|
192
|
+
padding: 2px 5px 2px 5px
|
193
|
+
margin: 2px
|
194
|
+
border: 1px solid lightgray
|
195
|
+
font-weight: bold
|
196
|
+
background-color: gray
|
197
|
+
color: white
|
198
|
+
|
199
|
+
&.disabled
|
200
|
+
padding: 2px 5px 2px 5px
|
201
|
+
margin: 2px
|
202
|
+
border: 1px solid #eee
|
203
|
+
color: #ddd
|
204
|
+
|
205
|
+
|
206
|
+
form#demoForm
|
207
|
+
width: 40ex
|
208
|
+
padding: 1em
|
209
|
+
margin: 0em auto
|
210
|
+
border: 1ex solid silver
|
211
|
+
background: #eee
|
212
|
+
font-family: sans-serif
|
213
|
+
|
214
|
+
p
|
215
|
+
position: relative
|
216
|
+
margin: 0 0 0.5em
|
217
|
+
|
218
|
+
&.submit
|
219
|
+
margin: 0.5em
|
220
|
+
text-align: center
|
221
|
+
color: red
|
222
|
+
|
223
|
+
label
|
224
|
+
font-weight: bold
|
225
|
+
display: block
|
226
|
+
width: 100px
|
227
|
+
float: left
|
228
|
+
color: red
|
229
|
+
font-size: 12pt
|
230
|
+
vertical-align: text-bottom
|
231
|
+
|
232
|
+
|
233
|
+
input
|
234
|
+
&#login, &#password
|
235
|
+
|
236
|
+
label
|
237
|
+
font-weight: bold
|
238
|
+
|
239
|
+
|
240
|
+
input
|
241
|
+
&:focus
|
242
|
+
border: 1px solid gray
|
243
|
+
background: #ffd
|
244
|
+
|
245
|
+
&.to_dest
|
246
|
+
position: absolute
|
247
|
+
left: 10ex
|
248
|
+
right: 5ex
|
249
|
+
|
250
|
+
|
251
|
+
label.required
|
252
|
+
font-weight: bold
|
253
|
+
|
254
|
+
&:after
|
255
|
+
content: '*'
|
256
|
+
|
257
|
+
|
258
|
+
span.accessKey
|
259
|
+
text-decoration: underline
|
260
|
+
|
261
|
+
@import formtastic
|
262
|
+
@import formtastic_changes
|
263
|
+
@import aslon_scaffold_table
|
@@ -0,0 +1,94 @@
|
|
1
|
+
table#titreliste
|
2
|
+
padding: 4px 4px
|
3
|
+
font-size: 1em
|
4
|
+
background: #EBE5D9
|
5
|
+
text-align: left
|
6
|
+
cursor: default
|
7
|
+
border-top: 1px solid grey
|
8
|
+
border-bottom: 1px solid grey
|
9
|
+
width: 100%
|
10
|
+
|
11
|
+
|
12
|
+
table#liste
|
13
|
+
font: normal 0.7em/1.5em "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif
|
14
|
+
border-collapse: separate
|
15
|
+
border-spacing: 0
|
16
|
+
margin: 0 0 1em
|
17
|
+
color: #000
|
18
|
+
width: 100%
|
19
|
+
a
|
20
|
+
color: #523A0B
|
21
|
+
text-decoration: none
|
22
|
+
// border-bottom: 1px dotted
|
23
|
+
|
24
|
+
&:visited
|
25
|
+
color: #444
|
26
|
+
font-weight: normal
|
27
|
+
|
28
|
+
// &:after
|
29
|
+
// content: "\00A0\221A"
|
30
|
+
|
31
|
+
// &:hover
|
32
|
+
// border-bottom-style: solid
|
33
|
+
|
34
|
+
|
35
|
+
thead
|
36
|
+
th, td
|
37
|
+
font:
|
38
|
+
size: 1.1em
|
39
|
+
border: 1px solid #523A0B
|
40
|
+
border-width: 1px 0
|
41
|
+
background: #EBE5D9
|
42
|
+
|
43
|
+
|
44
|
+
tfoot
|
45
|
+
th, td
|
46
|
+
border: 1px solid #523A0B
|
47
|
+
border-width: 1px 0
|
48
|
+
background: #EBE5D9
|
49
|
+
|
50
|
+
th
|
51
|
+
font-weight: bold
|
52
|
+
line-height: normal
|
53
|
+
padding: 0.25em 0.5em
|
54
|
+
text-align: left
|
55
|
+
|
56
|
+
|
57
|
+
tbody th, td
|
58
|
+
padding: 0.25em 0.5em
|
59
|
+
text-align: left
|
60
|
+
vertical-align: top
|
61
|
+
|
62
|
+
|
63
|
+
tbody
|
64
|
+
th
|
65
|
+
font-weight: normal
|
66
|
+
white-space: nowrap
|
67
|
+
|
68
|
+
a
|
69
|
+
&:link, &:visited
|
70
|
+
font-weight: bold
|
71
|
+
|
72
|
+
td, th
|
73
|
+
border: 1px solid #fff
|
74
|
+
border-width: 1px 0
|
75
|
+
|
76
|
+
tr
|
77
|
+
&.odd
|
78
|
+
th, td
|
79
|
+
border-color: #EBE5D9
|
80
|
+
background: #F7F4EE
|
81
|
+
|
82
|
+
&:hover
|
83
|
+
td, th
|
84
|
+
background: #ffffee
|
85
|
+
border-color: #523A0B
|
86
|
+
|
87
|
+
|
88
|
+
caption
|
89
|
+
font-family: Georgia,Times,serif
|
90
|
+
font-weight: normal
|
91
|
+
font-size: 1.4em
|
92
|
+
text-align: left
|
93
|
+
margin: 0
|
94
|
+
padding: 0.5em 0.25em
|
@@ -0,0 +1,31 @@
|
|
1
|
+
form.formtastic
|
2
|
+
ul, ol, li, fieldset, legend, input, textarea, select, p
|
3
|
+
margin: 0.5px
|
4
|
+
padding: 1px
|
5
|
+
legend
|
6
|
+
color: darkblue
|
7
|
+
padding: 1pt
|
8
|
+
width: 95%
|
9
|
+
float: left
|
10
|
+
margin-left: 10px
|
11
|
+
|
12
|
+
fieldset.inputs
|
13
|
+
border: 1px solid
|
14
|
+
border-style: dotted
|
15
|
+
background-color: white
|
16
|
+
|
17
|
+
form.formtastic fieldset ol li
|
18
|
+
margin-bottom: 0.3em
|
19
|
+
|
20
|
+
form.formtastic fieldset ol li
|
21
|
+
&.required, &.optional, &.error
|
22
|
+
label
|
23
|
+
width: 15%
|
24
|
+
padding-top: .2em
|
25
|
+
&.string input, &.password input, &.numeric input, &.text textarea
|
26
|
+
width: 50%
|
27
|
+
&.numeric input
|
28
|
+
width: 15%
|
29
|
+
|
30
|
+
|
31
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aslon_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: will_paginate
|
@@ -97,7 +97,182 @@ email:
|
|
97
97
|
executables: []
|
98
98
|
extensions: []
|
99
99
|
extra_rdoc_files: []
|
100
|
-
files:
|
100
|
+
files:
|
101
|
+
- .gitignore
|
102
|
+
- Gemfile
|
103
|
+
- MIT-LICENSE
|
104
|
+
- README
|
105
|
+
- Rakefile
|
106
|
+
- aslon_scaffold.gemspec
|
107
|
+
- config/locales/aslon_scaffold.fr.yml
|
108
|
+
- init.rb
|
109
|
+
- install.rb
|
110
|
+
- lib/app/controllers/articles_controller.rb
|
111
|
+
- lib/app/helpers/application_helper.rb
|
112
|
+
- lib/app/views/aslon_scaffolds/_search.haml
|
113
|
+
- lib/app/views/aslon_scaffolds/index.haml
|
114
|
+
- lib/app/views/aslon_scaffolds/new_edit.haml
|
115
|
+
- lib/app/views/aslon_scaffolds/show.haml
|
116
|
+
- lib/aslon_scaffold.rb
|
117
|
+
- lib/aslon_scaffold/aslon_scaffold.rb
|
118
|
+
- lib/aslon_scaffold/version.rb
|
119
|
+
- lib/generators/haml.rb
|
120
|
+
- lib/generators/haml/scaffold/scaffold_generator.rb
|
121
|
+
- lib/generators/haml/scaffold/templates/_new_edit.haml.erb
|
122
|
+
- lib/generators/haml/scaffold/templates/_search.haml.erb
|
123
|
+
- lib/generators/haml/scaffold/templates/edit.haml.erb
|
124
|
+
- lib/generators/haml/scaffold/templates/index.haml.erb
|
125
|
+
- lib/generators/haml/scaffold/templates/layout.haml.erb
|
126
|
+
- lib/generators/haml/scaffold/templates/new.haml.erb
|
127
|
+
- lib/generators/haml/scaffold/templates/new_edit.haml.erb
|
128
|
+
- lib/generators/haml/scaffold/templates/show.haml.erb
|
129
|
+
- lib/generators/nifty.rb
|
130
|
+
- lib/generators/nifty/aslon/USAGE
|
131
|
+
- lib/generators/nifty/aslon/aslon_generator.rb
|
132
|
+
- lib/generators/nifty/aslon/templates/actions/create.rb
|
133
|
+
- lib/generators/nifty/aslon/templates/actions/destroy.rb
|
134
|
+
- lib/generators/nifty/aslon/templates/actions/edit.rb
|
135
|
+
- lib/generators/nifty/aslon/templates/actions/index.rb
|
136
|
+
- lib/generators/nifty/aslon/templates/actions/new.rb
|
137
|
+
- lib/generators/nifty/aslon/templates/actions/show.rb
|
138
|
+
- lib/generators/nifty/aslon/templates/actions/update.rb
|
139
|
+
- lib/generators/nifty/aslon/templates/controller.rb
|
140
|
+
- lib/generators/nifty/aslon/templates/fixtures.yml
|
141
|
+
- lib/generators/nifty/aslon/templates/helper.rb
|
142
|
+
- lib/generators/nifty/aslon/templates/migration.rb
|
143
|
+
- lib/generators/nifty/aslon/templates/model.rb
|
144
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/actions/create.rb
|
145
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/actions/destroy.rb
|
146
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/actions/edit.rb
|
147
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/actions/index.rb
|
148
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/actions/new.rb
|
149
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/actions/show.rb
|
150
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/actions/update.rb
|
151
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/controller.rb
|
152
|
+
- lib/generators/nifty/aslon/templates/tests/rspec/model.rb
|
153
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/actions/create.rb
|
154
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/actions/destroy.rb
|
155
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/actions/edit.rb
|
156
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/actions/index.rb
|
157
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/actions/new.rb
|
158
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/actions/show.rb
|
159
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/actions/update.rb
|
160
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/controller.rb
|
161
|
+
- lib/generators/nifty/aslon/templates/tests/shoulda/model.rb
|
162
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/actions/create.rb
|
163
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/actions/destroy.rb
|
164
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/actions/edit.rb
|
165
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/actions/index.rb
|
166
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/actions/new.rb
|
167
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/actions/show.rb
|
168
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/actions/update.rb
|
169
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/controller.rb
|
170
|
+
- lib/generators/nifty/aslon/templates/tests/testunit/model.rb
|
171
|
+
- lib/generators/nifty/aslon/templates/views/haml/_new_edit.html.haml
|
172
|
+
- lib/generators/nifty/aslon/templates/views/haml/_search.html.haml
|
173
|
+
- lib/generators/nifty/aslon/templates/views/haml/index.html.haml
|
174
|
+
- lib/generators/nifty/aslon/templates/views/haml/layout.haml.erb
|
175
|
+
- lib/generators/nifty/aslon/templates/views/haml/new_edit.html.haml
|
176
|
+
- lib/generators/nifty/aslon/templates/views/haml/show.html.haml
|
177
|
+
- lib/generators/nifty/layout/USAGE
|
178
|
+
- lib/generators/nifty/layout/layout_generator.rb
|
179
|
+
- lib/generators/nifty/layout/templates/_default.html.haml
|
180
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/add.gif
|
181
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/delete.gif
|
182
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/edit.gif
|
183
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/folder.gif
|
184
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/grid-blue-hd.gif
|
185
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/grid-split.gif
|
186
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/grid3-hrow.gif
|
187
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/indicator.gif
|
188
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/magnifier.png
|
189
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/sort_asc.gif
|
190
|
+
- lib/generators/nifty/layout/templates/assets/images/aslon_scaffold/sort_desc.gif
|
191
|
+
- lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/base.css.sass
|
192
|
+
- lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/formtastic.css.sass
|
193
|
+
- lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/formtastic_changes.css.sass
|
194
|
+
- lib/generators/nifty/layout/templates/assets/stylesheets/aslon_scaffold/table_coffee_with_milk.css.sass
|
195
|
+
- lib/generators/nifty/layout/templates/error_messages_helper.rb
|
196
|
+
- lib/generators/nifty/layout/templates/layout.html.haml
|
197
|
+
- lib/generators/nifty/layout/templates/layout_helper.rb
|
198
|
+
- lib/generators/nifty/layout/templates/locales/aslon_scaffold.fr.yml
|
199
|
+
- lib/generators/nifty/scaffold/USAGE
|
200
|
+
- lib/generators/nifty/scaffold/scaffold_generator.rb
|
201
|
+
- lib/generators/nifty/scaffold/templates/actions/create.rb
|
202
|
+
- lib/generators/nifty/scaffold/templates/actions/destroy.rb
|
203
|
+
- lib/generators/nifty/scaffold/templates/actions/edit.rb
|
204
|
+
- lib/generators/nifty/scaffold/templates/actions/index.rb
|
205
|
+
- lib/generators/nifty/scaffold/templates/actions/new.rb
|
206
|
+
- lib/generators/nifty/scaffold/templates/actions/show.rb
|
207
|
+
- lib/generators/nifty/scaffold/templates/actions/update.rb
|
208
|
+
- lib/generators/nifty/scaffold/templates/controller.rb
|
209
|
+
- lib/generators/nifty/scaffold/templates/fixtures.yml
|
210
|
+
- lib/generators/nifty/scaffold/templates/helper.rb
|
211
|
+
- lib/generators/nifty/scaffold/templates/migration.rb
|
212
|
+
- lib/generators/nifty/scaffold/templates/model.rb
|
213
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/create.rb
|
214
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/destroy.rb
|
215
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/edit.rb
|
216
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/index.rb
|
217
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/new.rb
|
218
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/show.rb
|
219
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/update.rb
|
220
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/controller.rb
|
221
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/model.rb
|
222
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/create.rb
|
223
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
|
224
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/edit.rb
|
225
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/index.rb
|
226
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/new.rb
|
227
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/show.rb
|
228
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/update.rb
|
229
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/controller.rb
|
230
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/model.rb
|
231
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/create.rb
|
232
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/destroy.rb
|
233
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/edit.rb
|
234
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/index.rb
|
235
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/new.rb
|
236
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/show.rb
|
237
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/update.rb
|
238
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/controller.rb
|
239
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/model.rb
|
240
|
+
- lib/generators/nifty/scaffold/templates/views/erb/_form.html.erb
|
241
|
+
- lib/generators/nifty/scaffold/templates/views/erb/edit.html.erb
|
242
|
+
- lib/generators/nifty/scaffold/templates/views/erb/index.html.erb
|
243
|
+
- lib/generators/nifty/scaffold/templates/views/erb/new.html.erb
|
244
|
+
- lib/generators/nifty/scaffold/templates/views/erb/show.html.erb
|
245
|
+
- lib/generators/nifty/scaffold/templates/views/haml/_new_edit.html.haml
|
246
|
+
- lib/generators/nifty/scaffold/templates/views/haml/_search.html.haml
|
247
|
+
- lib/generators/nifty/scaffold/templates/views/haml/index.html.haml
|
248
|
+
- lib/generators/nifty/scaffold/templates/views/haml/layout.haml.erb
|
249
|
+
- lib/generators/nifty/scaffold/templates/views/haml/new_edit.haml.erb
|
250
|
+
- lib/generators/nifty/scaffold/templates/views/haml/show.haml.erb
|
251
|
+
- lib/generators/templates/rails/scaffold_controller/controller.rb
|
252
|
+
- lib/tasks/aslon_scaffold_tasks.rake
|
253
|
+
- lib/tasks/task.rake
|
254
|
+
- test/articles_controller_test.rb
|
255
|
+
- test/database.yml
|
256
|
+
- test/schema.rb
|
257
|
+
- test/test_helper.rb
|
258
|
+
- test/undeletable_plugin.sqlite.db
|
259
|
+
- test/undeletable_plugin2.sqlite3.db
|
260
|
+
- uninstall.rb
|
261
|
+
- vendor/assets/images/aslon_scaffold/add.gif
|
262
|
+
- vendor/assets/images/aslon_scaffold/delete.gif
|
263
|
+
- vendor/assets/images/aslon_scaffold/edit.gif
|
264
|
+
- vendor/assets/images/aslon_scaffold/folder.gif
|
265
|
+
- vendor/assets/images/aslon_scaffold/grid-blue-hd.gif
|
266
|
+
- vendor/assets/images/aslon_scaffold/grid-split.gif
|
267
|
+
- vendor/assets/images/aslon_scaffold/grid3-hrow.gif
|
268
|
+
- vendor/assets/images/aslon_scaffold/indicator.gif
|
269
|
+
- vendor/assets/images/aslon_scaffold/magnifier.png
|
270
|
+
- vendor/assets/images/aslon_scaffold/sort_asc.gif
|
271
|
+
- vendor/assets/images/aslon_scaffold/sort_desc.gif
|
272
|
+
- vendor/assets/stylesheets/aslon_scaffold_base.css.sass
|
273
|
+
- vendor/assets/stylesheets/aslon_scaffold_base.css.sass.old
|
274
|
+
- vendor/assets/stylesheets/aslon_scaffold_table.css.sass
|
275
|
+
- vendor/assets/stylesheets/formtastic_changes.css.sass
|
101
276
|
homepage: ''
|
102
277
|
licenses: []
|
103
278
|
post_install_message:
|
@@ -122,4 +297,10 @@ rubygems_version: 1.8.25
|
|
122
297
|
signing_key:
|
123
298
|
specification_version: 3
|
124
299
|
summary: ! 'TOD O: Write a gem summary'
|
125
|
-
test_files:
|
300
|
+
test_files:
|
301
|
+
- test/articles_controller_test.rb
|
302
|
+
- test/database.yml
|
303
|
+
- test/schema.rb
|
304
|
+
- test/test_helper.rb
|
305
|
+
- test/undeletable_plugin.sqlite.db
|
306
|
+
- test/undeletable_plugin2.sqlite3.db
|