inline_forms 0.8.6 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.6
1
+ 0.9.0
@@ -80,9 +80,13 @@ class InlineFormsController < ApplicationController
80
80
  @update_span = params[:update]
81
81
  attributes = object.inline_forms_attribute_list
82
82
  attributes.each do | name, attribute, form_element |
83
- send("#{form_element.to_s}_update", object, attribute)
83
+ send("#{form_element.to_s}_update", object, attribute) unless form_element == :associated
84
+ end
85
+ if object.save
86
+ flash[:notice] = "Successfully created product."
87
+ else
88
+ flash[:error] = "NOT Successfully created product."
84
89
  end
85
- object.save
86
90
  @objects = @Klass.paginate :page => params[:page], :order => 'created_at DESC'
87
91
  respond_to do |format|
88
92
  # found this here: http://www.ruby-forum.com/topic/211467
@@ -13,13 +13,20 @@ module InlineFormsHelper
13
13
 
14
14
  # show a record by iterating through its attribute list
15
15
  def inline_forms_show_record(object, attributes=nil)
16
- attributes ||= object.inline_forms_attribute_list
17
16
  out = String.new
18
- css_class_id = object.class.to_s.underscore + '_' + object.id.to_s
19
- close_link = link_to h(object._presentation + " - CLOSE "),
20
- send( object.class.to_s.underscore + '_path', object, :update => css_class_id, :close => true ),
21
- :remote => true
22
- out << close_link
17
+ name_cell = content_tag :th, :valign=>'top' do
18
+ content_tag :div, :class=> "object_presentation" do
19
+ h(object._presentation)
20
+ end
21
+ end
22
+ value_cell = content_tag :th, :valign=>'top' do
23
+ content_tag :div, :class=> "close_link" do
24
+ close_link(object)
25
+ end
26
+ end
27
+ out += content_tag :tr, name_cell + value_cell
28
+ out << "\n"
29
+ attributes ||= object.inline_forms_attribute_list
23
30
  attributes.each do | attribute, name, form_element |
24
31
  css_class_id = "#{object.class.to_s.underscore}_#{object.id}_#{attribute}"
25
32
  name_cell = content_tag :td, :valign=>'top' do
@@ -49,7 +56,7 @@ module InlineFormsHelper
49
56
  attributes ||= object.inline_forms_attribute_list
50
57
  out = String.new
51
58
  attributes.each do | attribute, name, form_element |
52
- unless form_element.to_sym == :associated
59
+ unless form_element.to_sym == :associated
53
60
  css_class_id = "attribute_#{attribute}_#{object.id}"
54
61
  name_cell = content_tag :td, :valign=>'top' do
55
62
  content_tag :div, :class=> "attribute_name attribute_#{attribute} form_element_#{form_element}" do
@@ -69,43 +76,43 @@ module InlineFormsHelper
69
76
  return content_tag :table, raw(out), :cellspacing => 0, :cellpadding => 0
70
77
  end
71
78
 
72
- # # display a list of objects
73
- # def inline_forms_list(objects, tag=:li)
74
- # t = String.new
75
- # objects.each do |object|
76
- # css_class_id = @Klass.to_s.underscore + '_' + object.id.to_s
77
- # t += content_tag tag, :id => css_class_id do
78
- # link_to h(object._presentation),
79
- # send( @Klass.to_s.underscore + '_path', object, :update => css_class_id),
80
- # :remote => true
81
- # end
82
- # end
83
- # return raw(t)
84
- # end
85
-
86
- # display a list of objects without links
79
+ # display a list of objects
87
80
  def inline_forms_list(objects, tag=:li)
88
81
  t = String.new
89
82
  objects.each do |object|
90
83
  css_class_id = object.class.to_s.underscore + '_' + object.id.to_s
91
- t += content_tag tag, :id => css_class_id do
84
+ t += content_tag tag, :id => css_class_id, :class => cycle("odd", "even") do
92
85
  link_to h(object._presentation),
93
86
  send( object.class.to_s.underscore + '_path', object, :update => css_class_id),
94
87
  :remote => true
95
88
  end
96
89
  end
97
- return raw(t)
90
+ t = content_tag :ul, :class => "inline_forms_list" do
91
+ t.html_safe
92
+ end
93
+ return t
98
94
  end
