|
1 | 1 | ActiveAdmin.register Invoice do |
2 | | - permit_params :legal_date, :number, :paid, :state, :attachment, :photo, :category_id, :city_id, |
| 2 | + permit_params :legal_date, :number, :paid, :state, :category_id, :city_id, |
3 | 3 | :amount, :color, :updated_at, :picture, :active, :description, item_ids: [], other_item_ids: [] |
4 | 4 |
|
5 | 5 | filter :id, as: :numeric_range_filter |
|
16 | 16 | id_column |
17 | 17 | tag_column :state, interactive: true |
18 | 18 | bool_column :paid |
19 | | - image_column :photo, style: :thumb |
20 | 19 | image_column :picture, style: :jpg_small |
21 | | - attachment_column :attachment |
22 | 20 | number_column :amount, as: :currency, unit: "$", separator: "," |
23 | 21 | toggle_bool_column :active |
24 | 22 | markdown_column :description |
|
35 | 33 | list_row :skills, list_type: :ol |
36 | 34 | list_row :contact, localize: true |
37 | 35 | list_row :details, localize: true |
38 | | - image_row("Mi foto", :photo, style: :big, &:photo) |
39 | 36 | attachment_row("My doc", :attachment, label: 'Download file', truncate: false, &:attachment) |
40 | 37 | image_row("Mi picture", :picture, image_options: { width: 100 }, &:picture) |
41 | 38 | row :legal_date |
|
85 | 82 |
|
86 | 83 | f.input :other_item_ids, as: :tags, collection: Item.all.limit(5) |
87 | 84 |
|
88 | | - f.input :attachment |
89 | | - |
90 | 85 | f.input :description |
91 | 86 |
|
92 | 87 | f.input :legal_date |
93 | 88 |
|
94 | | - f.input :photo |
95 | | - |
96 | 89 | f.input :picture, as: :file |
97 | 90 |
|
98 | 91 | f.input :color, as: :color_picker, |
|
0 commit comments