netzke-basepack-zh 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.autotest +1 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.rdoc +445 -0
- data/LICENSE +1 -0
- data/README.md +94 -0
- data/Rakefile +44 -0
- data/TODO.rdoc +8 -0
- data/config/ci/before-travis.sh +28 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/javascripts/basepack.js +139 -0
- data/javascripts/xdatetime.js +196 -0
- data/lib/generators/netzke/basepack_generator.rb +10 -0
- data/lib/generators/netzke/templates/assets/ts-checkbox.gif +0 -0
- data/lib/generators/netzke/templates/create_netzke_field_lists.rb +18 -0
- data/lib/netzke-basepack.rb +26 -0
- data/lib/netzke/active_record.rb +20 -0
- data/lib/netzke/active_record/attributes.rb +256 -0
- data/lib/netzke/active_record/combobox_options.rb +16 -0
- data/lib/netzke/active_record/relation_extensions.rb +37 -0
- data/lib/netzke/basepack.rb +45 -0
- data/lib/netzke/basepack/accordion_panel.rb +39 -0
- data/lib/netzke/basepack/action_column.rb +68 -0
- data/lib/netzke/basepack/action_column/javascripts/action_column.js +61 -0
- data/lib/netzke/basepack/auth_app.rb +159 -0
- data/lib/netzke/basepack/basic_app.rb +7 -0
- data/lib/netzke/basepack/border_layout_panel.rb +53 -0
- data/lib/netzke/basepack/border_layout_panel/javascripts/border_layout_panel.js +40 -0
- data/lib/netzke/basepack/data_accessor.rb +53 -0
- data/lib/netzke/basepack/data_adapters/abstract_adapter.rb +164 -0
- data/lib/netzke/basepack/data_adapters/active_record_adapter.rb +279 -0
- data/lib/netzke/basepack/data_adapters/data_mapper_adapter.rb +264 -0
- data/lib/netzke/basepack/data_adapters/sequel_adapter.rb +260 -0
- data/lib/netzke/basepack/form_panel.rb +144 -0
- data/lib/netzke/basepack/form_panel/fields.rb +208 -0
- data/lib/netzke/basepack/form_panel/javascripts/comma_list_cbg.js +51 -0
- data/lib/netzke/basepack/form_panel/javascripts/form_panel.js +225 -0
- data/lib/netzke/basepack/form_panel/javascripts/misc.js +4 -0
- data/lib/netzke/basepack/form_panel/javascripts/n_radio_group.js +43 -0
- data/lib/netzke/basepack/form_panel/javascripts/readonly_mode.js +35 -0
- data/lib/netzke/basepack/form_panel/services.rb +142 -0
- data/lib/netzke/basepack/form_panel/stylesheets/readonly_mode.css +14 -0
- data/lib/netzke/basepack/grid_panel.rb +440 -0
- data/lib/netzke/basepack/grid_panel/columns.rb +394 -0
- data/lib/netzke/basepack/grid_panel/javascripts/advanced_search.js +27 -0
- data/lib/netzke/basepack/grid_panel/javascripts/check_column_fix.js +6 -0
- data/lib/netzke/basepack/grid_panel/javascripts/edit_in_form.js +51 -0
- data/lib/netzke/basepack/grid_panel/javascripts/event_handling.js +179 -0
- data/lib/netzke/basepack/grid_panel/javascripts/grid_panel.js +438 -0
- data/lib/netzke/basepack/grid_panel/javascripts/misc.js +4 -0
- data/lib/netzke/basepack/grid_panel/javascripts/rows-dd.js +281 -0
- data/lib/netzke/basepack/grid_panel/record_form_window.rb +41 -0
- data/lib/netzke/basepack/grid_panel/services.rb +235 -0
- data/lib/netzke/basepack/paging_form_panel.rb +72 -0
- data/lib/netzke/basepack/paging_form_panel/javascripts/paging_form_panel.js +76 -0
- data/lib/netzke/basepack/panel.rb +11 -0
- data/lib/netzke/basepack/query_builder.rb +107 -0
- data/lib/netzke/basepack/query_builder/javascripts/query_builder.js +153 -0
- data/lib/netzke/basepack/search_panel.rb +79 -0
- data/lib/netzke/basepack/search_panel/javascripts/condition_field.js +160 -0
- data/lib/netzke/basepack/search_panel/javascripts/search_panel.js +65 -0
- data/lib/netzke/basepack/search_window.rb +66 -0
- data/lib/netzke/basepack/simple_app.rb +104 -0
- data/lib/netzke/basepack/simple_app/javascripts/simple_app.js +64 -0
- data/lib/netzke/basepack/simple_app/javascripts/statusbar_ext.js +8 -0
- data/lib/netzke/basepack/tab_panel.rb +21 -0
- data/lib/netzke/basepack/tab_panel/javascripts/tab_panel.js +11 -0
- data/lib/netzke/basepack/version.rb +11 -0
- data/lib/netzke/basepack/window.rb +29 -0
- data/lib/netzke/basepack/window/javascripts/window.js +20 -0
- data/lib/netzke/basepack/wrap_lazy_loaded.rb +28 -0
- data/lib/netzke/basepack/wrapper.rb +28 -0
- data/lib/netzke/data_mapper.rb +18 -0
- data/lib/netzke/data_mapper/attributes.rb +273 -0
- data/lib/netzke/data_mapper/combobox_options.rb +11 -0
- data/lib/netzke/data_mapper/relation_extensions.rb +38 -0
- data/lib/netzke/sequel.rb +18 -0
- data/lib/netzke/sequel/attributes.rb +274 -0
- data/lib/netzke/sequel/combobox_options.rb +10 -0
- data/lib/netzke/sequel/relation_extensions.rb +40 -0
- data/lib/tasks/netzke_basepack_tasks.rake +4 -0
- data/locales/de.yml +79 -0
- data/locales/en.yml +79 -0
- data/netzke-basepack.gemspec +306 -0
- data/stylesheets/basepack.css +72 -0
- data/stylesheets/datetimefield.css +54 -0
- data/test/basepack_test_app/.gitignore +6 -0
- data/test/basepack_test_app/.rvmrc +1 -0
- data/test/basepack_test_app/Gemfile +59 -0
- data/test/basepack_test_app/Gemfile.lock +196 -0
- data/test/basepack_test_app/Guardfile +46 -0
- data/test/basepack_test_app/README +1 -0
- data/test/basepack_test_app/Rakefile +7 -0
- data/test/basepack_test_app/app/components/author_form.rb +32 -0
- data/test/basepack_test_app/app/components/author_grid.rb +3 -0
- data/test/basepack_test_app/app/components/book_form.rb +38 -0
- data/test/basepack_test_app/app/components/book_form_with_custom_fields.rb +21 -0
- data/test/basepack_test_app/app/components/book_form_with_defaults.rb +8 -0
- data/test/basepack_test_app/app/components/book_form_with_nested_attributes.rb +18 -0
- data/test/basepack_test_app/app/components/book_grid.rb +12 -0
- data/test/basepack_test_app/app/components/book_grid_filtering.rb +10 -0
- data/test/basepack_test_app/app/components/book_grid_loader.rb +24 -0
- data/test/basepack_test_app/app/components/book_grid_with_column_actions.rb +15 -0
- data/test/basepack_test_app/app/components/book_grid_with_custom_columns.rb +27 -0
- data/test/basepack_test_app/app/components/book_grid_with_default_values.rb +9 -0
- data/test/basepack_test_app/app/components/book_grid_with_extra_feedback.rb +8 -0
- data/test/basepack_test_app/app/components/book_grid_with_extra_filters.rb +14 -0
- data/test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb +13 -0
- data/test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb +15 -0
- data/test/basepack_test_app/app/components/book_grid_with_paging.rb +10 -0
- data/test/basepack_test_app/app/components/book_grid_with_persistence.rb +8 -0
- data/test/basepack_test_app/app/components/book_grid_with_scoped_authors.rb +8 -0
- data/test/basepack_test_app/app/components/book_grid_with_virtual_attributes.rb +21 -0
- data/test/basepack_test_app/app/components/book_paging_form_panel.rb +22 -0
- data/test/basepack_test_app/app/components/book_query_builder.rb +8 -0
- data/test/basepack_test_app/app/components/book_search_panel.rb +5 -0
- data/test/basepack_test_app/app/components/book_search_panel/javascripts/i18n_de.js +6 -0
- data/test/basepack_test_app/app/components/book_with_custom_primary_key_grid.rb +10 -0
- data/test/basepack_test_app/app/components/books_bound_to_author.rb +10 -0
- data/test/basepack_test_app/app/components/double_book_grid.rb +18 -0
- data/test/basepack_test_app/app/components/extras/book_presentation.rb +27 -0
- data/test/basepack_test_app/app/components/form_without_model.rb +21 -0
- data/test/basepack_test_app/app/components/generic_user_form.rb +12 -0
- data/test/basepack_test_app/app/components/lockable_book_form.rb +17 -0
- data/test/basepack_test_app/app/components/lockable_user_form.rb +7 -0
- data/test/basepack_test_app/app/components/paging_form_with_search.rb +40 -0
- data/test/basepack_test_app/app/components/simple_accordion.rb +11 -0
- data/test/basepack_test_app/app/components/simple_panel.rb +17 -0
- data/test/basepack_test_app/app/components/simple_tab_panel.rb +11 -0
- data/test/basepack_test_app/app/components/simple_window.rb +10 -0
- data/test/basepack_test_app/app/components/simple_wrapper.rb +7 -0
- data/test/basepack_test_app/app/components/some_accordion_panel.rb +22 -0
- data/test/basepack_test_app/app/components/some_auth_app.rb +32 -0
- data/test/basepack_test_app/app/components/some_border_layout.rb +28 -0
- data/test/basepack_test_app/app/components/some_simple_app.rb +35 -0
- data/test/basepack_test_app/app/components/some_tab_panel.rb +20 -0
- data/test/basepack_test_app/app/components/user_form.rb +25 -0
- data/test/basepack_test_app/app/components/user_form_with_default_fields.rb +8 -0
- data/test/basepack_test_app/app/components/user_grid.rb +8 -0
- data/test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb +18 -0
- data/test/basepack_test_app/app/components/window_component_loader.rb +27 -0
- data/test/basepack_test_app/app/controllers/application_controller.rb +9 -0
- data/test/basepack_test_app/app/controllers/components_controller.rb +10 -0
- data/test/basepack_test_app/app/controllers/welcome_controller.rb +9 -0
- data/test/basepack_test_app/app/helpers/application_helper.rb +8 -0
- data/test/basepack_test_app/app/helpers/embedded_components_helper.rb +2 -0
- data/test/basepack_test_app/app/models/address.rb +29 -0
- data/test/basepack_test_app/app/models/author.rb +38 -0
- data/test/basepack_test_app/app/models/book.rb +49 -0
- data/test/basepack_test_app/app/models/book_with_custom_primary_key.rb +26 -0
- data/test/basepack_test_app/app/models/role.rb +24 -0
- data/test/basepack_test_app/app/models/user.rb +29 -0
- data/test/basepack_test_app/app/presenters/forms/generic_user.rb +6 -0
- data/test/basepack_test_app/app/views/components/loadable_window.html.erb +9 -0
- data/test/basepack_test_app/app/views/components/simple_panel.html.erb +1 -0
- data/test/basepack_test_app/app/views/layouts/application.html.erb +12 -0
- data/test/basepack_test_app/app/views/layouts/components.html.erb +13 -0
- data/test/basepack_test_app/app/views/layouts/nested.html.erb +5 -0
- data/test/basepack_test_app/app/views/welcome/index.html.erb +10 -0
- data/test/basepack_test_app/config.ru +4 -0
- data/test/basepack_test_app/config/application.rb +57 -0
- data/test/basepack_test_app/config/boot.rb +13 -0
- data/test/basepack_test_app/config/cucumber.yml +8 -0
- data/test/basepack_test_app/config/database.yml.sample +41 -0
- data/test/basepack_test_app/config/database.yml.travis +15 -0
- data/test/basepack_test_app/config/environment.rb +6 -0
- data/test/basepack_test_app/config/environments/development.rb +22 -0
- data/test/basepack_test_app/config/environments/production.rb +49 -0
- data/test/basepack_test_app/config/environments/test.rb +35 -0
- data/test/basepack_test_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/basepack_test_app/config/initializers/data_mapper_logging.rb +3 -0
- data/test/basepack_test_app/config/initializers/inflections.rb +10 -0
- data/test/basepack_test_app/config/initializers/mime_types.rb +5 -0
- data/test/basepack_test_app/config/initializers/netzke.rb +9 -0
- data/test/basepack_test_app/config/initializers/secret_token.rb +7 -0
- data/test/basepack_test_app/config/initializers/sequel.rb +26 -0
- data/test/basepack_test_app/config/initializers/session_store.rb +8 -0
- data/test/basepack_test_app/config/locales/de.yml +35 -0
- data/test/basepack_test_app/config/locales/es.yml +96 -0
- data/test/basepack_test_app/config/routes.rb +68 -0
- data/test/basepack_test_app/db/development_structure.sql +88 -0
- data/test/basepack_test_app/db/migrate/20100914104207_create_users.rb +15 -0
- data/test/basepack_test_app/db/migrate/20100914104236_create_roles.rb +13 -0
- data/test/basepack_test_app/db/migrate/20101026185816_create_authors.rb +14 -0
- data/test/basepack_test_app/db/migrate/20101026190021_create_books.rb +19 -0
- data/test/basepack_test_app/db/migrate/20110101143818_create_addresses.rb +17 -0
- data/test/basepack_test_app/db/migrate/20110213213050_create_netzke_component_states.rb +20 -0
- data/test/basepack_test_app/db/migrate/20110701070052_create_book_with_custom_primary_keys.rb +15 -0
- data/test/basepack_test_app/db/migrate/20110901114016_add_last_read_at_to_books.rb +9 -0
- data/test/basepack_test_app/db/migrate/20110909071740_add_published_on_to_books.rb +5 -0
- data/test/basepack_test_app/db/schema.rb +81 -0
- data/test/basepack_test_app/db/seeds.rb +44 -0
- data/test/basepack_test_app/features/accordion_panel.feature +12 -0
- data/test/basepack_test_app/features/components_in_view.feature +11 -0
- data/test/basepack_test_app/features/form_panel.feature +142 -0
- data/test/basepack_test_app/features/grid_panel.feature +277 -0
- data/test/basepack_test_app/features/grid_panel_filters.feature +73 -0
- data/test/basepack_test_app/features/grid_panel_with_custom_primary_key.feature +15 -0
- data/test/basepack_test_app/features/grid_sorting.feature +47 -0
- data/test/basepack_test_app/features/i18n.feature +18 -0
- data/test/basepack_test_app/features/nested_attributes.feature +26 -0
- data/test/basepack_test_app/features/paging_form_panel.feature +43 -0
- data/test/basepack_test_app/features/search_in_grid.feature +49 -0
- data/test/basepack_test_app/features/simple_app.feature +15 -0
- data/test/basepack_test_app/features/simple_panel.feature +11 -0
- data/test/basepack_test_app/features/step_definitions/accordion_steps.rb +5 -0
- data/test/basepack_test_app/features/step_definitions/ext_steps.rb +16 -0
- data/test/basepack_test_app/features/step_definitions/form_panel_steps.rb +46 -0
- data/test/basepack_test_app/features/step_definitions/generic_steps.rb +44 -0
- data/test/basepack_test_app/features/step_definitions/grid_panel_steps.rb +186 -0
- data/test/basepack_test_app/features/step_definitions/pickle_steps.rb +100 -0
- data/test/basepack_test_app/features/step_definitions/web_steps.rb +219 -0
- data/test/basepack_test_app/features/support/env.rb +81 -0
- data/test/basepack_test_app/features/support/paths.rb +65 -0
- data/test/basepack_test_app/features/support/pickle.rb +24 -0
- data/test/basepack_test_app/features/support/selectors.rb +39 -0
- data/test/basepack_test_app/features/tab_panel.feature +12 -0
- data/test/basepack_test_app/features/validations_in_grid.feature +13 -0
- data/test/basepack_test_app/features/virtual_attributes.feature +16 -0
- data/test/basepack_test_app/features/window.feature +11 -0
- data/test/basepack_test_app/lib/tasks/.gitkeep +0 -0
- data/test/basepack_test_app/lib/tasks/cucumber.rake +71 -0
- data/test/basepack_test_app/lib/tasks/travis.rake +7 -0
- data/test/basepack_test_app/public/404.html +26 -0
- data/test/basepack_test_app/public/422.html +26 -0
- data/test/basepack_test_app/public/500.html +26 -0
- data/test/basepack_test_app/public/favicon.ico +0 -0
- data/test/basepack_test_app/public/images/header-deco.gif +0 -0
- data/test/basepack_test_app/public/images/rails.png +0 -0
- data/test/basepack_test_app/public/javascripts/application.js +2 -0
- data/test/basepack_test_app/public/javascripts/controls.js +965 -0
- data/test/basepack_test_app/public/javascripts/dragdrop.js +974 -0
- data/test/basepack_test_app/public/javascripts/effects.js +1123 -0
- data/test/basepack_test_app/public/javascripts/prototype.js +6001 -0
- data/test/basepack_test_app/public/javascripts/rails.js +175 -0
- data/test/basepack_test_app/public/robots.txt +5 -0
- data/test/basepack_test_app/public/stylesheets/.gitkeep +0 -0
- data/test/basepack_test_app/script/cucumber +10 -0
- data/test/basepack_test_app/script/rails +6 -0
- data/test/basepack_test_app/spec/components/form_panel_spec.rb +53 -0
- data/test/basepack_test_app/spec/components/grid_panel_spec.rb +10 -0
- data/test/basepack_test_app/spec/data_adapter/adapter_spec.rb +68 -0
- data/test/basepack_test_app/spec/data_adapter/attributes_spec.rb +56 -0
- data/test/basepack_test_app/spec/data_adapter/relation_extensions_spec.rb +125 -0
- data/test/basepack_test_app/spec/factories.rb +28 -0
- data/test/basepack_test_app/spec/spec_helper.rb +39 -0
- data/test/basepack_test_app/test/performance/browsing_test.rb +9 -0
- data/test/basepack_test_app/test/test_helper.rb +13 -0
- data/test/basepack_test_app/vendor/plugins/.gitkeep +0 -0
- data/test/console_with_fixtures.rb +4 -0
- data/test/fixtures/books.yml +11 -0
- data/test/fixtures/categories.yml +7 -0
- data/test/fixtures/cities.yml +21 -0
- data/test/fixtures/continents.yml +7 -0
- data/test/fixtures/countries.yml +9 -0
- data/test/fixtures/genres.yml +9 -0
- data/test/fixtures/roles.yml +8 -0
- data/test/fixtures/users.yml +11 -0
- data/test/schema.rb +10 -0
- data/test/test_helper.rb +21 -0
- data/test/unit/accordion_panel_test.rb +20 -0
- data/test/unit/active_record_basepack_test.rb +54 -0
- data/test/unit/fields_configuration_test.rb +18 -0
- data/test/unit/grid_panel_test.rb +52 -0
- data/test/unit/netzke_basepack_test.rb +4 -0
- data/test/unit/tab_panel_test.rb +21 -0
- data/uninstall.rb +1 -0
- metadata +332 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
|
4
|
+
Rails.backtrace_cleaner.remove_silencers!
|
|
5
|
+
|
|
6
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
|
7
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /passenger/ }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Add new inflection rules using the following format
|
|
4
|
+
# (all these examples are active by default):
|
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
|
8
|
+
# inflect.irregular 'person', 'people'
|
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
|
10
|
+
# end
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
|
7
|
+
RailsApp::Application.config.secret_token = '37d8da5a1af6fb203bcbdb7ad5a944a8ed0fdc568594b9000319294a8b696d607dacf64bc521bdf7036790f7e1a65627bab7df5a29cd58d78239b7e6dd8377ae'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
if defined? Sequel
|
|
2
|
+
Sequel::Model.plugin :active_model
|
|
3
|
+
Sequel::Model.plugin :validation_helpers
|
|
4
|
+
db = Sequel.connect(YAML.load(ERB.new(File.read(File.join(Rails.root,'config','database.yml'))).result)[Rails.env])
|
|
5
|
+
db.logger = Logger.new $stdout if Rails.env.development?
|
|
6
|
+
|
|
7
|
+
Sequel::Model.class_eval do
|
|
8
|
+
# Emulate ARs timestamp behavior
|
|
9
|
+
def before_create
|
|
10
|
+
self.created_at ||= Time.now
|
|
11
|
+
self.updated_at ||= Time.now
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def before_update
|
|
15
|
+
self.updated_at ||= Time.now
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# enable mass-assignment of pk, so that pickle scenarios can work properly when id is specified
|
|
19
|
+
unrestrict_primary_key
|
|
20
|
+
|
|
21
|
+
# FactoryGirl compatibility fix
|
|
22
|
+
def save!
|
|
23
|
+
save :raise_on_save_failure => true, :validate => false
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
RailsApp::Application.config.session_store :cookie_store, :key => '_basepack_test_app_session'
|
|
4
|
+
|
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
|
6
|
+
# which shouldn't be used to store highly confidential information
|
|
7
|
+
# (create the session table with "rake db:sessions:create")
|
|
8
|
+
# RailsApp::Application.config.session_store :active_record_store
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
de:
|
|
2
|
+
netzke:
|
|
3
|
+
basepack:
|
|
4
|
+
generic:
|
|
5
|
+
confirm: Confirmation
|
|
6
|
+
are_you_sure: Are you sure?
|
|
7
|
+
grid_panel:
|
|
8
|
+
actions:
|
|
9
|
+
add: Zufügen
|
|
10
|
+
edit: Verandern
|
|
11
|
+
del: Delete
|
|
12
|
+
apply: Apply
|
|
13
|
+
add_in_form: Add in form
|
|
14
|
+
edit_in_form: Edit in form
|
|
15
|
+
search: Search
|
|
16
|
+
deleted_n_records: "Deleted %{n} record(s)"
|
|
17
|
+
cannot_delete: "You don't have permissions to delete data"
|
|
18
|
+
search_panel:
|
|
19
|
+
presets: Vorlagen
|
|
20
|
+
equals: Ist gleich
|
|
21
|
+
greater_than: Ist größer als
|
|
22
|
+
less_than: Ist kleiner als
|
|
23
|
+
contains: Enthält
|
|
24
|
+
matches: Entspricht
|
|
25
|
+
is_true: "Ja"
|
|
26
|
+
is_false: "Nein"
|
|
27
|
+
date_equals: Am
|
|
28
|
+
before: Vor dem
|
|
29
|
+
after: Nach dem
|
|
30
|
+
preset_saved: Vorlage erfolgreich gespeichert
|
|
31
|
+
preset_deleted: Vorlage erfolgreich gelöscht..
|
|
32
|
+
formats:
|
|
33
|
+
date: Y-m-d
|
|
34
|
+
datetime: Y-m-d H:i:s
|
|
35
|
+
time: H:i:s
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
es:
|
|
2
|
+
# book_paging_form_panel:
|
|
3
|
+
# actions:
|
|
4
|
+
# search: Buscar
|
|
5
|
+
# apply: Apply
|
|
6
|
+
netzke:
|
|
7
|
+
basepack:
|
|
8
|
+
grid_panel:
|
|
9
|
+
actions:
|
|
10
|
+
add: Aggregar
|
|
11
|
+
add_tooltip: Aggregar
|
|
12
|
+
edit: Editar
|
|
13
|
+
edit_tooltip: Editar
|
|
14
|
+
del: Borrar
|
|
15
|
+
del_tooltip: Borrar
|
|
16
|
+
apply: Aplicar
|
|
17
|
+
apply_tooltip: Aplicar
|
|
18
|
+
add_in_form: Aggregar en forma
|
|
19
|
+
add_in_form_tooltip: Aggregar en forma
|
|
20
|
+
edit_in_form: Editar en forma
|
|
21
|
+
edit_in_form_tooltip: Editar en forma
|
|
22
|
+
search: Buscar
|
|
23
|
+
deleted_n_records: "%{n} entrada(s) borrado"
|
|
24
|
+
cannot_delete: "No se puede borrar"
|
|
25
|
+
|
|
26
|
+
search_window:
|
|
27
|
+
title: Busqueda avanzada
|
|
28
|
+
actions:
|
|
29
|
+
search: Buscar
|
|
30
|
+
cancel: Cancelar
|
|
31
|
+
|
|
32
|
+
form_panel:
|
|
33
|
+
actions:
|
|
34
|
+
apply: Aplicar
|
|
35
|
+
apply_tooltip: Aplicar
|
|
36
|
+
search: Buscar
|
|
37
|
+
search_tooltip: Buscar
|
|
38
|
+
cancel: Cancelar
|
|
39
|
+
cancel_tooltip: Cancelar
|
|
40
|
+
edit: Editar
|
|
41
|
+
edit_tooltip: Editar
|
|
42
|
+
|
|
43
|
+
search_panel:
|
|
44
|
+
equals: Es igual a
|
|
45
|
+
greater_than: Más de
|
|
46
|
+
less_than: Menos de
|
|
47
|
+
contains: Contiene
|
|
48
|
+
matches: Corresponde a
|
|
49
|
+
yes: Sí
|
|
50
|
+
no: No
|
|
51
|
+
before: Antes de
|
|
52
|
+
after: Después de
|
|
53
|
+
|
|
54
|
+
paging_form_panel:
|
|
55
|
+
actions:
|
|
56
|
+
search: Buscar
|
|
57
|
+
search_tooltip: Busqueda avanzada
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
query_builder:
|
|
61
|
+
presets: Presets
|
|
62
|
+
preset_saved: Preset grabado
|
|
63
|
+
preset_deleted: Preset borrado
|
|
64
|
+
overwrite_confirm: "Está seguro: '{0}'?"
|
|
65
|
+
overwrite_confirm_title: "Overwriting preset"
|
|
66
|
+
delete_confirm: "Are you sure you want to delete preset '{0}'?"
|
|
67
|
+
delete_confirm_title: "Deleting preset"
|
|
68
|
+
actions:
|
|
69
|
+
clear_all: Borrar
|
|
70
|
+
clear_all_tooltip: Borrar todas conditiones
|
|
71
|
+
reset: Reiniciar
|
|
72
|
+
reset_tooltip: Reiniciar
|
|
73
|
+
save_preset: Guardar preset
|
|
74
|
+
save_preset_tooltip: Guardar preset
|
|
75
|
+
delete_preset: Borrar preset
|
|
76
|
+
delete_preset_tooltip: Borrar preset
|
|
77
|
+
apply: Aplicar
|
|
78
|
+
apply_tooltip: Aplicar conditiones actualizadas
|
|
79
|
+
|
|
80
|
+
activerecord:
|
|
81
|
+
models:
|
|
82
|
+
book: Libro
|
|
83
|
+
attributes:
|
|
84
|
+
book:
|
|
85
|
+
author__name: "Autor"
|
|
86
|
+
author__first_name: "Nombre del autor"
|
|
87
|
+
author__last_name: "Apellido del autor"
|
|
88
|
+
author__created_at: "Autor creado en"
|
|
89
|
+
author__updated_at: "Autor actualizado en"
|
|
90
|
+
in_abundance: "En abundancia"
|
|
91
|
+
title: "Título"
|
|
92
|
+
exemplars: "Ejemplares"
|
|
93
|
+
digitized: "Digitalizado"
|
|
94
|
+
notes: "Notas"
|
|
95
|
+
created_at: "Creado en"
|
|
96
|
+
updated_at: "Actualizado en"
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/netzke-basepack')
|
|
2
|
+
|
|
3
|
+
RailsApp::Application.routes.draw do
|
|
4
|
+
get "embedded_components/index"
|
|
5
|
+
|
|
6
|
+
# The priority is based upon order of creation:
|
|
7
|
+
# first created -> highest priority.
|
|
8
|
+
|
|
9
|
+
# Sample of regular route:
|
|
10
|
+
# match 'products/:id' => 'catalog#view'
|
|
11
|
+
# Keep in mind you can assign values other than :controller and :action
|
|
12
|
+
|
|
13
|
+
# Sample of named route:
|
|
14
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
|
15
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
|
16
|
+
|
|
17
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
|
18
|
+
# resources :products
|
|
19
|
+
|
|
20
|
+
# Sample resource route with options:
|
|
21
|
+
# resources :products do
|
|
22
|
+
# member do
|
|
23
|
+
# get :short
|
|
24
|
+
# post :toggle
|
|
25
|
+
# end
|
|
26
|
+
#
|
|
27
|
+
# collection do
|
|
28
|
+
# get :sold
|
|
29
|
+
# end
|
|
30
|
+
# end
|
|
31
|
+
|
|
32
|
+
# Sample resource route with sub-resources:
|
|
33
|
+
# resources :products do
|
|
34
|
+
# resources :comments, :sales
|
|
35
|
+
# resource :seller
|
|
36
|
+
# end
|
|
37
|
+
|
|
38
|
+
# Sample resource route with more complex sub-resources
|
|
39
|
+
# resources :products do
|
|
40
|
+
# resources :comments
|
|
41
|
+
# resources :sales do
|
|
42
|
+
# get :recent, :on => :collection
|
|
43
|
+
# end
|
|
44
|
+
# end
|
|
45
|
+
|
|
46
|
+
# Sample resource route within a namespace:
|
|
47
|
+
# namespace :admin do
|
|
48
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
|
49
|
+
# # (app/controllers/admin/products_controller.rb)
|
|
50
|
+
# resources :products
|
|
51
|
+
# end
|
|
52
|
+
|
|
53
|
+
# You can have the root of your site routed with "root"
|
|
54
|
+
# just remember to delete public/index.html.
|
|
55
|
+
root :to => "welcome#index"
|
|
56
|
+
|
|
57
|
+
# See how all your routes lay out with "rake routes"
|
|
58
|
+
|
|
59
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
|
60
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
|
61
|
+
|
|
62
|
+
match 'components/:component' => 'components#index', :as => "components"
|
|
63
|
+
match 'components/embedded/:action' => 'components', :as => "embedded_components"
|
|
64
|
+
|
|
65
|
+
match ':controller(/:action(/:id(.:format)))'
|
|
66
|
+
|
|
67
|
+
netzke
|
|
68
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
CREATE TABLE `addresses` (
|
|
2
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
3
|
+
`user_id` int(11) DEFAULT NULL,
|
|
4
|
+
`street` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
5
|
+
`city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
6
|
+
`postcode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
7
|
+
`country_id` int(11) DEFAULT NULL,
|
|
8
|
+
`created_at` datetime DEFAULT NULL,
|
|
9
|
+
`updated_at` datetime DEFAULT NULL,
|
|
10
|
+
PRIMARY KEY (`id`)
|
|
11
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
12
|
+
|
|
13
|
+
CREATE TABLE `authors` (
|
|
14
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
15
|
+
`first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
16
|
+
`last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
17
|
+
`created_at` datetime DEFAULT NULL,
|
|
18
|
+
`updated_at` datetime DEFAULT NULL,
|
|
19
|
+
PRIMARY KEY (`id`)
|
|
20
|
+
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
21
|
+
|
|
22
|
+
CREATE TABLE `books` (
|
|
23
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
24
|
+
`author_id` int(11) DEFAULT NULL,
|
|
25
|
+
`title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
26
|
+
`exemplars` int(11) DEFAULT NULL,
|
|
27
|
+
`digitized` tinyint(1) DEFAULT NULL,
|
|
28
|
+
`notes` text COLLATE utf8_unicode_ci,
|
|
29
|
+
`tags` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
30
|
+
`rating` int(11) DEFAULT NULL,
|
|
31
|
+
`created_at` datetime DEFAULT NULL,
|
|
32
|
+
`updated_at` datetime DEFAULT NULL,
|
|
33
|
+
PRIMARY KEY (`id`)
|
|
34
|
+
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
35
|
+
|
|
36
|
+
CREATE TABLE `netzke_component_states` (
|
|
37
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
38
|
+
`component` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
39
|
+
`user_id` int(11) DEFAULT NULL,
|
|
40
|
+
`role_id` int(11) DEFAULT NULL,
|
|
41
|
+
`value` text COLLATE utf8_unicode_ci,
|
|
42
|
+
`created_at` datetime DEFAULT NULL,
|
|
43
|
+
`updated_at` datetime DEFAULT NULL,
|
|
44
|
+
PRIMARY KEY (`id`),
|
|
45
|
+
KEY `index_netzke_component_states_on_component` (`component`),
|
|
46
|
+
KEY `index_netzke_component_states_on_user_id` (`user_id`),
|
|
47
|
+
KEY `index_netzke_component_states_on_role_id` (`role_id`)
|
|
48
|
+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
49
|
+
|
|
50
|
+
CREATE TABLE `netzke_temp_table` (
|
|
51
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
52
|
+
PRIMARY KEY (`id`)
|
|
53
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
54
|
+
|
|
55
|
+
CREATE TABLE `roles` (
|
|
56
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
57
|
+
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
58
|
+
`created_at` datetime DEFAULT NULL,
|
|
59
|
+
`updated_at` datetime DEFAULT NULL,
|
|
60
|
+
PRIMARY KEY (`id`)
|
|
61
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
62
|
+
|
|
63
|
+
CREATE TABLE `schema_migrations` (
|
|
64
|
+
`version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
|
65
|
+
UNIQUE KEY `unique_schema_migrations` (`version`)
|
|
66
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
67
|
+
|
|
68
|
+
CREATE TABLE `users` (
|
|
69
|
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
70
|
+
`first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
71
|
+
`last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
72
|
+
`role_id` int(11) DEFAULT NULL,
|
|
73
|
+
`created_at` datetime DEFAULT NULL,
|
|
74
|
+
`updated_at` datetime DEFAULT NULL,
|
|
75
|
+
PRIMARY KEY (`id`)
|
|
76
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
77
|
+
|
|
78
|
+
INSERT INTO schema_migrations (version) VALUES ('20100914104207');
|
|
79
|
+
|
|
80
|
+
INSERT INTO schema_migrations (version) VALUES ('20100914104236');
|
|
81
|
+
|
|
82
|
+
INSERT INTO schema_migrations (version) VALUES ('20101026185816');
|
|
83
|
+
|
|
84
|
+
INSERT INTO schema_migrations (version) VALUES ('20101026190021');
|
|
85
|
+
|
|
86
|
+
INSERT INTO schema_migrations (version) VALUES ('20110101143818');
|
|
87
|
+
|
|
88
|
+
INSERT INTO schema_migrations (version) VALUES ('20110213213050');
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
class CreateBooks < ActiveRecord::Migration
|
|
2
|
+
def self.up
|
|
3
|
+
create_table :books do |t|
|
|
4
|
+
t.integer :author_id
|
|
5
|
+
t.string :title
|
|
6
|
+
t.integer :exemplars
|
|
7
|
+
t.boolean :digitized, :default => false
|
|
8
|
+
t.text :notes
|
|
9
|
+
t.string :tags
|
|
10
|
+
t.integer :rating
|
|
11
|
+
|
|
12
|
+
t.timestamps
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.down
|
|
17
|
+
drop_table :books
|
|
18
|
+
end
|
|
19
|
+
end
|