99
95
 
100
96
  # link for new item
101
97
  def inline_forms_new_record_link(text='new', update_span='inline_forms_list')
102
- link_to text,
98
+ link_to text,
103
99
  send('new_' + @Klass.to_s.underscore + '_path', :update => update_span),
104
100
  :remote => true
105
101
  end
106
102
 
107
103
  private
108
104
 
105
+ # close icon
106
+ def close_link( object )
107
+ link_to image_tag( 'css/close.png',
108
+ :class => "close_icon" ),
109
+ send( object.class.to_s.underscore + '_path',
110
+ object,
111
+ :update => object.class.to_s.underscore + '_' + object.id.to_s,
112
+ :close => true ),
113
+ :remote => true
114
+ end
115
+
109
116
  # link_to_inline_edit
110
117
  def link_to_inline_edit(object, attribute, attribute_value='')
111
118
  attribute_value = h(attribute_value)
@@ -0,0 +1 @@
1
+ <div id="Header">Hello Header</div>
@@ -1,5 +1,9 @@
1
+ <% flash.each do |key, value| %>
2
+ <div class="flash <%= key %>"><%= value %></div>
3
+ <% end %>
4
+
1
5
  <li class="inline_forms_new_record">
2
- <%= inline_forms_new_record_link %>
6
+ <%= inline_forms_new_record_link %>hello
3
7
  </li>
4
8
  <%= inline_forms_list(@objects) %>
5
9
  <%= will_paginate @objects %>
@@ -8,11 +8,13 @@
8
8
  <%= javascript_include_tag :defaults, 'jquery.form', 'jquery.remotipart' %>
9
9
  <%= yield(:head) %>
10
10
  </head>
11
- <%#= calendar_date_select_includes "red" %>
12
11
  <body>
12
+ <%= render "inline_forms/header" %>
13
13
  <%= render "/inline_forms_tabs" %>
14
+ <div id="main">
14
15
  <ul id="inline_forms_list">
15
16
  <%= yield %>
16
17
  </ul>
18
+ </div>
17
19
  </body>
18
20
  </html>
data/inline_forms.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{inline_forms}
8
- s.version = "0.8.6"
8
+ s.version = "0.9.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ace Suares"]
12
- s.date = %q{2011-03-21}
12
+ s.date = %q{2011-03-22}
13
13
  s.description = %q{Inline Forms aims to ease the setup of forms that provide inline editing. The field list can be specified in the model.}
14
14
  s.email = %q{ace@suares.an}
15
15
  s.extra_rdoc_files = [
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
42
42
  "app/helpers/inline_forms_helper.rb",
43
43
  "app/models/geo_code_curacao.rb",
44
44
  "app/views/inline_forms/_edit.html.erb",
45
+ "app/views/inline_forms/_header.html.erb",
45
46
  "app/views/inline_forms/_index.html.erb",
46
47
  "app/views/inline_forms/_new.html.erb",
47
48
  "app/views/inline_forms/_subform.html.erb",
@@ -55,6 +56,7 @@ Gem::Specification.new do |s|
55
56
  "lib/generators/inline_forms/templates/migration.erb",
56
57
  "lib/generators/inline_forms/templates/model.erb",
57
58
  "lib/inline_forms.rb",
59
+ "public/images/css/close.png",
58
60
  "public/stylesheets/inline_forms.css",
59
61
  "test/helper.rb",
60
62
  "test/test_inline_forms.rb"
Binary file
@@ -14,51 +14,92 @@
14
14
  root {
15
15
  display: block;
16
16
  }
17
+
17
18
  body {
18
- color: darkblue;
19
+ background-color: #ffffff;
20
+ color: #887E42;
19
21
  padding: 0;
20
22
  margin: 0;
23
+ font-family: sans-serif;
21
24
  }
22
- a { text-decoration: none;
23
- background-color: lightgoldenrodyellow;
24
- }
25
- a:link, a:visited, a:hover,a:active {
26
- color: darkblue;
27
- }
28
- h1 { border: 1px solid blue;
29
- color: darkblue;
25
+
26
+ a {
27
+ text-decoration: none;
30
28
  }
31
29
  #inline_forms_list {
32
- border: 1px solid green;
33
30
  padding: 0;
34
31
  margin: 0;
35
32
  list-style-type: none;
36
- background-color: lightgoldenrodyellow;
33
+ font-size: 0.7em;
34
+ font-weight: normal;
35
+ }
36
+
37
+ .inline_forms_list {
38
+ padding: 0.7em;
39
+ margin: 0;
40
+ list-style-type: none;
41
+ -moz-border-radius: 10px;
42
+ -webkit-border-radius: 10px;
43
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
44
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
37
45
  }
46
+
38
47
  #inline_forms_list li.inline_forms_new_record_link {
39
48
  padding: 0.5em;
40
- font-size: 200%;
41
49
  }
