lipsiadmin 4.1.4 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2009-05-11
2
+ * Fiexed the attachment and attachments tags
3
+
1
4
  2009-05-28
2
5
  * Refactored account_access now current_account (account logged) is aviable in our roles
3
6
  * Fix a typo in column_model
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Lipsiadmin
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 4
4
4
  MINOR = 1
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -220,7 +220,7 @@ module Lipsiadmin
220
220
  html << '<table>'
221
221
  rowa = ' <tr class="attachment">'
222
222
  rowa << ' <td>' + human_name_for(:attachment, :attached_file_name) + '</td>'
223
- rowa << ' <td>' + file_field_tag("category[#{method}_attributes][file]", :style => "width:250px") + '</td>'
223
+ rowa << ' <td>' + file_field_tag("#{object_name}[#{method}_attributes][file]", :style => "width:250px") + '</td>'
224
224
  rowa << ' </tr>'
225
225
  html << rowa
226
226
  html << '</table>'
@@ -300,7 +300,7 @@ module Lipsiadmin
300
300
  html << '<table>'
301
301
  rowa = ' <tr class="attachment">'
302
302
  rowa << ' <td>' + human_name_for(:attachment, :attached_file_name) + '</td>'
303
- rowa << ' <td>' + file_field_tag("category[#{method}_attributes][][file]", :style => "width:250px") + '</td>'
303
+ rowa << ' <td>' + file_field_tag("#{object_name}[#{method}_attributes][][file]", :style => "width:250px") + '</td>'
304
304
  rowa << ' <td>' + link_to_function(tl(:remove), "this.up('.attachment').remove()") + '</td>'
305
305
  rowa << ' </tr>'
306
306
  html << rowa
@@ -10,6 +10,10 @@ Please remember to:
10
10
 
11
11
  - has_one_attachment :myfile
12
12
  - has_many_attachments :myfiles
13
+
14
+ - Check/Add in account_access.rb
15
+
16
+ - role.allow_all_actions "/backend/attachments"
13
17
 
14
18
  You can add some validations/processor in your models like:
15
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lipsiadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.4
4
+ version: 4.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide D'Agostino
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-01 00:00:00 +02:00
12
+ date: 2009-06-11 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -560,7 +560,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
560
560
  requirements:
561
561
  - ImageMagick
562
562
  rubyforge_project: lipsiadmin
563
- rubygems_version: 1.3.3
563
+ rubygems_version: 1.3.4
564
564
  signing_key:
565
565
  specification_version: 3
566
566
  summary: Lipsiadmin is a new revolutionary admin for your projects.Lipsiadmin is based on Ext Js 2.0. framework (with prototype adapter) and is ready for Rails 2.0. This admin is for newbie developper but also for experts, is not entirely written in javascript because the aim of developper wose build in a agile way web/site apps so we use extjs in a new intelligent way a mixin of 'old' html and new ajax functions, for example ext manage the layout of page, grids, tree and errors, but form are in html code.