brisk-bills 0.7.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +55 -0
- data/TODO.txt +36 -67
- data/app/controllers/admin/activities_controller.rb +4 -3
- data/app/controllers/admin/activities_with_prices_controller.rb +28 -14
- data/app/controllers/admin/client_accounting_controller.rb +11 -8
- data/app/controllers/admin/client_representatives_controller.rb +34 -5
- data/app/controllers/admin/clients_controller.rb +1 -1
- data/app/controllers/admin/draft_invoices_controller.rb +92 -0
- data/app/controllers/admin/{employee_client_labor_rate_controller.rb → employee_client_labor_rates_controller.rb} +1 -1
- data/app/controllers/admin/employees_controller.rb +3 -4
- data/app/controllers/admin/invoices_controller.rb +111 -53
- data/app/controllers/admin/payments_controller.rb +168 -41
- data/app/controllers/authentication_controller.rb +3 -3
- data/app/helpers/admin/activities_helper.rb +16 -13
- data/app/helpers/admin/activities_helper/labor_helper.rb +4 -4
- data/app/helpers/admin/activities_helper/proposal_helper.rb +1 -1
- data/app/helpers/admin/activities_helper/slimtimer_helper.rb +1 -1
- data/app/helpers/admin/activities_with_prices_helper.rb +2 -2
- data/app/helpers/admin/activity_type_controller_helper.rb +6 -0
- data/app/helpers/admin/activity_type_field_helper.rb +9 -9
- data/app/helpers/admin/adjustments_helper.rb +9 -1
- data/app/helpers/admin/client_accounting_helper.rb +2 -2
- data/app/helpers/admin/client_financial_transactions_helper.rb +1 -1
- data/app/helpers/admin/client_representatives_helper.rb +16 -12
- data/app/helpers/admin/clients_helper.rb +2 -0
- data/app/helpers/admin/draft_invoices_helper.rb +24 -0
- data/app/helpers/admin/{employee_client_labor_rate_helper.rb → employee_client_labor_rates_helper.rb} +8 -8
- data/app/helpers/admin/employees_helper.rb +6 -0
- data/app/helpers/admin/has_credential_column_helper.rb +8 -8
- data/app/helpers/admin/invoices_helper.rb +71 -16
- data/app/helpers/admin/is_active_column_helper.rb +2 -2
- data/app/helpers/admin/labors_helper.rb +12 -1
- data/app/helpers/admin/labors_helper/slimtimer_helper.rb +1 -1
- data/app/helpers/admin/materials_helper.rb +11 -0
- data/app/helpers/admin/payments_helper.rb +204 -29
- data/app/helpers/admin/proposals_helper.rb +10 -0
- data/app/helpers/admin/settings_helper.rb +1 -1
- data/app/helpers/admin_layout_helper.rb +3 -6
- data/app/helpers/authentication_helper.rb +7 -10
- data/app/helpers/money_model_helper.rb +1 -2
- data/app/models/activity.rb +17 -7
- data/app/models/client.rb +35 -8
- data/app/{model_views → models}/client_financial_transaction.rb +0 -0
- data/app/models/client_representative.rb +6 -14
- data/app/models/credential.rb +1 -1
- data/app/models/employee.rb +9 -11
- data/app/models/invoice.rb +13 -9
- data/app/models/invoice_payment.rb +1 -1
- data/app/models/notifier.rb +2 -2
- data/app/models/payment.rb +51 -7
- data/app/models/setting.rb +3 -1
- data/app/views/active_scaffold_overrides/add_existing.js.rjs +25 -0
- data/app/views/admin/activities/_adjustment_column.html.erb +10 -0
- data/app/views/admin/activities/{_form.rhtml → _form.html.erb} +0 -0
- data/app/views/admin/activities/{_form_attribute.rhtml → _form_attribute.html.erb} +0 -0
- data/app/views/admin/activities/{_labor_column.rhtml → _labor_column.html.erb} +0 -0
- data/app/views/admin/activities/{_material_column.rhtml → _material_column.html.erb} +0 -0
- data/app/views/admin/activities/{_proposal_column.rhtml → _proposal_column.html.erb} +0 -0
- data/app/views/admin/activities_with_prices/{move_to_invoice.rhtml → move_to_invoice.html.erb} +2 -2
- data/app/views/admin/activities_with_prices/move_to_invoice.js.rjs +5 -0
- data/app/views/admin/draft_invoices/batch_create.html.erb +73 -0
- data/app/views/admin/draft_invoices/batch_create.js.rjs +5 -0
- data/app/views/admin/invoices/confirm_publish_modal.html.erb +48 -0
- data/app/views/admin/payments/commit_payment_warning.html.erb +8 -0
- data/app/views/admin/payments/observation_error.js.rjs +28 -0
- data/app/views/admin/payments/on_assignment_observation.js.rjs +28 -0
- data/app/views/authentication/{email.rjs → email.js.rjs} +0 -0
- data/app/views/authentication/{login.rhtml → login.html.erb} +21 -26
- data/app/views/authentication/{login.rjs → login.js.rjs} +0 -0
- data/app/views/authentication/{reset_password_via_token.rhtml → reset_password_via_token.html.erb} +0 -0
- data/app/views/authentication/{reset_password_via_token.rjs → reset_password_via_token.js.rjs} +0 -0
- data/app/views/authentication/{sign_in_error.rjs → sign_in_error.js.rjs} +0 -0
- data/app/views/layouts/{_navigation_tree.rhtml → _navigation_tree.html.erb} +0 -0
- data/app/views/layouts/{admin.rhtml → admin.html.erb} +0 -0
- data/app/views/layouts/{public.rhtml → public.html.erb} +0 -0
- data/app/views/notifier/{_email_footer.html.rhtml → _email_footer.html.erb} +0 -0
- data/app/views/notifier/{_email_footer.plain.rhtml → _email_footer.plain.erb} +0 -0
- data/app/views/notifier/{_email_header.html.rhtml → _email_header.html.erb} +0 -0
- data/app/views/notifier/invoice_available.html.erb +5 -0
- data/app/views/notifier/{invoice_available.plain.rhtml → invoice_available.plain.erb} +1 -1
- data/app/views/notifier/{reset_password_requested.html.rhtml → reset_password_requested.html.erb} +2 -2
- data/app/views/notifier/{reset_password_requested.plain.rhtml → reset_password_requested.plain.erb} +1 -1
- data/config/environment.rb +6 -5
- data/config/locale/en.rb +9 -0
- data/db/migrate/001_create_employees.rb +1 -1
- data/db/migrate/002_create_employee_slimtimers.rb +1 -1
- data/db/migrate/003_create_slimtimer_tasks.rb +1 -1
- data/db/migrate/004_create_slimtimer_time_entries.rb +1 -1
- data/db/migrate/005_create_clients.rb +1 -1
- data/db/migrate/006_create_client_representatives.rb +1 -1
- data/db/migrate/008_create_activities.rb +1 -1
- data/db/migrate/009_create_activity_labors.rb +1 -1
- data/db/migrate/010_create_employee_client_labor_rates.rb +1 -1
- data/db/migrate/011_create_activity_adjustments.rb +1 -1
- data/db/migrate/012_create_activity_materials.rb +1 -1
- data/db/migrate/013_create_activity_proposals.rb +1 -1
- data/db/migrate/014_create_invoices.rb +1 -1
- data/db/migrate/015_create_payments.rb +1 -1
- data/db/migrate/016_create_payment_methods.rb +1 -1
- data/db/migrate/017_create_invoice_payments.rb +1 -1
- data/db/migrate/018_create_activity_types.rb +2 -2
- data/db/migrate/019_create_settings.rb +1 -1
- data/db/migrate/023_create_credentials_migrate_representatives.rb +2 -2
- data/db/migrate/028_money_to_cents.rb +2 -2
- data/db/schema.rb +10 -10
- data/lib/brisk-bills.rb +2 -2
- data/lib/brisk-bills/initializer.rb +2 -2
- data/lib/generators/instance/templates/instance_environment.rb +1 -1
- data/lib/libpptable.rb +48 -0
- data/lib/tasks/create_last_months_invoices.rake +1 -14
- data/lib/tasks/first_time_setup.rake +2 -2
- data/lib/tasks/package.rake +2 -1
- data/lib/tasks/payment_assignment_consistency_check.rake +110 -0
- data/lib/utilities.rb +4 -4
- data/public/images/page-new.gif +0 -0
- data/public/javascripts/active_scaffold/default/active_scaffold.js +532 -430
- data/public/javascripts/active_scaffold/default/dhtml_history.js +1 -1
- data/public/javascripts/active_scaffold/default/form_enhancements.js +7 -4
- data/public/stylesheets/active_scaffold/default/stylesheet-ie.css +5 -5
- data/public/stylesheets/active_scaffold/default/stylesheet.css +54 -18
- data/public/stylesheets/admin/global.css +1 -1
- data/public/stylesheets/admin/pages.css +29 -0
- data/test/unit/activity/adjustment_test.rb +1 -1
- data/test/unit/activity/labor_test.rb +1 -1
- data/test/unit/activity/material_test.rb +1 -1
- data/test/unit/activity/proposal_test.rb +1 -1
- data/test/unit/activity_test.rb +1 -1
- data/test/unit/activity_type_test.rb +1 -1
- data/test/unit/client_eventlog_test.rb +1 -1
- data/test/unit/client_financial_transaction_test.rb +1 -1
- data/test/unit/client_representative_test.rb +1 -1
- data/test/unit/client_test.rb +37 -6
- data/test/unit/credential_test.rb +1 -1
- data/test/unit/employee/slimtimer_test.rb +1 -1
- data/test/unit/employee_client_labor_rate_test.rb +1 -1
- data/test/unit/employee_test.rb +1 -1
- data/test/unit/helpers/admin/draft_invoices_helper_test.rb +4 -0
- data/test/unit/invoice_payment_test.rb +90 -50
- data/test/unit/invoice_test.rb +48 -8
- data/test/unit/notifier_test.rb +1 -1
- data/test/unit/payment_method_test.rb +1 -1
- data/test/unit/payment_test.rb +7 -7
- data/test/unit/setting_test.rb +1 -1
- data/test/unit/slimtimer_task_test.rb +1 -1
- data/test/unit/slimtimer_time_entry_test.rb +1 -1
- data/vendor/plugins/active_scaffold/CHANGELOG +3 -1
- data/vendor/plugins/active_scaffold/README +18 -5
- data/vendor/plugins/active_scaffold/environment.rb +1 -1
- data/vendor/plugins/active_scaffold/frontends/default/javascripts/active_scaffold.js +532 -430
- data/vendor/plugins/active_scaffold/frontends/default/javascripts/dhtml_history.js +1 -1
- data/vendor/plugins/active_scaffold/frontends/default/javascripts/form_enhancements.js +7 -4
- data/vendor/plugins/active_scaffold/frontends/default/stylesheets/stylesheet-ie.css +5 -5
- data/vendor/plugins/active_scaffold/frontends/default/stylesheets/stylesheet.css +54 -18
- data/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb +3 -7
- data/vendor/plugins/active_scaffold/frontends/default/views/_create_form.html.erb +10 -7
- data/vendor/plugins/active_scaffold/frontends/default/views/_field_search.html.erb +7 -12
- data/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb +3 -3
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb +15 -20
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_association_footer.html.erb +8 -10
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.html.erb +5 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_hidden_attribute.html.erb +2 -1
- data/vendor/plugins/active_scaffold/frontends/default/views/_horizontal_subform.html.erb +19 -21
- data/vendor/plugins/active_scaffold/frontends/default/views/{_form_association_header.html.erb → _horizontal_subform_header.html.erb} +2 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/_horizontal_subform_record.html.erb +31 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/_list.html.erb +4 -18
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_actions.html.erb +18 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_calculations.html.erb +2 -9
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_column_headings.html.erb +4 -4
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_header.html.erb +6 -6
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_inline_adapter.html.erb +2 -1
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_messages.html.erb +20 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_pagination.html.erb +11 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_pagination_links.html.erb +3 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_record.html.erb +2 -26
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_record_columns.html.erb +9 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/_nested.html.erb +3 -12
- data/vendor/plugins/active_scaffold/frontends/default/views/_render_fields.js.rjs +11 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/_search.html.erb +17 -11
- data/vendor/plugins/active_scaffold/frontends/default/views/_show.html.erb +3 -3
- data/vendor/plugins/active_scaffold/frontends/default/views/_show_columns.html.erb +8 -7
- data/vendor/plugins/active_scaffold/frontends/default/views/_update_actions.html.erb +3 -3
- data/vendor/plugins/active_scaffold/frontends/default/views/_update_form.html.erb +9 -6
- data/vendor/plugins/active_scaffold/frontends/default/views/_vertical_subform.html.erb +7 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/_vertical_subform_record.html.erb +38 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs +2 -1
- data/vendor/plugins/active_scaffold/frontends/default/views/delete.html.erb +1 -1
- data/vendor/plugins/active_scaffold/frontends/default/views/destroy.js.rjs +2 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs +20 -15
- data/vendor/plugins/active_scaffold/frontends/default/views/list.html.erb +12 -8
- data/vendor/plugins/active_scaffold/frontends/default/views/list.js.rjs +1 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/mark.js.rjs +6 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/on_create.js.rjs +12 -8
- data/vendor/plugins/active_scaffold/frontends/default/views/on_update.js.rjs +13 -6
- data/vendor/plugins/active_scaffold/frontends/default/views/render_field.js.rjs +1 -0
- data/vendor/plugins/active_scaffold/frontends/default/views/search.html.erb +2 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/update.html.erb +2 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/update_column.js.rjs +4 -3
- data/vendor/plugins/active_scaffold/frontends/default/views/update_row.js.rjs +2 -0
- data/vendor/plugins/active_scaffold/init.rb +2 -2
- data/vendor/plugins/active_scaffold/install.rb +1 -2
- data/vendor/plugins/active_scaffold/install_assets.rb +1 -1
- data/vendor/plugins/active_scaffold/lib/active_record_permissions.rb +53 -42
- data/vendor/plugins/active_scaffold/lib/active_scaffold.rb +96 -23
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/common_search.rb +18 -0
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/core.rb +152 -102
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb +81 -49
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/delete.rb +44 -17
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/field_search.rb +60 -46
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb +42 -37
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/mark.rb +72 -0
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/nested.rb +94 -92
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/search.rb +54 -40
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/show.rb +30 -10
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/update.rb +62 -47
- data/vendor/plugins/active_scaffold/lib/active_scaffold/attribute_params.rb +187 -185
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/base.rb +28 -3
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb +43 -3
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/create.rb +8 -15
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/delete.rb +3 -4
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/field_search.rb +19 -17
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/form.rb +2 -9
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/list.rb +46 -9
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/nested.rb +17 -7
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/search.rb +36 -16
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb +5 -12
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/subform.rb +8 -6
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb +12 -8
- data/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb +2 -2
- data/vendor/plugins/active_scaffold/lib/active_scaffold/constraints.rb +173 -178
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/action_columns.rb +101 -97
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/action_link.rb +29 -19
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb +74 -34
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb +74 -74
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/set.rb +57 -62
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/sorting.rb +73 -3
- data/vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb +304 -234
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/association_helpers.rb +40 -40
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/controller_helpers.rb +39 -24
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/country_helpers.rb +32 -28
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column_helpers.rb +157 -86
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/id_helpers.rb +7 -7
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/list_column_helpers.rb +278 -85
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/pagination_helpers.rb +38 -12
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/search_column_helpers.rb +74 -35
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/show_column_helpers.rb +53 -46
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/view_helpers.rb +51 -17
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/de.yml +69 -0
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/en.yml +72 -0
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/es.yml +23 -13
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/fr.yml +68 -0
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/hu.yml +24 -14
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/ja.yml +69 -0
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/ru.yml +72 -0
- data/vendor/plugins/active_scaffold/lib/active_scaffold/marked_model.rb +38 -0
- data/vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge.rb +47 -13
- data/vendor/plugins/active_scaffold/lib/bridges/dependent_protect/bridge.rb +10 -0
- data/vendor/plugins/active_scaffold/lib/bridges/dependent_protect/lib/dependent_protect_bridge.rb +11 -0
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/lib/as_file_column_bridge.rb +3 -6
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/lib/form_ui.rb +10 -2
- data/vendor/plugins/active_scaffold/lib/bridges/paperclip/bridge.rb +13 -0
- data/vendor/plugins/active_scaffold/lib/bridges/paperclip/lib/form_ui.rb +20 -0
- data/vendor/plugins/active_scaffold/lib/bridges/paperclip/lib/list_ui.rb +16 -0
- data/vendor/plugins/active_scaffold/lib/bridges/paperclip/lib/paperclip_bridge.rb +32 -0
- data/vendor/plugins/active_scaffold/lib/bridges/paperclip/lib/paperclip_bridge_helpers.rb +18 -0
- data/vendor/plugins/active_scaffold/lib/bridges/record_select/bridge.rb +5 -0
- data/vendor/plugins/active_scaffold/lib/bridges/record_select/lib/record_select_bridge.rb +79 -0
- data/vendor/plugins/active_scaffold/lib/bridges/semantic_attributes/bridge.rb +5 -0
- data/vendor/plugins/active_scaffold/lib/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb +20 -0
- data/vendor/plugins/active_scaffold/lib/bridges/tiny_mce/bridge.rb +5 -0
- data/vendor/plugins/active_scaffold/lib/bridges/tiny_mce/lib/tiny_mce_bridge.rb +57 -0
- data/vendor/plugins/active_scaffold/lib/bridges/unobtrusive_date_picker/bridge.rb +9 -0
- data/vendor/plugins/active_scaffold/lib/bridges/unobtrusive_date_picker/lib/form_ui.rb +14 -0
- data/vendor/plugins/active_scaffold/lib/bridges/unobtrusive_date_picker/lib/unobtrusive_date_picker_bridge.rb +15 -0
- data/vendor/plugins/active_scaffold/lib/bridges/unobtrusive_date_picker/lib/view_helpers.rb +16 -0
- data/vendor/plugins/active_scaffold/lib/bridges/validation_reflection/bridge.rb +9 -0
- data/vendor/plugins/active_scaffold/lib/bridges/validation_reflection/lib/validation_reflection_bridge.rb +19 -0
- data/vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb +20 -8
- data/vendor/plugins/active_scaffold/lib/extensions/generic_view_paths.rb +2 -2
- data/vendor/plugins/active_scaffold/lib/extensions/paginator_extensions.rb +26 -0
- data/vendor/plugins/active_scaffold/lib/extensions/resources.rb +6 -5
- data/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb +26 -20
- data/vendor/plugins/active_scaffold/lib/extensions/unsaved_associated.rb +1 -1
- data/vendor/plugins/active_scaffold/lib/paginator.rb +1 -1
- data/vendor/plugins/active_scaffold/lib/responds_to_parent.rb +1 -1
- data/vendor/plugins/active_scaffold/shoulda_macros/macros.rb +136 -0
- data/vendor/plugins/active_scaffold/test/bridges/active_scaffold_dependent_protect_test.rb +34 -0
- data/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb +43 -0
- data/vendor/plugins/active_scaffold/test/bridges/company.rb +81 -0
- data/vendor/plugins/active_scaffold/test/bridges/paperclip_test.rb +68 -0
- data/vendor/plugins/active_scaffold/test/bridges/tiny_mce_test.rb +27 -0
- data/vendor/plugins/active_scaffold/test/bridges/unobtrusive_date_picker_test.rb +49 -0
- data/vendor/plugins/active_scaffold/test/bridges/validation_reflection_test.rb +57 -0
- data/vendor/plugins/active_scaffold/test/config/base_test.rb +15 -0
- data/vendor/plugins/active_scaffold/test/config/core_test.rb +58 -0
- data/vendor/plugins/active_scaffold/test/config/create_test.rb +9 -6
- data/vendor/plugins/active_scaffold/test/config/delete_test.rb +33 -0
- data/vendor/plugins/active_scaffold/test/config/field_search_test.rb +47 -0
- data/vendor/plugins/active_scaffold/test/config/list_test.rb +66 -11
- data/vendor/plugins/active_scaffold/test/config/nested_test.rb +62 -0
- data/vendor/plugins/active_scaffold/test/config/search_test.rb +60 -0
- data/vendor/plugins/active_scaffold/test/config/show_test.rb +43 -0
- data/vendor/plugins/active_scaffold/test/config/subform_test.rb +17 -0
- data/vendor/plugins/active_scaffold/test/config/update_test.rb +27 -4
- data/vendor/plugins/active_scaffold/test/data_structures/action_columns_test.rb +2 -8
- data/vendor/plugins/active_scaffold/test/data_structures/action_link_test.rb +11 -11
- data/vendor/plugins/active_scaffold/test/data_structures/action_links_test.rb +5 -5
- data/vendor/plugins/active_scaffold/test/data_structures/association_column_test.rb +4 -3
- data/vendor/plugins/active_scaffold/test/data_structures/column_test.rb +29 -5
- data/vendor/plugins/active_scaffold/test/data_structures/sorting_test.rb +31 -1
- data/vendor/plugins/active_scaffold/test/data_structures/standard_column_test.rb +3 -13
- data/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb +0 -11
- data/vendor/plugins/active_scaffold/test/extensions/{array.rb → array_test.rb} +0 -0
- data/vendor/plugins/active_scaffold/test/helpers/form_column_helpers_test.rb +31 -0
- data/vendor/plugins/active_scaffold/test/helpers/list_column_helpers_test.rb +42 -0
- data/vendor/plugins/active_scaffold/test/helpers/pagination_helpers_test.rb +59 -0
- data/vendor/plugins/active_scaffold/test/misc/active_record_permissions_test.rb +154 -0
- data/vendor/plugins/active_scaffold/test/misc/attribute_params_test.rb +146 -0
- data/vendor/plugins/active_scaffold/test/misc/configurable_test.rb +2 -2
- data/vendor/plugins/active_scaffold/test/misc/constraints_test.rb +26 -8
- data/vendor/plugins/active_scaffold/test/misc/finder_test.rb +41 -19
- data/vendor/plugins/active_scaffold/test/misc/lang_test.rb +5 -6
- data/vendor/plugins/active_scaffold/test/mock_app/app/controllers/application_controller.rb +10 -0
- data/vendor/plugins/active_scaffold/test/mock_app/app/helpers/application_helper.rb +3 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/boot.rb +110 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/environment.rb +43 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/environments/development.rb +17 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/environments/production.rb +28 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/environments/test.rb +28 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/initializers/backtrace_silencers.rb +7 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/initializers/inflections.rb +10 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/initializers/mime_types.rb +5 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/initializers/new_rails_defaults.rb +19 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/initializers/session_store.rb +15 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/locales/en.yml +5 -0
- data/vendor/plugins/active_scaffold/test/mock_app/config/routes.rb +43 -0
- data/vendor/plugins/active_scaffold/test/mock_app/db/test.sqlite3 +1 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/blank.html +33 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/DO_NOT_EDIT +2 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/add.gif +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/arrow_down.gif +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/arrow_up.gif +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/close.gif +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/cross.png +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/indicator-small.gif +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/indicator.gif +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/images/active_scaffold/default/magnifier.png +0 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT +2 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js +532 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js +867 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js +117 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js +370 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT +2 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css +35 -0
- data/vendor/plugins/active_scaffold/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +845 -0
- data/vendor/plugins/active_scaffold/test/model_stub.rb +17 -1
- data/vendor/plugins/active_scaffold/test/test_helper.rb +31 -5
- data/vendor/plugins/active_scaffold/uninstall.rb +2 -1
- data/vendor/plugins/active_scaffold_form_observation/init.rb +1 -1
- data/vendor/plugins/active_scaffold_form_observation/lib/active_scaffold_form_observation.rb +1 -2
- data/vendor/plugins/active_scaffold_full_refresh/init.rb +2 -0
- data/vendor/plugins/active_scaffold_full_refresh/lib/active_scaffold_full_refresh.rb +29 -0
- data/vendor/plugins/acts_as_money/{tasks → lib/tasks}/money_tasks.rake +0 -0
- metadata +668 -563
- data/app/model_views/client_accounting.rb +0 -5
- data/app/model_views/invoices_with_total.rb +0 -41
- data/app/views/admin/activities/_adjustment_column.rhtml +0 -23
- data/app/views/admin/activities_with_prices/move_to_invoice.rjs +0 -9
- data/app/views/notifier/invoice_available.html.rhtml +0 -5
- data/public/javascripts/prototype.js-1.6.0.3 +0 -4320
- data/test/functional/admin/activities_controller_test.rb +0 -8
- data/test/functional/admin/adjustments_controller_test.rb +0 -8
- data/test/functional/admin/client_accounting_controller_test.rb +0 -8
- data/test/functional/admin/client_financial_transactions_controller_test.rb +0 -8
- data/test/functional/admin/client_representatives_controller_test.rb +0 -8
- data/test/functional/admin/clients_controller_test.rb +0 -8
- data/test/functional/admin/employee_client_labor_rate_controller_test.rb +0 -8
- data/test/functional/admin/employees/slimtimer_controller_test.rb +0 -8
- data/test/functional/admin/employees_controller_test.rb +0 -8
- data/test/functional/admin/invoices_controller_test.rb +0 -8
- data/test/functional/admin/labors_controller_test.rb +0 -8
- data/test/functional/admin/materials_controller_test.rb +0 -8
- data/test/functional/admin/payments_controller_test.rb +0 -8
- data/test/functional/admin/proposals_controller_test.rb +0 -8
- data/test/functional/admin/settings_controller_test.rb +0 -8
- data/test/functional/authentication_controller_test.rb +0 -8
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_association_record.html.erb +0 -27
- data/vendor/plugins/active_scaffold/frontends/default/views/_live_search.html.erb +0 -25
- data/vendor/plugins/active_scaffold/frontends/default/views/form_messages_on_create.js.rjs +0 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/form_messages_on_update.js.rjs +0 -2
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/live_search.rb +0 -46
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/live_search.rb +0 -52
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/en.rb +0 -66
- data/vendor/plugins/active_scaffold/lib/extensions/name_option_for_datetime.rb +0 -12
- data/vendor/plugins/active_scaffold/test/misc/active_record_permissions.rb +0 -154
@@ -0,0 +1,35 @@
|
|
1
|
+
/* IE hacks
|
2
|
+
==================================== */
|
3
|
+
|
4
|
+
* html .active-scaffold-header,
|
5
|
+
.active-scaffold li.form-element,
|
6
|
+
.active-scaffold li.sub-section {
|
7
|
+
zoom: 1;
|
8
|
+
}
|
9
|
+
|
10
|
+
* html .active-scaffold td .messages-container {
|
11
|
+
border-top: solid 1px #DAFFCD;
|
12
|
+
}
|
13
|
+
|
14
|
+
* html .active-scaffold-header div.actions a.show_search {
|
15
|
+
background-image: none;
|
16
|
+
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../../images/active_scaffold/default/magnifier.png', sizingMethod='crop');
|
17
|
+
}
|
18
|
+
|
19
|
+
* html .active-scaffold .sub-form .association-record a.destroy {
|
20
|
+
background-image: none;
|
21
|
+
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../../images/active_scaffold/default/cross.png', sizingMethod='crop');
|
22
|
+
}
|
23
|
+
|
24
|
+
.active-scaffold-header div.actions a.disabled {
|
25
|
+
filter: alpha(opacity=50);
|
26
|
+
}
|
27
|
+
|
28
|
+
.active-scaffold .show-view dd,
|
29
|
+
.active-scaffold li.form-element dd {
|
30
|
+
float: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
.active-scaffold li.form-element dt {
|
34
|
+
padding: 4px 0;
|
35
|
+
}
|
@@ -0,0 +1,845 @@
|
|
1
|
+
/*
|
2
|
+
ActiveScaffold
|
3
|
+
(c) 2007 Richard White <rrwhite@gmail.com>
|
4
|
+
|
5
|
+
ActiveScaffold is freely distributable under the terms of an MIT-style license.
|
6
|
+
|
7
|
+
For details, see the ActiveScaffold web site: http://www.activescaffold.com/
|
8
|
+
*/
|
9
|
+
|
10
|
+
.active-scaffold form,
|
11
|
+
.active-scaffold table,
|
12
|
+
.active-scaffold p,
|
13
|
+
.active-scaffold div,
|
14
|
+
.active-scaffold fieldset {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.active-scaffold {
|
20
|
+
margin: 5px 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
.active-scaffold table {
|
24
|
+
width: 100%;
|
25
|
+
border-collapse: separate;
|
26
|
+
}
|
27
|
+
|
28
|
+
.active-scaffold a,
|
29
|
+
.active-scaffold a:visited {
|
30
|
+
color: #06c;
|
31
|
+
text-decoration: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
.active-scaffold a.disabled {
|
35
|
+
color: #999;
|
36
|
+
}
|
37
|
+
|
38
|
+
.active-scaffold a:hover {
|
39
|
+
background-color: #ff8;
|
40
|
+
}
|
41
|
+
|
42
|
+
.active-scaffold .clear-fix {
|
43
|
+
clear: both;
|
44
|
+
}
|
45
|
+
|
46
|
+
noscript.active-scaffold {
|
47
|
+
border-left: solid 5px #f66;
|
48
|
+
background-color: #fbb;
|
49
|
+
font-size: 11px;
|
50
|
+
font-weight: bold;
|
51
|
+
padding: 5px 20px 5px 5px;
|
52
|
+
color: #333;
|
53
|
+
}
|
54
|
+
|
55
|
+
.active-scaffold .mark_record_column {
|
56
|
+
width: 1px;
|
57
|
+
}
|
58
|
+
|
59
|
+
/* Header
|
60
|
+
======================== */
|
61
|
+
|
62
|
+
.active-scaffold-header {
|
63
|
+
position: relative;
|
64
|
+
}
|
65
|
+
|
66
|
+
.blue-theme .active-scaffold-header {
|
67
|
+
background-color: #005CB8;
|
68
|
+
}
|
69
|
+
|
70
|
+
.active-scaffold-header h2 {
|
71
|
+
padding: 2px 0px;
|
72
|
+
margin: 0;
|
73
|
+
color: #555;
|
74
|
+
font: bold 160% arial, sans-serif;
|
75
|
+
}
|
76
|
+
|
77
|
+
.blue-theme .active-scaffold-header h2 {
|
78
|
+
color: #fff;
|
79
|
+
padding: 2px 5px 4px 5px;
|
80
|
+
}
|
81
|
+
|
82
|
+
.active-scaffold-header div.actions a {
|
83
|
+
float: right;
|
84
|
+
font: bold 14px arial;
|
85
|
+
letter-spacing: -1px;
|
86
|
+
text-decoration: none;
|
87
|
+
padding: 1px 2px;
|
88
|
+
white-space: nowrap;
|
89
|
+
margin-left: 5px;
|
90
|
+
background-position: 1px 50%;
|
91
|
+
background-repeat: no-repeat;
|
92
|
+
}
|
93
|
+
|
94
|
+
.blue-theme .active-scaffold-header div.actions a {
|
95
|
+
color: #fff;
|
96
|
+
}
|
97
|
+
|
98
|
+
.active-scaffold-header div.actions a.disabled {
|
99
|
+
color: #666;
|
100
|
+
opacity: 0.5;
|
101
|
+
}
|
102
|
+
|
103
|
+
.blue-theme .active-scaffold-header div.actions a.disabled {
|
104
|
+
color: #fff;
|
105
|
+
opacity: 0.5;
|
106
|
+
}
|
107
|
+
|
108
|
+
.active-scaffold-header div.actions a.new,
|
109
|
+
.active-scaffold-header div.actions a.new_existing,
|
110
|
+
.active-scaffold-header div.actions a.show_search {
|
111
|
+
padding-left: 19px;
|
112
|
+
background-position: 1px 50%;
|
113
|
+
background-repeat: no-repeat;
|
114
|
+
}
|
115
|
+
|
116
|
+
.active-scaffold-header div.actions a.new,
|
117
|
+
.active-scaffold-header div.actions a.new_existing {
|
118
|
+
background-image: url(../../../images/active_scaffold/default/add.gif);
|
119
|
+
}
|
120
|
+
|
121
|
+
.active-scaffold-header div.actions a.show_search {
|
122
|
+
background-image: url(../../../images/active_scaffold/default/magnifier.png);
|
123
|
+
}
|
124
|
+
|
125
|
+
.blue-theme .active-scaffold-header div.actions a:hover {
|
126
|
+
background-color: #378CDF;
|
127
|
+
}
|
128
|
+
|
129
|
+
.active-scaffold-header div.actions a.disabled:hover {
|
130
|
+
background-color: transparent;
|
131
|
+
cursor: default;
|
132
|
+
}
|
133
|
+
|
134
|
+
.active-scaffold-header div.actions {
|
135
|
+
position: absolute;
|
136
|
+
right: 5px;
|
137
|
+
top: 5px;
|
138
|
+
text-align: right;
|
139
|
+
}
|
140
|
+
|
141
|
+
/* Table :: Column Headers
|
142
|
+
============================= */
|
143
|
+
|
144
|
+
.active-scaffold th {
|
145
|
+
background-color: #555;
|
146
|
+
text-align: left;
|
147
|
+
}
|
148
|
+
|
149
|
+
.active-scaffold th a,
|
150
|
+
.active-scaffold th p {
|
151
|
+
font: bold 11px arial, sans-serif;
|
152
|
+
display: block;
|
153
|
+
background-color: #555;
|
154
|
+
}
|
155
|
+
|
156
|
+
.active-scaffold th a, .active-scaffold th a:visited {
|
157
|
+
color: #fff;
|
158
|
+
padding: 2px 15px 2px 5px;
|
159
|
+
}
|
160
|
+
|
161
|
+
.active-scaffold th p {
|
162
|
+
color: #eee;
|
163
|
+
padding: 2px 5px;
|
164
|
+
}
|
165
|
+
|
166
|
+
.active-scaffold th a:hover {
|
167
|
+
background-color: #000;
|
168
|
+
color: #ff8;
|
169
|
+
}
|
170
|
+
|
171
|
+
.active-scaffold th.sorted {
|
172
|
+
background-color: #333;
|
173
|
+
}
|
174
|
+
|
175
|
+
.active-scaffold th.asc a,
|
176
|
+
.active-scaffold th.asc a:hover {
|
177
|
+
background: #333 url(../../../images/active_scaffold/default/arrow_up.gif) right 50% no-repeat;
|
178
|
+
}
|
179
|
+
|
180
|
+
.active-scaffold th.desc a,
|
181
|
+
.active-scaffold th.desc a:hover {
|
182
|
+
background: #333 url(../../../images/active_scaffold/default/arrow_down.gif) right 50% no-repeat;
|
183
|
+
}
|
184
|
+
|
185
|
+
.active-scaffold th.loading a,
|
186
|
+
.active-scaffold th.loading a:hover {
|
187
|
+
background: #333 url(../../../images/active_scaffold/default/indicator-small.gif) right 50% no-repeat;
|
188
|
+
}
|
189
|
+
|
190
|
+
/* Table :: Record Rows
|
191
|
+
============================= */
|
192
|
+
|
193
|
+
.active-scaffold tr.record {
|
194
|
+
background-color: #E6F2FF;
|
195
|
+
}
|
196
|
+
.active-scaffold tr.record td {
|
197
|
+
padding: 5px 4px;
|
198
|
+
color: #333;
|
199
|
+
font-family: Verdana, sans-serif;
|
200
|
+
font-size: 11px;
|
201
|
+
border-bottom: solid 1px #C5DBF7;
|
202
|
+
border-left: solid 1px #C5DBF7;
|
203
|
+
}
|
204
|
+
|
205
|
+
.active-scaffold tr.even-record {
|
206
|
+
background-color: #fff;
|
207
|
+
}
|
208
|
+
.active-scaffold tr.even-record td {
|
209
|
+
border-left-color: #ddd;
|
210
|
+
}
|
211
|
+
|
212
|
+
.active-scaffold tr.record td.sorted {
|
213
|
+
background-color: #B9DCFF;
|
214
|
+
border-bottom-color: #AFD0F5;
|
215
|
+
}
|
216
|
+
|
217
|
+
.active-scaffold tr.even-record td.sorted {
|
218
|
+
background-color: #E6F2FF;
|
219
|
+
border-bottom-color: #AFD0F5;
|
220
|
+
}
|
221
|
+
|
222
|
+
.active-scaffold tbody.records td.empty {
|
223
|
+
color: #999;
|
224
|
+
text-align: center;
|
225
|
+
}
|
226
|
+
|
227
|
+
.active-scaffold td.numeric,
|
228
|
+
.active-scaffold-calculations td {
|
229
|
+
text-align: right;
|
230
|
+
}
|
231
|
+
|
232
|
+
/* Table :: Actions (Edit, Delete)
|
233
|
+
============================= */
|
234
|
+
|
235
|
+
.active-scaffold tr.record td.actions {
|
236
|
+
border-right: solid 1px #ccc;
|
237
|
+
padding: 0;
|
238
|
+
min-width: 1%;
|
239
|
+
}
|
240
|
+
|
241
|
+
.active-scaffold tr.record td.actions table {
|
242
|
+
float: right;
|
243
|
+
width: auto;
|
244
|
+
margin-right: 5px;
|
245
|
+
}
|
246
|
+
|
247
|
+
.active-scaffold tr.record td.actions table td {
|
248
|
+
border: none;
|
249
|
+
text-align: right;
|
250
|
+
padding: 0 2px;
|
251
|
+
}
|
252
|
+
|
253
|
+
.active-scaffold tr.record td.actions a {
|
254
|
+
font: bold 11px verdana, sans-serif;
|
255
|
+
letter-spacing: -1px;
|
256
|
+
padding: 2px;
|
257
|
+
margin: 0 2px;
|
258
|
+
line-height: 16px;
|
259
|
+
white-space: nowrap;
|
260
|
+
}
|
261
|
+
|
262
|
+
/* Table :: Inline Adapter
|
263
|
+
============================= */
|
264
|
+
|
265
|
+
.active-scaffold .view {
|
266
|
+
background-color: #DAFFCD;
|
267
|
+
padding: 4px;
|
268
|
+
border: solid 1px #7FcF00;
|
269
|
+
}
|
270
|
+
|
271
|
+
.active-scaffold tbody.records td.inline-adapter-cell .view {
|
272
|
+
border-top: none;
|
273
|
+
}
|
274
|
+
|
275
|
+
.active-scaffold .before-header td.inline-adapter-cell .view {
|
276
|
+
border-bottom: none;
|
277
|
+
}
|
278
|
+
|
279
|
+
.active-scaffold a.inline-adapter-close {
|
280
|
+
float: right;
|
281
|
+
text-indent: -4000px;
|
282
|
+
width: 16px;
|
283
|
+
height: 17px;
|
284
|
+
background: url(../../../images/active_scaffold/default/close.gif) 0 0 no-repeat;
|
285
|
+
}
|
286
|
+
|
287
|
+
/* Nested
|
288
|
+
======================== */
|
289
|
+
|
290
|
+
.blue-theme .active-scaffold .active-scaffold-header,
|
291
|
+
.blue-theme .active-scaffold .active-scaffold-footer {
|
292
|
+
background-color: #1F7F00;
|
293
|
+
|
294
|
+
background: transparent;
|
295
|
+
}
|
296
|
+
|
297
|
+
.active-scaffold .active-scaffold .active-scaffold-header {
|
298
|
+
margin-right: 25px;
|
299
|
+
}
|
300
|
+
|
301
|
+
.active-scaffold .active-scaffold .active-scaffold-header h2 {
|
302
|
+
font-size: 12px;
|
303
|
+
font-weight: bold;
|
304
|
+
}
|
305
|
+
|
306
|
+
.blue-theme .active-scaffold .active-scaffold-header h2,
|
307
|
+
.active-scaffold .active-scaffold .active-scaffold-footer {
|
308
|
+
color: #444;
|
309
|
+
}
|
310
|
+
|
311
|
+
.active-scaffold .active-scaffold .active-scaffold-header div.actions {
|
312
|
+
top: 0px;
|
313
|
+
right: 0px;
|
314
|
+
}
|
315
|
+
|
316
|
+
.active-scaffold .active-scaffold .active-scaffold-header div.actions a {
|
317
|
+
font: bold 11px verdana, sans-serif;
|
318
|
+
}
|
319
|
+
|
320
|
+
.blue-theme .active-scaffold .active-scaffold-header div.actions a,
|
321
|
+
.blue-theme .active-scaffold .active-scaffold-header div.actions a:visited {
|
322
|
+
color: #06c;
|
323
|
+
}
|
324
|
+
|
325
|
+
.blue-theme .active-scaffold .active-scaffold-header div.actions a:hover {
|
326
|
+
background-color: #ff8;
|
327
|
+
}
|
328
|
+
|
329
|
+
.active-scaffold .active-scaffold .view {
|
330
|
+
background-color: transparent;
|
331
|
+
padding: 0px;
|
332
|
+
border: none;
|
333
|
+
}
|
334
|
+
|
335
|
+
.active-scaffold .active-scaffold td {
|
336
|
+
background-color: #ECFFE7;
|
337
|
+
border-bottom: solid 1px #CDF7C5;
|
338
|
+
border-left: solid 1px #CDF7C5;
|
339
|
+
}
|
340
|
+
|
341
|
+
.active-scaffold .active-scaffold td.inline-adapter-cell {
|
342
|
+
background-color: #FFFFBB;
|
343
|
+
padding: 4px;
|
344
|
+
border: solid 1px #DDDF37;
|
345
|
+
border-top: none;
|
346
|
+
}
|
347
|
+
|
348
|
+
.active-scaffold .active-scaffold .active-scaffold td.inline-adapter-cell {
|
349
|
+
background-color: #DAFFCD;
|
350
|
+
padding: 4px;
|
351
|
+
border: solid 1px #7FcF00;
|
352
|
+
border-top: none;
|
353
|
+
}
|
354
|
+
|
355
|
+
.active-scaffold .active-scaffold .active-scaffold-footer {
|
356
|
+
font-size: 11px;
|
357
|
+
}
|
358
|
+
|
359
|
+
/* Footer
|
360
|
+
========================== */
|
361
|
+
|
362
|
+
.active-scaffold-calculations td {
|
363
|
+
background-color: #eee;
|
364
|
+
border-top: 2px solid #005CB8;
|
365
|
+
font: bold 12px arial, sans-serif;
|
366
|
+
}
|
367
|
+
|
368
|
+
.active-scaffold .active-scaffold-footer {
|
369
|
+
padding: 3px 0px 2px 0px;
|
370
|
+
border-bottom: none;
|
371
|
+
font: bold 12px arial, sans-serif;
|
372
|
+
}
|
373
|
+
|
374
|
+
.blue-theme .active-scaffold-footer {
|
375
|
+
background-color: #005CB8;
|
376
|
+
color: #ccc;
|
377
|
+
}
|
378
|
+
|
379
|
+
.active-scaffold-footer .active-scaffold-pagination {
|
380
|
+
float: right;
|
381
|
+
white-space: nowrap;
|
382
|
+
margin-right: 5px;
|
383
|
+
}
|
384
|
+
|
385
|
+
.blue-theme .active-scaffold-footer .active-scaffold-records {
|
386
|
+
margin-left: 5px;
|
387
|
+
}
|
388
|
+
|
389
|
+
.active-scaffold-footer a {
|
390
|
+
text-decoration: none;
|
391
|
+
letter-spacing: 0;
|
392
|
+
padding: 0 2px;
|
393
|
+
margin: 0 -2px;
|
394
|
+
font: bold 12px arial, sans-serif;
|
395
|
+
}
|
396
|
+
|
397
|
+
.blue-theme .active-scaffold-footer a,
|
398
|
+
.blue-theme .active-scaffold-footer a:visited {
|
399
|
+
color: #fff;
|
400
|
+
}
|
401
|
+
|
402
|
+
.blue-theme .active-scaffold-footer a:hover {
|
403
|
+
background-color: #378CDF;
|
404
|
+
}
|
405
|
+
|
406
|
+
.active-scaffold-footer .next {
|
407
|
+
margin-left: 0;
|
408
|
+
padding-left: 5px;
|
409
|
+
border-left: solid 1px #ccc;
|
410
|
+
}
|
411
|
+
|
412
|
+
.active-scaffold-footer .previous {
|
413
|
+
margin-right: 0;
|
414
|
+
padding-right: 5px;
|
415
|
+
border-right: solid 1px #ccc;
|
416
|
+
}
|
417
|
+
|
418
|
+
/* Messages
|
419
|
+
========================= */
|
420
|
+
|
421
|
+
.active-scaffold .messages-container,
|
422
|
+
.active-scaffold .active-scaffold .messages-container{
|
423
|
+
padding: 0;
|
424
|
+
margin: 0 7px;
|
425
|
+
border: none;
|
426
|
+
}
|
427
|
+
|
428
|
+
.active-scaffold .empty-message, .active-scaffold .filtered-message {
|
429
|
+
background-color: #e8e8e8;
|
430
|
+
padding: 4px;
|
431
|
+
text-align: center;
|
432
|
+
color: #666;
|
433
|
+
}
|
434
|
+
|
435
|
+
.active-scaffold .message {
|
436
|
+
font-size: 11px;
|
437
|
+
font-weight: bold;
|
438
|
+
padding: 5px 20px 5px 5px;
|
439
|
+
color: #333;
|
440
|
+
position: relative;
|
441
|
+
margin: 2px 7px;
|
442
|
+
line-height: 12px;
|
443
|
+
}
|
444
|
+
|
445
|
+
.active-scaffold .message a {
|
446
|
+
position: absolute;
|
447
|
+
right: 10px;
|
448
|
+
top: 4px;
|
449
|
+
padding: 0;
|
450
|
+
font: bold 11px verdana, sans-serif;
|
451
|
+
letter-spacing: -1px;
|
452
|
+
}
|
453
|
+
|
454
|
+
.active-scaffold .messages-container .message {
|
455
|
+
margin: 0;
|
456
|
+
}
|
457
|
+
|
458
|
+
.active-scaffold .error-message {
|
459
|
+
border-left: solid 5px #f66;
|
460
|
+
background-color: #fbb;
|
461
|
+
}
|
462
|
+
|
463
|
+
.active-scaffold .warning-message {
|
464
|
+
border-left: solid 5px #ff6;
|
465
|
+
background-color: #ffb;
|
466
|
+
}
|
467
|
+
|
468
|
+
.active-scaffold .info-message {
|
469
|
+
border-left: solid 5px #66f;
|
470
|
+
background-color: #bbf;
|
471
|
+
}
|
472
|
+
|
473
|
+
/* Error Styling
|
474
|
+
========================== */
|
475
|
+
|
476
|
+
.active-scaffold .errorExplanation {
|
477
|
+
background-color: #fcc;
|
478
|
+
margin: 2px 0;
|
479
|
+
border: solid 1px #f66;
|
480
|
+
}
|
481
|
+
|
482
|
+
.active-scaffold fieldset {
|
483
|
+
clear: both;
|
484
|
+
}
|
485
|
+
|
486
|
+
.active-scaffold .errorExplanation h2 {
|
487
|
+
padding: 2px 5px;
|
488
|
+
color: #333;
|
489
|
+
font-size: 11px;
|
490
|
+
margin: 0;
|
491
|
+
letter-spacing: 0;
|
492
|
+
font-family: Verdana;
|
493
|
+
background-color: #f66;
|
494
|
+
}
|
495
|
+
|
496
|
+
.active-scaffold .errorExplanation ul {
|
497
|
+
margin: 0;
|
498
|
+
padding: 0 2px 4px 25px;
|
499
|
+
list-style: disc;
|
500
|
+
}
|
501
|
+
|
502
|
+
.active-scaffold .errorExplanation p {
|
503
|
+
font-size: 11px;
|
504
|
+
padding: 2px 5px;
|
505
|
+
font-family: Verdana;
|
506
|
+
margin: 0;
|
507
|
+
}
|
508
|
+
|
509
|
+
.active-scaffold .errorExplanation ul li {
|
510
|
+
font: bold 11px verdana;
|
511
|
+
letter-spacing: -1px;
|
512
|
+
margin: 0;
|
513
|
+
padding: 0;
|
514
|
+
background-color: transparent;
|
515
|
+
}
|
516
|
+
|
517
|
+
/* Loading Indicators
|
518
|
+
============================== */
|
519
|
+
|
520
|
+
.active-scaffold .loading-indicator {
|
521
|
+
vertical-align: text-bottom;
|
522
|
+
width: 16px;
|
523
|
+
margin: 0;
|
524
|
+
}
|
525
|
+
|
526
|
+
.active-scaffold .active-scaffold-header .loading-indicator {
|
527
|
+
margin-top: 3px;
|
528
|
+
}
|
529
|
+
|
530
|
+
/* Show
|
531
|
+
============================= */
|
532
|
+
|
533
|
+
.active-scaffold .show-view dl {
|
534
|
+
margin-left: 5px;
|
535
|
+
}
|
536
|
+
.active-scaffold .show-view dl dl {
|
537
|
+
margin-left: 0px;
|
538
|
+
}
|
539
|
+
|
540
|
+
.active-scaffold .show-view dt {
|
541
|
+
width: 12em;
|
542
|
+
float: left;
|
543
|
+
clear: left;
|
544
|
+
font: normal 11px verdana, sans-serif;
|
545
|
+
color: #555;
|
546
|
+
line-height: 16px;
|
547
|
+
}
|
548
|
+
|
549
|
+
.active-scaffold .show-view dd {
|
550
|
+
float: left;
|
551
|
+
font: bold 14px arial;
|
552
|
+
padding-left: 5px;
|
553
|
+
margin-bottom: 5px;
|
554
|
+
}
|
555
|
+
|
556
|
+
/* Form
|
557
|
+
============================== */
|
558
|
+
|
559
|
+
.active-scaffold dl {
|
560
|
+
margin: 0;
|
561
|
+
}
|
562
|
+
|
563
|
+
.active-scaffold .submit {
|
564
|
+
font-weight: bold;
|
565
|
+
font-size: 14px;
|
566
|
+
font-family: Arial, sans-serif;
|
567
|
+
letter-spacing: 0;
|
568
|
+
margin: 0;
|
569
|
+
margin-top: 5px;
|
570
|
+
}
|
571
|
+
|
572
|
+
.active-scaffold form p {
|
573
|
+
clear: both;
|
574
|
+
}
|
575
|
+
|
576
|
+
.active-scaffold fieldset {
|
577
|
+
border: none;
|
578
|
+
}
|
579
|
+
|
580
|
+
.active-scaffold h4,
|
581
|
+
.active-scaffold h5 {
|
582
|
+
padding: 2px;
|
583
|
+
margin: 0;
|
584
|
+
text-transform: none;
|
585
|
+
color: #1F7F00;
|
586
|
+
letter-spacing: -1px;
|
587
|
+
font: bold 16px arial;
|
588
|
+
}
|
589
|
+
|
590
|
+
.active-scaffold h5 {
|
591
|
+
padding: 0;
|
592
|
+
margin: 5px 0 2px 0;
|
593
|
+
font-size: 14px;
|
594
|
+
letter-spacing: 0;
|
595
|
+
}
|
596
|
+
|
597
|
+
.active-scaffold ol {
|
598
|
+
clear: both;
|
599
|
+
float: none;
|
600
|
+
padding: 2px;
|
601
|
+
margin-left: 5px;
|
602
|
+
list-style: none;
|
603
|
+
}
|
604
|
+
|
605
|
+
.active-scaffold p.form-footer {
|
606
|
+
clear: both;
|
607
|
+
}
|
608
|
+
|
609
|
+
.active-scaffold a.cancel,
|
610
|
+
.active-scaffold p.form-footer a {
|
611
|
+
font: bold 14px arial, sans-serif;
|
612
|
+
letter-spacing: 0;
|
613
|
+
}
|
614
|
+
|
615
|
+
/* Form :: Fields
|
616
|
+
============================== */
|
617
|
+
|
618
|
+
.active-scaffold li.form-element {
|
619
|
+
clear: both;
|
620
|
+
padding-top: 2px;
|
621
|
+
}
|
622
|
+
|
623
|
+
.active-scaffold label {
|
624
|
+
font: normal 11px verdana, sans-serif;
|
625
|
+
color: #555;
|
626
|
+
}
|
627
|
+
|
628
|
+
.active-scaffold li.form-element dt {
|
629
|
+
float: left;
|
630
|
+
width: 12em;
|
631
|
+
padding: 6px 0;
|
632
|
+
}
|
633
|
+
|
634
|
+
.active-scaffold li.form-element dd {
|
635
|
+
float: left;
|
636
|
+
}
|
637
|
+
|
638
|
+
.active-scaffold .form dd {
|
639
|
+
margin: 0;
|
640
|
+
}
|
641
|
+
|
642
|
+
|
643
|
+
.active-scaffold .description {
|
644
|
+
color: #999;
|
645
|
+
font-size: 10px;
|
646
|
+
margin-left: 5px;
|
647
|
+
}
|
648
|
+
|
649
|
+
.active-scaffold .required label {
|
650
|
+
font-weight: bold;
|
651
|
+
}
|
652
|
+
|
653
|
+
.active-scaffold label.example {
|
654
|
+
font-size: 11px;
|
655
|
+
font-family: arial;
|
656
|
+
color: #888;
|
657
|
+
}
|
658
|
+
|
659
|
+
.active-scaffold input.text-input,
|
660
|
+
.active-scaffold select {
|
661
|
+
font: bold 16px arial;
|
662
|
+
letter-spacing: -1px;
|
663
|
+
border: solid 1px #1F7F00;
|
664
|
+
}
|
665
|
+
|
666
|
+
.active-scaffold input.text-input {
|
667
|
+
padding: 2px;
|
668
|
+
}
|
669
|
+
|
670
|
+
.active-scaffold .fieldWithErrors input,
|
671
|
+
.active-scaffold .fieldWithErrors textarea,
|
672
|
+
.active-scaffold .fieldWithErrors select {
|
673
|
+
border: solid 1px #f00;
|
674
|
+
}
|
675
|
+
|
676
|
+
.active-scaffold select {
|
677
|
+
padding: 1px;
|
678
|
+
}
|
679
|
+
|
680
|
+
.active-scaffold input.example {
|
681
|
+
color: #aaa;
|
682
|
+
}
|
683
|
+
|
684
|
+
.active-scaffold select:focus,
|
685
|
+
.active-scaffold input.text-input:focus {
|
686
|
+
background-color: #ffc;
|
687
|
+
}
|
688
|
+
|
689
|
+
.active-scaffold textarea {
|
690
|
+
font-family: Arial, sans-serif;
|
691
|
+
font-size: 12px;
|
692
|
+
padding: 1px;
|
693
|
+
border: solid 1px #1F7F00;
|
694
|
+
}
|
695
|
+
|
696
|
+
.active-scaffold .checkbox-list {
|
697
|
+
padding-left: 0px;
|
698
|
+
}
|
699
|
+
|
700
|
+
.active-scaffold .checkbox-list li {
|
701
|
+
padding-right: 5px;
|
702
|
+
display: inline;
|
703
|
+
}
|
704
|
+
|
705
|
+
.active-scaffold .checkbox-list li label {
|
706
|
+
padding: 0 0 0 2px;
|
707
|
+
}
|
708
|
+
|
709
|
+
.active-scaffold .draggable-list {
|
710
|
+
float: left;
|
711
|
+
width: 300px;
|
712
|
+
margin-right: 15px;
|
713
|
+
min-height: 30px;
|
714
|
+
max-height: 100px;
|
715
|
+
overflow: auto;
|
716
|
+
background-color: #FFFF88;
|
717
|
+
}
|
718
|
+
|
719
|
+
.active-scaffold .draggable-list.hover {
|
720
|
+
opacity: 0.5;
|
721
|
+
}
|
722
|
+
|
723
|
+
.active-scaffold .draggable-list.selected {
|
724
|
+
background-color: #7FCF00;
|
725
|
+
}
|
726
|
+
|
727
|
+
.active-scaffold .draggable-list li {
|
728
|
+
display: block;
|
729
|
+
}
|
730
|
+
|
731
|
+
.active-scaffold .draggable-list input {
|
732
|
+
display: none;
|
733
|
+
}
|
734
|
+
|
735
|
+
/* Form :: Sub-Sections
|
736
|
+
============================== */
|
737
|
+
|
738
|
+
.active-scaffold li.sub-section {
|
739
|
+
clear: left;
|
740
|
+
padding: 5px 0;
|
741
|
+
}
|
742
|
+
|
743
|
+
/* Form :: Association Sub-Forms
|
744
|
+
============================== */
|
745
|
+
|
746
|
+
.active-scaffold .sub-form {
|
747
|
+
float: left;
|
748
|
+
clear: left;
|
749
|
+
padding: 5px 0;
|
750
|
+
padding-left: 5px;
|
751
|
+
}
|
752
|
+
|
753
|
+
.active-scaffold .sub-form h5 {
|
754
|
+
margin-left: -5px;
|
755
|
+
}
|
756
|
+
|
757
|
+
.active-scaffold .sub-form table,
|
758
|
+
.active-scaffold .sub-form table td {
|
759
|
+
width: auto;
|
760
|
+
background: none;
|
761
|
+
}
|
762
|
+
|
763
|
+
.active-scaffold .sub-form table th {
|
764
|
+
font: normal 10px verdana, sans-serif;
|
765
|
+
color: #555;
|
766
|
+
padding: 0 5px 0 1px;
|
767
|
+
background: none;
|
768
|
+
}
|
769
|
+
|
770
|
+
.active-scaffold .horizontal-sub-form td label {
|
771
|
+
display: none;
|
772
|
+
}
|
773
|
+
|
774
|
+
.active-scaffold .sub-form .checkbox-list {
|
775
|
+
padding: 0 2px 2px 2px;
|
776
|
+
background-color: #fff;
|
777
|
+
border: solid 1px #1F7F00;
|
778
|
+
}
|
779
|
+
|
780
|
+
.active-scaffold .sub-form .checkbox-list label {
|
781
|
+
display: block;
|
782
|
+
}
|
783
|
+
|
784
|
+
.active-scaffold .sub-form table td {
|
785
|
+
border: none;
|
786
|
+
background-color: transparent;
|
787
|
+
padding: 1px;
|
788
|
+
vertical-align: top;
|
789
|
+
color: #999;
|
790
|
+
}
|
791
|
+
|
792
|
+
.active-scaffold .sub-form .actions {
|
793
|
+
vertical-align: middle;
|
794
|
+
background-color: transparent;
|
795
|
+
clear: left;
|
796
|
+
}
|
797
|
+
|
798
|
+
.active-scaffold .sub-form .association-record a.destroy {
|
799
|
+
font-weight: bold;
|
800
|
+
display: block;
|
801
|
+
height: 16px;
|
802
|
+
padding: 0;
|
803
|
+
width: 16px;
|
804
|
+
text-indent: -4000px;
|
805
|
+
background: url(../../../images/active_scaffold/default/cross.png) 0 0 no-repeat;
|
806
|
+
}
|
807
|
+
|
808
|
+
.active-scaffold .sub-form .locked a.destroy {
|
809
|
+
display: none;
|
810
|
+
}
|
811
|
+
|
812
|
+
.active-scaffold .sub-form .association-record a {
|
813
|
+
font: bold 12px arial;
|
814
|
+
}
|
815
|
+
|
816
|
+
.active-scaffold .sub-form input.text-input,
|
817
|
+
.active-scaffold .sub-form select {
|
818
|
+
letter-spacing: 0;
|
819
|
+
font: bold 12px arial;
|
820
|
+
}
|
821
|
+
|
822
|
+
.active-scaffold .sub-form .footer-wrapper {
|
823
|
+
margin-top: 3px;
|
824
|
+
margin-right: 10px;
|
825
|
+
}
|
826
|
+
|
827
|
+
.active-scaffold .sub-form .footer {
|
828
|
+
color: #999;
|
829
|
+
padding: 3px 5px;
|
830
|
+
}
|
831
|
+
|
832
|
+
.active-scaffold .sub-form .footer select,
|
833
|
+
.active-scaffold .sub-form .footer input {
|
834
|
+
font-weight: bold;
|
835
|
+
font-size: 12px;
|
836
|
+
padding: 0;
|
837
|
+
}
|
838
|
+
|
839
|
+
.active-scaffold a.visibility-toggle {
|
840
|
+
font-size: 100%;
|
841
|
+
}
|
842
|
+
|
843
|
+
.active-scaffold-found {
|
844
|
+
float:left;
|
845
|
+
}
|