42
- #inline_forms_list li.inline_forms_new_record_link a {
50
+
51
+ #inline_forms_list li a {
52
+ color: #385B7B;
43
53
  }
54
+
44
55
  #inline_forms_list li {
45
- padding: 0 1em 0.5em 1em;
56
+ -moz-border-radius: 10px;
57
+ -webkit-border-radius: 10px;
58
+ -webkit-box-shadow: 0 1px 1px rgba(0,0,0, .1);
59
+ -moz-box-shadow: 0 1px 1px rgba(0,0,0, .1);
60
+ padding: 0.5em;
61
+ margin-bottom: 0.3em;
62
+ }
63
+
64
+ #inline_forms_list li.even {
65
+ background-color: #FFE58C;
46
66
  }
67
+
68
+ #inline_forms_list li.odd {
69
+ background-color: #FFEDB0;
70
+ }
71
+
47
72
  #inline_forms_list li table {
48
- border: 1px dotted darkcyan;
73
+ border: 1px solid #EFCA4B;
74
+ -moz-border-radius: 5px;
75
+ -webkit-border-radius: 5px;
76
+ margin: 0;
77
+ padding: 0;
78
+ width: 100%;
49
79
  }
50
- #inline_forms_list li table tr {
80
+
81
+ #inline_forms_list table tr th {
82
+ padding: 0.2em 0.5em 0.2em 0.2em;
83
+ border-bottom: 1px dotted lightgrey;
84
+ font-weight: bold;
85
+ text-align: left;
86
+ background-color: #EFCA4B;
51
87
  }
88
+
52
89
  #inline_forms_list li table tr td {
53
90
  padding: 0.2em 0.5em 0.2em 0.2em;
54
91
  border-bottom: 1px dotted lightgrey;
92
+ font-weight: normal;
93
+ background-color: #F9EBAE;
55
94
  }
56
- #inline_forms_list div.attribute_name{
95
+ /*#inline_forms_list div.attribute_name{
57
96
  font-weight: bold;
58
97
  }
59
- #inline_forms_list div.attribute_value{
60
- padding-left: 1em;
98
+ */
99
+ #inline_forms_list div.attribute_value a{
100
+ color: #385B7B;
61
101
  }
102
+ /*
62
103
  #inline_forms_list div.form_element_text_attribute { }
63
104
  #inline_forms_list div.form_element_associated ul {
64
105
  list-style-type: none;
@@ -76,16 +117,12 @@ h1 { border: 1px solid blue;
76
117
 
77
118
  #inline_forms_list div.associated_new {
78
119
  }
79
-
120
+ */
80
121
  .attribute_text_area {
81
122
  width: 80em;
82
123
  height: 4em;
83
124
  }
84
125
 
85
- #description attribute_text_area {
86
- width: 80em;
87
- height: 8em;
88
- }
89
126
 
90
127
  .edit_form_checklist ul {
91
128
  list-style-type: none;
@@ -124,18 +161,347 @@ ul.checklist li {
124
161
  padding: 0;
125
162
  }
126
163
 
164
+ #Header {
165
+ background-color: #B94C32;
166
+ color: #FFFFFF;
167
+ font-size: x-large;
168
+ font-weight: bold;
169
+ -moz-border-radius: 5px;
170
+ -webkit-border-radius: 5px;
171
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
172
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
173
+ /* border: 1px solid white;*/
174
+ padding: 0.4em;
175
+ margin: 0.4em 1em 0.4em 1em;
176
+ }
177
+
127
178
  #tabs {
128
- border-bottom: 2px solid darkcyan;
179
+ background-color: #F9EBAE;
180
+ font-size: x-large;
181
+ font-weight: bold;
182
+ -moz-border-radius: 5px;
183
+ -webkit-border-radius: 5px;
184
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
185
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
186
+ background-image: -moz-linear-gradient(100% 100% 90deg, #F9EBAE, #EFCA4B);
187
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F9EBAE), to(#F9EBAE));
188
+ padding: 0.4em;
189
+ margin: 0 1em 0.4em 1em;
190
+ /* border: 1px solid white;*/
129
191
  }
130
192
 
131
193
  #tabs li {
132
194
  display: inline-block;
133
- border-left: 2px solid darkcyan;
134
- padding: 0.2em;
135
- margin: 0.1em;
195
+ background-color: #EFE06C;
196
+ padding: 0.2em 0.3em;
197
+ border: 1px solid #385b7b;
198
+ font-size: smaller;
199
+ -moz-border-radius: 5px;
200
+ -webkit-border-radius: 5px;
201
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
202
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
203
+ }
204
+
205
+ #tabs li:hover {
206
+ -webkit-transform: scale(1.2);
207
+ -moz-transform: scale(1.2);
208
+ -webkit-box-shadow: 0 2px 5px rgba(0,0,0, .5);
209
+ -moz-box-shadow: 0 2px 5px rgba(0,0,0, .5);
210
+ }
211
+
212
+
213
+ #tabs li a {
214
+ color: #887E42;
136
215
  }
137
216
 
138
217
  #tabs .current {
139
218
  font-weight: bold;
140
- border: 2px solid red;
219
+ color: #385B7B;
220
+ background-color: #FFECAB;
221
+ border: 2px solid #385b7b;
222
+ }
223
+
224
+ #main {
225
+ background-color: #F9EBAE;
226
+ font-size: x-large;
227
+ font-weight: bold;
228
+ -moz-border-radius: 5px;
229
+ -webkit-border-radius: 5px;
230
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
231
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
232
+ padding: 0.4em;
233
+ margin: 0 1em 0.4em 1em;
234
+ /* border: 1px solid white;*/
235
+ }
236
+
237
+ .close_icon {
238
+ border: 0;
239
+ margin: 1px;
240
+ padding: 0;
241
+ float:right;
242
+ }
243
+
244
+ .pagination {
245
+ -moz-border-radius: 5px;
246
+ -webkit-border-radius: 5px;
247
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
248
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
249
+ background-image: -moz-linear-gradient(100% 100% 90deg, #EFCA4B, #F9EBAE );
250
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EFCA4B), to(#F9EBAE));
251
+ padding: 0.7em; }
252
+ .pagination a, .pagination span, .pagination em {
253
+ padding-left:8px;
254
+ padding-right:8px;
255
+ padding-top:5px;
256
+ padding-bottom: 5px;
257
+ border: solid #999999 1px;
258
+ text-decoration: none;
259
+
260
+ color:black;
261
+ background-color: #EBEAE9;
262
+
263
+ background-image: -moz-linear-gradient(100% 100% 90deg, #cccccc,#EBEAE9);
264
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cccccc), to(#EBEAE9));
265
+
266
+ -moz-border-radius: 5px;
267
+ -webkit-border-radius: 5px;
268
+ -webkit-box-shadow: 0 2px 3px rgba(0,0,0, .4);
269
+ -moz-box-shadow: 0 2px 3px rgba(0,0,0, .4);
270
+
271
+
272
+ }
273
+
274
+ .pagination a:hover {
275
+ color:white;
276
+ background-color: #EFCA4B;
277
+ background-image: -moz-linear-gradient(100% 100% 90deg, #F9EBAE,#EFCA4B);
278
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EFCA4B), to(#F9EBAE));
279
+ }
280
+ .pagination em {
281
+ background-color: #eeeeee;
282
+ color: black;
283
+
284
+ background-image: -moz-linear-gradient(100% 100% 90deg, #eeeeee, #ffffff);
285
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff), to(#eeeeee));
286
+ }
287
+
288
+
289
+ .pagination span.disabled {
290
+ color: #AAA; }
291
+
292
+
293
+ dt label {
294
+ margin-left: 18px;
295
+ }
296
+ dd {
297
+ margin-bottom: 10px;
298
+ }
299
+ input[type='text'] {
300
+ font-size: 1.2em;
301
+ width: 80%;
302
+ }
303
+ select {
304
+ font-size: 1.1em;
305
+ width: 80%;
306
+ }
307
+ #HeaderUserMenu {
308
+ font-size: 10px;
309
+ float:right;
310
+ }
311
+ #HeaderUserMenu a {
312
+ text-decoration: none;
313
+ color: #333333;
314
+ }
315
+
316
+ #MainMenu ul {
317
+ padding:0;
318
+ margin:0;
319
+ }
320
+ #MainMenu li {
321
+ display: inline;
322
+ list-style: none;
323
+ padding-right: 10px;
324
+ margin: 0;
325
+ }
326
+ #MainMenu a {
327
+ color: #ffffff;
328
+ text-decoration: none;
329
+ padding: 5px;
330
+ border-bottom: none;
331
+ }
332
+ #MainMenu a:hover {
333
+ color: white;
334
+ background-image: -moz-linear-gradient(100% 100% 90deg, #385b7b,#48739c);
335
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#48739c), to(#385b7b));
336
+ -moz-border-radius: 5px;
337
+ -webkit-border-radius: 5px;
338
+ -webkit-transform: scale(1.1);
339
+ -moz-transform: scale(1.1);
340
+ -webkit-box-shadow: 0 2px 5px rgba(0,0,0, .5);
341
+ -moz-box-shadow: 0 2px 5px rgba(0,0,0, .5);
342
+ }
343
+ .Section {
344
+ background-color: #ffffff;
345
+ -moz-border-radius: 5px;
346
+ -webkit-border-radius: 5px;
347
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
348
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
349
+ border: 1px solid #cccccc;
350
+ padding: 5px;
351
+ margin-top: 10px;
352
+ margin-bottom: 10px;
353
+ }
354
+ .SectionHeading {
355
+ background-color: #eeeeee;
356
+ font-size: 16px;
357
+ font-weight: bold;
358
+ -moz-border-radius: 5px;
359
+ -webkit-border-radius: 5px;
360
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
361
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
362
+ border-bottom: 1px solid #cccccc;
363
+ background-image: -moz-linear-gradient(100% 100% 90deg, #eeeeee, #ffffff);
364
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff), to(#eeeeee));
365
+ padding: 10px;
366
+ }
367
+ .SectionHeadingMenu {
368
+ font-size: 12px;
369
+ float:right;
370
+ }
371
+ .SectionHeadingMenu a {
372
+ text-decoration: none;
373
+ border: none;
374
+ padding: 5px;
375
+ color: #333333;
376
+ }
377
+ .SectionHeadingMenu a:hover {
378
+ color: white;
379
+ background-color: #385b7b;
380
+ background-image: -moz-linear-gradient(100% 100% 90deg, #385b7b,#48739c);
381
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#48739c), to(#385b7b));
382
+ -moz-border-radius: 5px;
383
+ -webkit-border-radius: 5px;
384
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
385
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
386
+ }
387
+
388
+ .SectionContent {
389
+ margin-top: 10px;
390
+ margin-bottom: 10px;
391
+ }
392
+ .SectionContent p {
393
+ padding-left: 5px;
394
+ padding-right: 5px;
395
+ }
396
+
397
+ .DataTable {
398
+ padding-top: 10px;
399
+ padding-bottom: 15px;
400
+ border-collapse: collapse;
401
+
402
+ }
403
+ .DataTable th {
404
+ background-color: #dddddd;
405
+ color: #333333 !important;
406
+ border-top: solid 1px #cccccc;
407
+ border-bottom: solid 1px #cccccc;
408
+ }
409
+
410
+ .DataTable td {
411
+ border-bottom: solid 1px #eeeeee;
412
+
413
+ }
414
+ .DataTable tr:hover {
415
+ color:#ffffff;
416
+ background-color: #385b7b;
417
+ background-image: -moz-linear-gradient(100% 100% 90deg, #385b7b,#48739c);
418
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#48739c), to(#385b7b));
419
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
420
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
421
+ }
422
+
423
+ .DataTable tr:hover a {
424
+ color: #ffffff;
425
+ border-bottom: solid 1px #ffffff;
426
+ }
427
+ .PaginationWidget {
428
+ text-align:center;
429
+ }
430
+ .PaginationWidget ul {
431
+
432
+ }
433
+ .PaginationWidget ul li {
434
+ display: inline;
435
+ list-style: none;
436
+ padding-right: 5px;
437
+ margin: 0;
438
+ }
439
+ .PaginationWidget ul li img {
440
+ margin-bottom: -2px;
441
+ }
442
+ .PaginationWidget ul li a {
443
+ padding-left:8px;
444
+ padding-right:8px;
445
+ padding-top:5px;
446
+ padding-bottom: 5px;
447
+ border: solid #999999 1px;
448
+ text-decoration: none;
449
+
450
+ color:black;
451
+ background-color: #cccccc;
452
+
453
+ background-image: -moz-linear-gradient(100% 100% 90deg, #999999,#cccccc);
454
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cccccc), to(#999999));
455
+
456
+ -moz-border-radius: 5px;
457
+ -webkit-border-radius: 5px;
458
+ -webkit-box-shadow: 0 2px 3px rgba(0,0,0, .4);
459
+ -moz-box-shadow: 0 2px 3px rgba(0,0,0, .4);
460
+
461
+ }
462
+
463
+ .ErrorMessage {
464
+ color: #ffffff;
465
+ font-size: 14px;
466
+ font-weight: bold;
467
+ -moz-border-radius: 5px;
468
+ -webkit-border-radius: 5px;
469
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
470
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
471
+ border-bottom: 1px solid #cccccc;
472
+ background-color: #a70f0f;
473
+ background-image: -moz-linear-gradient(100% 100% 90deg, #a70f0f, #c01313);
474
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#c01313), to(#a70f0f));
475
+ padding: 10px;
476
+ margin-top: 5px;
477
+ margin-bottom: 5px;
478
+ margin-left: 10px;
479
+ margin-right: 10px
480
+ }
481
+ .SuccessMessage {
482
+ color: #ffffff;
483
+ font-size: 14px;
484
+ font-weight: bold;
485
+ -moz-border-radius: 5px;
486
+ -webkit-border-radius: 5px;
487
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
488
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
489
+ border-bottom: 1px solid #cccccc;
490
+ background-color: #4f8d0d;
491
+ background-image: -moz-linear-gradient(100% 100% 90deg, #4f8d0d, #5ba210);
492
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#5ba210), to(#4f8d0d));
493
+ padding: 10px;
494
+ margin-top: 5px;
495
+ margin-bottom: 5px;
496
+ margin-left: 10px;
497
+ margin-right: 10px;
498
+
499
+ }
500
+ #Footer {
501
+ font-size: 10px;
502
+ padding-top: 5px;
503
+ border-top: solid 1px #dddddd;
504
+ }
505
+ #CopyrightStatement {
506
+ text-align: right;
141
507
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 8
9
- - 6
10
- version: 0.8.6
8
+ - 9
9
+ - 0
10
+ version: 0.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ace Suares
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-21 00:00:00 -04:00
18
+ date: 2011-03-22 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -113,6 +113,7 @@ files:
113
113
  - app/helpers/inline_forms_helper.rb
114
114
  - app/models/geo_code_curacao.rb
115
115
  - app/views/inline_forms/_edit.html.erb
116
+ - app/views/inline_forms/_header.html.erb
116
117
  - app/views/inline_forms/_index.html.erb
117
118
  - app/views/inline_forms/_new.html.erb
118
119
  - app/views/inline_forms/_subform.html.erb
@@ -126,6 +127,7 @@ files:
126
127
  - lib/generators/inline_forms/templates/migration.erb
127
128
  - lib/generators/inline_forms/templates/model.erb
128
129
  - lib/inline_forms.rb
130
+ - public/images/css/close.png
129
131
  - public/stylesheets/inline_forms.css
130
132
  - test/helper.rb
131
133
  - test/test_inline_forms.rb