hydra-head 3.0.0pre3 → 3.0.0pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +0 -3
- data/.rvmrc +6 -0
- data/BLACKLIGHT_CONFIG.textile +76 -0
- data/CREATE_RAILS_APP.textile +323 -0
- data/DEVELOP_PLUGIN.textile +90 -0
- data/GIT_WORKFLOW.textile +84 -0
- data/Gemfile.lock +82 -66
- data/HISTORY.textile +7 -0
- data/HOW_DO_I.textile +107 -0
- data/HOW_TO_DEFINE_A_HYDRA_CONTROLLER.textile +21 -0
- data/HOW_TO_DEFINE_A_HYDRA_MODEL.textile +64 -0
- data/HOW_TO_GET_STARTED.textile +100 -76
- data/INITIAL_APP_MODS.textile +60 -76
- data/INSTALL_PREREQ.textile +19 -0
- data/LICENSE +14 -0
- data/README.textile +89 -17
- data/README_RAKE_TASKS.textile +107 -0
- data/README_SUBTREE.textile +87 -0
- data/README_TERSE.textile +92 -0
- data/TESTING_PLUGIN.textile +134 -0
- data/app/controllers/assets_controller.rb +34 -4
- data/app/controllers/contributors_controller.rb +49 -1
- data/app/controllers/downloads_controller.rb +36 -0
- data/app/controllers/file_assets_controller.rb +43 -21
- data/app/controllers/generic_content_objects_controller.rb +38 -0
- data/app/controllers/get_controller.rb +39 -0
- data/app/controllers/permissions_controller.rb +33 -4
- data/app/controllers/user_sessions_controller.rb +0 -1
- data/app/helpers/application_helper.rb +183 -0
- data/app/helpers/blacklight_helper.rb +13 -8
- data/app/helpers/hydra_assets_helper.rb +6 -15
- data/app/helpers/hydra_fedora_metadata_helper.rb +51 -67
- data/app/helpers/hydra_helper.rb +35 -11
- data/app/helpers/javascript_includes_helper.rb +2 -4
- data/app/helpers/personalization_helper.rb +44 -0
- data/app/models/generic_content.rb +6 -3
- data/app/models/generic_image.rb +3 -1
- data/app/models/mods_asset.rb +12 -1
- data/app/models/user_attribute.rb +25 -0
- data/app/models/uses_default_partials.rb +14 -0
- data/app/views/_add_assets_links.html.erb +1 -0
- data/app/views/catalog/_edit_partials/_default.html.erb +5 -5
- data/app/views/catalog/_home_text.html.erb +2 -2
- data/app/views/catalog/_index_partials/_default_details.html.erb +10 -7
- data/app/views/catalog/_opensearch_response_metadata.html.erb +2 -0
- data/app/views/catalog/_search_form.html.erb +1 -1
- data/app/views/catalog/_show_partials/_default.html.erb +4 -2
- data/app/views/catalog/_show_partials/_default_details.html.erb +10 -7
- data/app/views/catalog/show.html.erb +20 -28
- data/app/views/contributors/_edit_person.html.erb +26 -29
- data/app/views/contributors/_index.html.erb +6 -7
- data/app/views/contributors/_show_conference.html.erb +5 -15
- data/app/views/contributors/_show_organization.html.erb +8 -16
- data/app/views/file_assets/_file_assets_form.html.erb +11 -0
- data/app/views/file_assets/_index.html.erb +21 -6
- data/app/views/file_assets/_new.html.erb +6 -2
- data/app/views/file_assets/_result.html.erb +2 -2
- data/app/views/fluid_infusion/_uploader.html.erb +4 -5
- data/app/views/generic_content_objects/_contributor_form.html.erb +11 -0
- data/app/views/generic_content_objects/_description_form.html.erb +7 -0
- data/app/views/generic_content_objects/_edit_description.html.erb +14 -41
- data/app/views/generic_content_objects/_show_description.html.erb +38 -63
- data/app/views/generic_contents/_edit.html.erb +1 -45
- data/app/views/generic_contents/_edit.html.erb_ +39 -0
- data/app/views/generic_contents/_index.html.erb +1 -3
- data/app/views/generic_contents/_show.html.erb +4 -14
- data/app/views/generic_contents/_show_content.html.erb +7 -4
- data/app/views/generic_images/_edit.html.erb +26 -32
- data/app/views/generic_images/_show.html.erb +7 -10
- data/app/views/generic_images/_show_all.html.erb +1 -1
- data/app/views/generic_images/_show_content.html.erb +7 -7
- data/app/views/layouts/application.html.erb +33 -41
- data/app/views/layouts/hydra-head.html.erb +52 -7
- data/app/views/mods_assets/_additional_info_form.html.erb +44 -0
- data/app/views/mods_assets/_contributor_form.html.erb +14 -0
- data/app/views/mods_assets/_edit.html.erb +8 -32
- data/app/views/mods_assets/_edit.html.erb_ +63 -0
- data/app/views/mods_assets/_edit_description.html.erb +52 -61
- data/app/views/mods_assets/_edit_journal.html.erb +49 -64
- data/app/views/mods_assets/_publication_form.html.erb +13 -0
- data/app/views/mods_assets/_show.html.erb +18 -23
- data/app/views/mods_assets/_show_additional_info.html.erb +17 -0
- data/app/views/mods_assets/_show_contributors.html.erb +7 -0
- data/app/views/mods_assets/_show_description.html.erb +3 -13
- data/app/views/mods_assets/_show_file_assets.html.erb +22 -0
- data/app/views/mods_assets/_show_journal.html.erb +3 -3
- data/app/views/mods_assets/_show_permissions.html.erb +1 -0
- data/app/views/mods_assets/_show_publication.html.erb +8 -0
- data/app/views/permissions/_edit_person_permissions.html.erb +4 -9
- data/app/views/permissions/_index.html.erb +9 -18
- data/app/views/permissions/_new.html.erb +13 -17
- data/app/views/permissions/_permissions_form.html.erb +24 -0
- data/app/views/user_sessions/_login_form.html.erb +1 -1
- data/assets/images/hydra/powered_by_hydra.png +0 -0
- data/assets/images/hydra/search-button.png +0 -0
- data/assets/javascripts/date-picker/booking/index.html +368 -0
- data/assets/javascripts/date-picker/calendarHTML.txt +84 -0
- data/assets/javascripts/date-picker/css/datepicker.css +511 -0
- data/assets/javascripts/date-picker/css/demo.css +229 -0
- data/assets/javascripts/date-picker/index.html +798 -0
- data/assets/javascripts/date-picker/js/datepicker.js +2898 -0
- data/assets/javascripts/date-picker/js/datepicker.packed.js +1 -0
- data/assets/javascripts/date-picker/js/lang/ar.js +9 -0
- data/assets/javascripts/date-picker/js/lang/cs.js +9 -0
- data/assets/javascripts/date-picker/js/lang/da.js +10 -0
- data/assets/javascripts/date-picker/js/lang/de.js +10 -0
- data/assets/javascripts/date-picker/js/lang/en.js +9 -0
- data/assets/javascripts/date-picker/js/lang/eo.js +13 -0
- data/assets/javascripts/date-picker/js/lang/es.js +9 -0
- data/assets/javascripts/date-picker/js/lang/et.js +23 -0
- data/assets/javascripts/date-picker/js/lang/fi.js +7 -0
- data/assets/javascripts/date-picker/js/lang/fr.js +69 -0
- data/assets/javascripts/date-picker/js/lang/he.js +9 -0
- data/assets/javascripts/date-picker/js/lang/hu.js +9 -0
- data/assets/javascripts/date-picker/js/lang/id.js +9 -0
- data/assets/javascripts/date-picker/js/lang/it.js +11 -0
- data/assets/javascripts/date-picker/js/lang/kr.js +9 -0
- data/assets/javascripts/date-picker/js/lang/lt.js +8 -0
- data/assets/javascripts/date-picker/js/lang/lv.js +9 -0
- data/assets/javascripts/date-picker/js/lang/nl.js +9 -0
- data/assets/javascripts/date-picker/js/lang/no.js +9 -0
- data/assets/javascripts/date-picker/js/lang/pl.js +10 -0
- data/assets/javascripts/date-picker/js/lang/pt-br.js +11 -0
- data/assets/javascripts/date-picker/js/lang/pt.js +9 -0
- data/assets/javascripts/date-picker/js/lang/ru.js +11 -0
- data/assets/javascripts/date-picker/js/lang/se.js +9 -0
- data/assets/javascripts/date-picker/js/lang/si.js +9 -0
- data/assets/javascripts/date-picker/js/lang/tr.js +9 -0
- data/assets/javascripts/date-picker/language/index.html +240 -0
- data/assets/javascripts/date-picker/media/Thumbs.db +0 -0
- data/assets/javascripts/date-picker/media/backstripes.gif +0 -0
- data/assets/javascripts/date-picker/media/bg_header.jpg +0 -0
- data/assets/javascripts/date-picker/media/bullet1.gif +0 -0
- data/assets/javascripts/date-picker/media/bullet2.gif +0 -0
- data/assets/javascripts/date-picker/media/cal-grey.gif +0 -0
- data/assets/javascripts/date-picker/media/cal.gif +0 -0
- data/assets/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif +0 -0
- data/assets/javascripts/hydra/hydra-head.js +195 -0
- data/assets/javascripts/hydra/mediashelf.datepicker.js +39 -0
- data/assets/javascripts/hydra/mediashelf.placeholder.js +67 -0
- data/assets/javascripts/jquery.form.js +675 -0
- data/assets/javascripts/jquery.ui.datepicker.js +1793 -0
- data/assets/javascripts/spin.min.js +2 -0
- data/assets/stylesheets/hydra/html_refactor.css +115 -0
- data/assets/stylesheets/hydra/hydrangea-split-button.css +18 -0
- data/assets/stylesheets/hydra/hydrangea.css +292 -0
- data/assets/stylesheets/hydra/ie-styles.css +240 -0
- data/assets/stylesheets/hydra/styles.css +2224 -0
- data/assets/stylesheets/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/assets/stylesheets/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/assets/stylesheets/redmond/jquery-ui-1.8.5.custom.css +572 -0
- data/config/fedora.yml +17 -0
- data/config/role_map_cucumber.yml +10 -0
- data/config/role_map_development.yml +12 -0
- data/config/role_map_production.yml +2 -0
- data/config/role_map_test.yml +14 -0
- data/config/solr.yml +10 -0
- data/config/solr_mappings.yml +22 -0
- data/db/migrate/20101105214243_add_user_attributes_table.rb +15 -0
- data/db/migrate/20101108192527_create_superusers.rb +12 -0
- data/fedora/conf/fedora.fcfg +1021 -0
- data/hydra-head.gemspec +7 -4
- data/init.rb +4 -0
- data/install.rb +1 -0
- data/lib/blacklight/catalog_helper.rb +44 -0
- data/lib/blacklight.rb +40 -0
- data/lib/block_mapper.rb +52 -0
- data/lib/djatoka.rb +59 -0
- data/lib/ead_mapper.rb +7 -0
- data/lib/field_maps.rb +507 -0
- data/lib/generators/hydra/assets_generator.rb +51 -0
- data/lib/generators/hydra/head_generator.rb +23 -4
- data/lib/generators/hydra/templates/config/initializers/blacklight_config.rb +2 -2
- data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +26 -0
- data/lib/hydra/access_controls_enforcement.rb +3 -2
- data/lib/hydra/assets_controller_helper.rb +6 -0
- data/lib/hydra/catalog.rb +7 -3
- data/lib/hydra/controller.rb +27 -0
- data/lib/hydra/file_assets_helper.rb +25 -8
- data/lib/hydra/generic_user_attributes.rb +34 -0
- data/lib/hydra/model_methods.rb +4 -2
- data/lib/hydra/mods_article.rb +5 -2
- data/lib/hydra/submission_workflow.rb +137 -0
- data/lib/hydra-head/controller.rb +30 -0
- data/lib/hydra-head/engine.rb +22 -1
- data/lib/hydra-head/routes.rb +14 -3
- data/lib/hydra-head/version.rb +1 -1
- data/lib/hydra-head.rb +3 -3
- data/lib/hydra.rb +1 -1
- data/lib/jetty_cleaner.rb +27 -0
- data/lib/marc_mapper.rb +131 -0
- data/lib/marc_record_ext.rb +97 -0
- data/lib/mediashelf/active_fedora_helper.rb +7 -1
- data/lib/prev_next_links.rb +22 -0
- data/lib/railties/hydra-fixtures.rake +6 -1
- data/lib/railties/hyhead_cucumber.rake +1 -2
- data/lib/railties/hyhead_rspec.rake +7 -7
- data/lib/stanford_blacklight_extensions.rb +6 -0
- data/lib/user_attributes_loader.rb +17 -0
- data/solr/conf/schema.xml +116 -0
- data/solr/conf/solrconfig.xml +311 -0
- data/solr/solr.xml +35 -0
- data/spec/controllers/catalog_valid_html_spec.rb +128 -0
- data/spec-rails2/helpers/hydra_fedora_metadata_helper_spec.rb +219 -0
- data/spec-rails2/spec_helper.rb +88 -0
- data/tasks/hydra-head.rake +2 -4
- data/test_support/etc/Gemfile +6 -5
- data/test_support/features/absent_model_edit.feature +27 -0
- data/test_support/features/absent_model_search_result.feature +24 -0
- data/test_support/features/absent_model_show.feature +27 -0
- data/test_support/features/button_add_assets.feature +2 -2
- data/test_support/features/contributor_add.feature +21 -16
- data/test_support/features/default_partials_edit.feature +27 -0
- data/test_support/features/default_partials_search_result.feature +22 -0
- data/test_support/features/default_partials_show.feature +24 -0
- data/test_support/features/file_upload.feature +55 -22
- data/test_support/features/generic_content_create.feature +7 -0
- data/test_support/features/generic_content_edit.feature +21 -0
- data/test_support/features/generic_content_search_result.feature +22 -0
- data/test_support/features/generic_content_show.feature +20 -0
- data/test_support/features/generic_image_create.feature +7 -0
- data/test_support/features/generic_image_edit.feature +21 -0
- data/test_support/features/generic_image_search_result.feature +22 -0
- data/test_support/features/generic_image_show.feature +20 -0
- data/test_support/features/html_validity.feature +43 -0
- data/test_support/features/mods_asset_contributors_edit.feature +27 -19
- data/test_support/features/mods_asset_create.feature +13 -8
- data/test_support/features/mods_asset_edit.feature +48 -16
- data/test_support/features/mods_asset_edit_without_permission.feature +6 -1
- data/test_support/features/mods_asset_search_result.feature +15 -15
- data/test_support/features/mods_asset_show.feature +56 -5
- data/test_support/features/permissions_add.feature +5 -4
- data/test_support/features/permissions_edit.feature +9 -7
- data/test_support/features/step_definitions/html_validity_steps.rb +57 -0
- data/test_support/features/step_definitions/show_document_steps.rb +1 -1
- data/test_support/features/step_definitions/user_steps.rb +4 -4
- data/test_support/features/support/paths.rb +4 -1
- data/test_support/fixtures/hydra_test_default_partials.foxml.xml +80 -0
- data/test_support/fixtures/hydra_test_generic_content.foxml.xml +138 -0
- data/test_support/fixtures/hydra_test_generic_image.foxml.xml +395 -0
- data/test_support/fixtures/hydra_test_no_model.foxml.xml +79 -0
- data/test_support/fixtures/hydrus_admin_class1.foxml.xml +176 -0
- data/test_support/fixtures/libra-oa_7.foxml.xml +1735 -0
- data/test_support/spec/controllers/assets_controller_spec.rb +5 -4
- data/test_support/spec/controllers/catalog_controller_spec.rb +2 -2
- data/test_support/spec/controllers/file_assets_controller_spec.rb +16 -10
- data/test_support/spec/controllers/hydra_controller_spec.rb +2 -0
- data/test_support/spec/controllers/permissions_controller_spec.rb +1 -1
- data/test_support/spec/helpers/access_controls_enforcement_spec.rb +20 -219
- data/test_support/spec/helpers/blacklight_helper_spec.rb +3 -1
- data/test_support/spec/helpers/file_assets_helper_spec.rb +13 -10
- data/test_support/spec/helpers/hydra_assets_helper_spec.rb +5 -1
- data/test_support/spec/helpers/hydra_djatoka_helper_spec.rb +3 -1
- data/test_support/spec/helpers/hydra_fedora_metadata_helper_spec.rb +102 -69
- data/test_support/spec/helpers/hydra_helper_spec.rb +15 -0
- data/test_support/spec/lib/hydra_submission_workflow_spec.rb +141 -0
- data/test_support/spec/models/generic_image_spec.rb +6 -1
- data/uninstall.rb +1 -0
- data/vendor/cache/actionmailer-3.0.10.gem +0 -0
- data/vendor/cache/actionpack-3.0.10.gem +0 -0
- data/vendor/cache/activemodel-3.0.10.gem +0 -0
- data/vendor/cache/activerecord-3.0.10.gem +0 -0
- data/vendor/cache/activeresource-3.0.10.gem +0 -0
- data/vendor/cache/activesupport-3.0.10.gem +0 -0
- data/vendor/cache/capybara-1.1.1.gem +0 -0
- data/vendor/cache/childprocess-0.2.2.gem +0 -0
- data/vendor/cache/crack-0.3.1.gem +0 -0
- data/vendor/cache/cucumber-1.1.0.gem +0 -0
- data/vendor/cache/cucumber-rails-1.1.1.gem +0 -0
- data/vendor/cache/diff-lcs-1.1.3.gem +0 -0
- data/vendor/cache/equivalent-xml-0.2.8.gem +0 -0
- data/vendor/cache/factory_girl-2.1.2.gem +0 -0
- data/vendor/cache/gherkin-2.5.2.gem +0 -0
- data/vendor/cache/haml-3.1.3.gem +0 -0
- data/vendor/cache/httparty-0.8.1.gem +0 -0
- data/vendor/cache/json-1.6.1.gem +0 -0
- data/vendor/cache/json_pure-1.6.1.gem +0 -0
- data/vendor/cache/launchy-2.0.5.gem +0 -0
- data/vendor/cache/mediashelf-loggable-0.4.7.gem +0 -0
- data/vendor/cache/metaclass-0.0.1.gem +0 -0
- data/vendor/cache/mocha-0.10.0.gem +0 -0
- data/vendor/cache/multi_json-1.0.3.gem +0 -0
- data/vendor/cache/multi_xml-0.4.1.gem +0 -0
- data/vendor/cache/om-1.4.2.gem +0 -0
- data/vendor/cache/polyglot-0.3.2.gem +0 -0
- data/vendor/cache/rack-1.2.4.gem +0 -0
- data/vendor/cache/{rails-3.0.9.gem → rails-3.0.10.gem} +0 -0
- data/vendor/cache/railties-3.0.10.gem +0 -0
- data/vendor/cache/rcov-0.9.11.gem +0 -0
- data/vendor/cache/rdoc-3.10.gem +0 -0
- data/vendor/cache/rest-client-1.6.7.gem +0 -0
- data/vendor/cache/selenium-webdriver-2.8.0.gem +0 -0
- data/vendor/cache/solrizer-1.1.2.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.1.2.gem +0 -0
- data/vendor/cache/sqlite3-1.3.4.gem +0 -0
- data/vendor/cache/term-ansicolor-1.0.7.gem +0 -0
- data/vendor/cache/treetop-1.4.10.gem +0 -0
- data/vendor/cache/tzinfo-0.3.30.gem +0 -0
- data/vendor/cache/will_paginate-3.0.2.gem +0 -0
- data/vendor/cache/xml-simple-1.1.1.gem +0 -0
- metadata +351 -121
- data/lib/engine.rb +0 -30
- data/test_support/features/file_assets_list.feature +0 -32
- data/vendor/cache/actionmailer-3.0.9.gem +0 -0
- data/vendor/cache/actionpack-3.0.9.gem +0 -0
- data/vendor/cache/activemodel-3.0.9.gem +0 -0
- data/vendor/cache/activerecord-3.0.9.gem +0 -0
- data/vendor/cache/activeresource-3.0.9.gem +0 -0
- data/vendor/cache/activesupport-3.0.9.gem +0 -0
- data/vendor/cache/capybara-1.0.0.gem +0 -0
- data/vendor/cache/childprocess-0.2.0.gem +0 -0
- data/vendor/cache/crack-0.1.8.gem +0 -0
- data/vendor/cache/cucumber-1.0.2.gem +0 -0
- data/vendor/cache/cucumber-rails-1.0.2.gem +0 -0
- data/vendor/cache/diff-lcs-1.1.2.gem +0 -0
- data/vendor/cache/equivalent-xml-0.2.7.gem +0 -0
- data/vendor/cache/factory_girl-1.3.3.gem +0 -0
- data/vendor/cache/gherkin-2.4.5.gem +0 -0
- data/vendor/cache/haml-3.1.2.gem +0 -0
- data/vendor/cache/httparty-0.7.8.gem +0 -0
- data/vendor/cache/json-1.5.3.gem +0 -0
- data/vendor/cache/json_pure-1.5.3.gem +0 -0
- data/vendor/cache/launchy-2.0.4.gem +0 -0
- data/vendor/cache/mediashelf-loggable-0.4.3.gem +0 -0
- data/vendor/cache/mocha-0.9.12.gem +0 -0
- data/vendor/cache/om-1.2.5.gem +0 -0
- data/vendor/cache/polyglot-0.3.1.gem +0 -0
- data/vendor/cache/rack-1.2.3.gem +0 -0
- data/vendor/cache/railties-3.0.9.gem +0 -0
- data/vendor/cache/rcov-0.9.9.gem +0 -0
- data/vendor/cache/rdoc-3.8.gem +0 -0
- data/vendor/cache/selenium-webdriver-0.2.2.gem +0 -0
- data/vendor/cache/solrizer-1.1.0.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.1.0.gem +0 -0
- data/vendor/cache/term-ansicolor-1.0.5.gem +0 -0
- data/vendor/cache/treetop-1.4.9.gem +0 -0
- data/vendor/cache/tzinfo-0.3.29.gem +0 -0
- data/vendor/cache/will_paginate-2.3.15.gem +0 -0
- data/vendor/cache/xml-simple-1.1.0.gem +0 -0
@@ -0,0 +1,511 @@
|
|
1
|
+
/* This is a very basic stylesheet for the date-picker. Feel free to create your own. */
|
2
|
+
|
3
|
+
/* Hide the input by using a className */
|
4
|
+
input.fd-hidden-input,
|
5
|
+
select.fd-hidden-input
|
6
|
+
{
|
7
|
+
display:none;
|
8
|
+
}
|
9
|
+
/* Screen reader class - hides it from the visual display */
|
10
|
+
.fd-screen-reader
|
11
|
+
{
|
12
|
+
position:absolute;
|
13
|
+
left:-999em;
|
14
|
+
top:0;
|
15
|
+
width:1px;
|
16
|
+
height:1px;
|
17
|
+
overflow:hidden;
|
18
|
+
outline: 0 none;
|
19
|
+
-moz-outline: 0 none;
|
20
|
+
}
|
21
|
+
/* Disabled datePicker and activation button */
|
22
|
+
a.dp-disabled,
|
23
|
+
.dp-disabled table
|
24
|
+
{
|
25
|
+
opacity:.3 !important;
|
26
|
+
filter:alpha(opacity=40);
|
27
|
+
}
|
28
|
+
.dp-disabled,
|
29
|
+
.dp-disabled td,
|
30
|
+
.dp-disabled th,
|
31
|
+
.dp-disabled th span
|
32
|
+
{
|
33
|
+
cursor:default !important;
|
34
|
+
}
|
35
|
+
a.date-picker-control:focus,
|
36
|
+
div.datePicker table td:focus
|
37
|
+
{
|
38
|
+
overflow:hidden;
|
39
|
+
outline:0 none;
|
40
|
+
-moz-outline: 0 none;
|
41
|
+
color:rgb(100,130,170) !important;
|
42
|
+
}
|
43
|
+
/* The wrapper div */
|
44
|
+
div.datePicker
|
45
|
+
{
|
46
|
+
position:absolute;
|
47
|
+
z-index:9999;
|
48
|
+
text-align:center;
|
49
|
+
|
50
|
+
/* Change the font-size to suit your design's CSS. The following line is for the demo that has a 12px font-size defined on the body tag */
|
51
|
+
font:900 0.8em/1em Verdana, Sans-Serif;
|
52
|
+
|
53
|
+
/* For Example: If using the YUI font CSS, uncomment the following line to get a 10px font-size within the datePicker */
|
54
|
+
/* font:900 77%/77% Verdana, sans-serif; */
|
55
|
+
|
56
|
+
/* Or, if you prefer a pixel precision */
|
57
|
+
/* font:900 12px/12px Verdana, sans-serif; */
|
58
|
+
|
59
|
+
background:transparent;
|
60
|
+
|
61
|
+
/* Mozilla & Webkit extensions to stop text-selection. */
|
62
|
+
-moz-user-select:none;
|
63
|
+
-khtml-user-select:none;
|
64
|
+
}
|
65
|
+
/* Styles for the static datePickers */
|
66
|
+
div.static-datepicker
|
67
|
+
{
|
68
|
+
position:relative;
|
69
|
+
top:5px;
|
70
|
+
left:0;
|
71
|
+
}
|
72
|
+
div.datePicker table
|
73
|
+
{
|
74
|
+
width:auto;
|
75
|
+
height:auto;
|
76
|
+
border-collapse:separate;
|
77
|
+
}
|
78
|
+
/* Draggable datepickers */
|
79
|
+
div.datePicker tfoot th.drag-enabled,
|
80
|
+
div.datePicker thead th.drag-enabled,
|
81
|
+
div.datePicker thead th.drag-enabled span
|
82
|
+
{
|
83
|
+
cursor:move;
|
84
|
+
}
|
85
|
+
/* The iframe hack to cover selectlists in Internet Explorer <= v6 */
|
86
|
+
iframe.iehack
|
87
|
+
{
|
88
|
+
position:absolute;
|
89
|
+
background:#fff;
|
90
|
+
z-index:9998;
|
91
|
+
padding:0;
|
92
|
+
border:0;
|
93
|
+
display:none;
|
94
|
+
margin:0;
|
95
|
+
}
|
96
|
+
/* The "button" created beside each input for non-static datePickers */
|
97
|
+
a.date-picker-control:link,
|
98
|
+
a.date-picker-control:visited
|
99
|
+
{
|
100
|
+
position:relative;
|
101
|
+
/* Moz & FF */
|
102
|
+
display: -moz-inline-stack;
|
103
|
+
border:0 none;
|
104
|
+
padding:0;
|
105
|
+
margin:0 0 0 4px;
|
106
|
+
background:transparent url(/javascripts/date-picker/media/cal-grey.gif) no-repeat 50% 50%;
|
107
|
+
min-width:16px;
|
108
|
+
line-height:1;
|
109
|
+
cursor:pointer;
|
110
|
+
visibility:visible;
|
111
|
+
text-decoration:none;
|
112
|
+
vertical-align:top;
|
113
|
+
}
|
114
|
+
a.date-picker-control:hover,
|
115
|
+
a.date-picker-control:active,
|
116
|
+
a.date-picker-control:focus,
|
117
|
+
a.dp-button-active:link,
|
118
|
+
a.dp-button-active:visited,
|
119
|
+
a.dp-button-active:hover,
|
120
|
+
a.dp-button-active:active,
|
121
|
+
a.dp-button-active:focus
|
122
|
+
{
|
123
|
+
background:transparent url(/javascripts/date-picker/media/cal.gif) no-repeat 50% 50% !important;
|
124
|
+
}
|
125
|
+
/* Feed IE6 the following rule, IE7 should handle the min-width declared above */
|
126
|
+
* html a.date-picker-control
|
127
|
+
{
|
128
|
+
width:16px;
|
129
|
+
}
|
130
|
+
/* IE, Safari & Opera. Seperate CSS rule seems to be required. */
|
131
|
+
a.date-picker-control
|
132
|
+
{
|
133
|
+
display:inline-block;
|
134
|
+
}
|
135
|
+
a.date-picker-control span
|
136
|
+
{
|
137
|
+
display:block;
|
138
|
+
width:16px;
|
139
|
+
height:16px;
|
140
|
+
margin:auto 0;
|
141
|
+
}
|
142
|
+
/* Default "button" styles */
|
143
|
+
div.datePicker thead th span
|
144
|
+
{
|
145
|
+
display:block;
|
146
|
+
padding:0;
|
147
|
+
margin:0;
|
148
|
+
text-align:center;
|
149
|
+
line-height:1em;
|
150
|
+
border:0 none;
|
151
|
+
background:transparent;
|
152
|
+
font-weight:bold;
|
153
|
+
cursor:pointer;
|
154
|
+
}
|
155
|
+
/* The "month, year" display */
|
156
|
+
div.datePicker th span.month-display,
|
157
|
+
div.datePicker th span.year-display
|
158
|
+
{
|
159
|
+
display:inline;
|
160
|
+
text-transform:uppercase;
|
161
|
+
letter-spacing:1px;
|
162
|
+
font:normal 1.2em Verdana, Sans-Serif;
|
163
|
+
cursor:default;
|
164
|
+
}
|
165
|
+
/* Next & Previous (month, year) buttons */
|
166
|
+
div.datePicker th span.prev-but,
|
167
|
+
div.datePicker th span.next-but
|
168
|
+
{
|
169
|
+
font-weight:lighter;
|
170
|
+
font-size:2.4em;
|
171
|
+
font-family: georgia, times new roman, palatino, times, bookman, serif;
|
172
|
+
cursor:pointer !important;
|
173
|
+
}
|
174
|
+
/* Hover effect for Next & Previous (month, year) buttons */
|
175
|
+
div.datePicker th span.prev-but:hover,
|
176
|
+
div.datePicker th span.next-but:hover,
|
177
|
+
div.datePicker th span.today-but:hover
|
178
|
+
{
|
179
|
+
color:#a84444;
|
180
|
+
}
|
181
|
+
/* Today button */
|
182
|
+
div.datePicker th span.today-but
|
183
|
+
{
|
184
|
+
text-align:center;
|
185
|
+
margin:0 auto;
|
186
|
+
font:normal 1em Verdana, Sans-Serif;
|
187
|
+
width:100%;
|
188
|
+
text-decoration:none;
|
189
|
+
padding-top:0.3em;
|
190
|
+
text-transform:uppercase;
|
191
|
+
vertical-align:middle;
|
192
|
+
cursor:pointer !important
|
193
|
+
}
|
194
|
+
/* Disabled buttons */
|
195
|
+
div.dp-disabled th span.prev-but,
|
196
|
+
div.dp-disabled th span.next-but,
|
197
|
+
div.dp-disabled th span.today-but,
|
198
|
+
div.dp-disabled th span.prev-but:hover,
|
199
|
+
div.dp-disabled th span.next-but:hover,
|
200
|
+
div.dp-disabled th span.today-but:hover,
|
201
|
+
div.datePicker th span.prev-but.fd-disabled:hover,
|
202
|
+
div.datePicker th span.next-but.fd-disabled:hover,
|
203
|
+
div.datePicker thead th span.fd-disabled,
|
204
|
+
div.datePicker th span.fd-disabled:hover
|
205
|
+
{
|
206
|
+
color:#aaa;
|
207
|
+
cursor:default !important;
|
208
|
+
opacity:1;
|
209
|
+
}
|
210
|
+
/* The mon, tue, wed etc day buttons */
|
211
|
+
div.datePicker th span.fd-day-header
|
212
|
+
{
|
213
|
+
text-align:center;
|
214
|
+
margin:0 auto;
|
215
|
+
font:900 1em Verdana, Sans-Serif;
|
216
|
+
text-decoration:none;
|
217
|
+
text-transform:lowercase;
|
218
|
+
cursor:pointer;
|
219
|
+
}
|
220
|
+
/* The table */
|
221
|
+
div.datePicker table
|
222
|
+
{
|
223
|
+
margin:0;
|
224
|
+
padding:0;
|
225
|
+
border:1px solid #ccc;
|
226
|
+
background:#fff url(/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif) repeat-x 0 -20px;
|
227
|
+
text-align:center;
|
228
|
+
border-spacing:2px;
|
229
|
+
padding:0.3em;
|
230
|
+
width:auto;
|
231
|
+
empty-cells:show;
|
232
|
+
border-radius:0.8em;
|
233
|
+
-moz-border-radius:0.8em;
|
234
|
+
-moz-box-shadow:0px 0px 5px #aaa;
|
235
|
+
}
|
236
|
+
/* Common TD & TH styling */
|
237
|
+
div.datePicker table td,
|
238
|
+
div.datePicker table tbody th
|
239
|
+
{
|
240
|
+
border:0 none;
|
241
|
+
padding:0;
|
242
|
+
text-align:center;
|
243
|
+
vertical-align:middle;
|
244
|
+
cursor:pointer;
|
245
|
+
background:#fff url(/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif) repeat-x 0 -40px;
|
246
|
+
width:3em;
|
247
|
+
height:3em;
|
248
|
+
overflow:hidden;
|
249
|
+
outline:transparent none 0px;
|
250
|
+
border:1px solid #ccc;
|
251
|
+
text-transform:none;
|
252
|
+
-moz-border-radius:2px;
|
253
|
+
border-radius:2px;
|
254
|
+
}
|
255
|
+
div.datePicker table td:focus,
|
256
|
+
div.datePicker table td:active
|
257
|
+
{
|
258
|
+
outline:0 none red;
|
259
|
+
}
|
260
|
+
div.datePicker table th
|
261
|
+
{
|
262
|
+
border:0 none;
|
263
|
+
padding:0;
|
264
|
+
font-weight:bold;
|
265
|
+
color:#222;
|
266
|
+
text-align:center;
|
267
|
+
vertical-align:middle;
|
268
|
+
text-transform:none;
|
269
|
+
}
|
270
|
+
div.datePicker table thead th
|
271
|
+
{
|
272
|
+
height:auto !important;
|
273
|
+
}
|
274
|
+
div.datePicker table tbody th
|
275
|
+
{
|
276
|
+
border:1px solid #dcdcdc;
|
277
|
+
}
|
278
|
+
/* Week number display */
|
279
|
+
div.datePicker table thead th.date-picker-week-header,
|
280
|
+
div.datePicker table tbody th.date-picker-week-header
|
281
|
+
{
|
282
|
+
font-style:oblique;
|
283
|
+
background:transparent;
|
284
|
+
cursor:default;
|
285
|
+
}
|
286
|
+
div.datePicker table thead th.date-picker-week-header
|
287
|
+
{
|
288
|
+
cursor:help;
|
289
|
+
border:0 none;
|
290
|
+
padding:0 0 0.2em 0;
|
291
|
+
}
|
292
|
+
/* tfoot status bar */
|
293
|
+
div.datePicker tfoot th
|
294
|
+
{
|
295
|
+
cursor:default;
|
296
|
+
font-weight:normal;
|
297
|
+
text-transform:uppercase;
|
298
|
+
letter-spacing:0.1em;
|
299
|
+
border:0 none;
|
300
|
+
background:#fff;
|
301
|
+
height:2.8em;
|
302
|
+
}
|
303
|
+
/* TD cell that is _not_ used to display a day of the month */
|
304
|
+
div.datePicker table tbody td.date-picker-unused
|
305
|
+
{
|
306
|
+
background:#fff url(/javascripts/date-picker/media/backstripes.gif);
|
307
|
+
border-color:#dcdcdc;
|
308
|
+
cursor:default !important;
|
309
|
+
}
|
310
|
+
|
311
|
+
/* The TH cell used to display the "month, year" title */
|
312
|
+
div.datePicker table thead th.date-picker-title
|
313
|
+
{
|
314
|
+
width:auto;
|
315
|
+
height:auto;
|
316
|
+
padding:0.4em 0;
|
317
|
+
}
|
318
|
+
/* The "mon tue wed etc" day header styles */
|
319
|
+
div.datePicker table thead th.date-picker-day-header
|
320
|
+
{
|
321
|
+
text-transform:lowercase;
|
322
|
+
cursor:help;
|
323
|
+
height:auto;
|
324
|
+
}
|
325
|
+
/* The "todays date" style */
|
326
|
+
div.datePicker table tbody td.date-picker-today
|
327
|
+
{
|
328
|
+
background:#fff url(/javascripts/date-picker/media/bullet2.gif) no-repeat 0 0;
|
329
|
+
color:rgb(100,100,100) !important;
|
330
|
+
}
|
331
|
+
|
332
|
+
div.datePicker table tbody td.month-out.date-picker-highlight
|
333
|
+
{
|
334
|
+
color:#aa8866 !important;
|
335
|
+
}
|
336
|
+
/* The "highlight days" style */
|
337
|
+
div.datePicker table tbody td.date-picker-highlight,
|
338
|
+
div.datePicker table thead th.date-picker-highlight
|
339
|
+
{
|
340
|
+
color:#a86666 !important;
|
341
|
+
}
|
342
|
+
/* The "active cursor" style */
|
343
|
+
div.datePicker table tbody td.date-picker-hover
|
344
|
+
{
|
345
|
+
background:#fff url(/javascripts/date-picker/media/bg_header.jpg) no-repeat 0 0;
|
346
|
+
cursor:pointer;
|
347
|
+
border-color:rgb(100,130,170) !important;
|
348
|
+
color:rgb(100,130,170);
|
349
|
+
text-shadow: 0px 1px 1px #fff;
|
350
|
+
}
|
351
|
+
/* The "disabled days" style */
|
352
|
+
div.datePicker table tbody td.day-disabled
|
353
|
+
{
|
354
|
+
background:#fff url(/javascripts/date-picker/media/backstripes.gif) no-repeat 0 0;
|
355
|
+
color:#aaa !important;
|
356
|
+
cursor:default;
|
357
|
+
text-decoration:line-through;
|
358
|
+
}
|
359
|
+
div.datePicker table tbody td.month-out
|
360
|
+
{
|
361
|
+
border-color:#ddd;
|
362
|
+
color:#aaa !important;
|
363
|
+
background:#fff url(/javascripts/date-picker/media/gradient-e5e5e5-ffffff.gif) repeat-x 0 -40px;
|
364
|
+
}
|
365
|
+
/* The "selected date" style */
|
366
|
+
div.datePicker table tbody td.date-picker-selected-date
|
367
|
+
{
|
368
|
+
color:#333 !important;
|
369
|
+
border-color:#333 !important;
|
370
|
+
}
|
371
|
+
/* The date "out of range" style */
|
372
|
+
div.datePicker table tbody td.out-of-range,
|
373
|
+
div.datePicker table tbody td.not-selectable
|
374
|
+
{
|
375
|
+
color:#ccc !important;
|
376
|
+
font-style:oblique;
|
377
|
+
background:#fcfcfc !important;
|
378
|
+
cursor:default !important;
|
379
|
+
}
|
380
|
+
/* Week number "out of range" && "month-out" styles */
|
381
|
+
div.datePicker table tbody th.month-out,
|
382
|
+
div.datePicker table tbody th.out-of-range
|
383
|
+
{
|
384
|
+
color:#aaa !important;
|
385
|
+
font-style:oblique;
|
386
|
+
background:#fcfcfc !important;
|
387
|
+
}
|
388
|
+
/* week numbers "out of range" */
|
389
|
+
div.datePicker table tbody th.out-of-range
|
390
|
+
{
|
391
|
+
opacity:0.6;
|
392
|
+
filter:alpha(opacity=60);
|
393
|
+
}
|
394
|
+
/* Used when the entire grid is full but the next/prev months dates cannot be selected */
|
395
|
+
div.datePicker table tbody td.not-selectable
|
396
|
+
{
|
397
|
+
opacity:0.8;
|
398
|
+
filter:alpha(opacity=80);
|
399
|
+
}
|
400
|
+
div.datePicker table tbody tr
|
401
|
+
{
|
402
|
+
display:table-row;
|
403
|
+
}
|
404
|
+
div.datePicker table tfoot sup
|
405
|
+
{
|
406
|
+
font-size:0.86em;
|
407
|
+
letter-spacing:normal;
|
408
|
+
text-transform:none;
|
409
|
+
height: 0;
|
410
|
+
line-height: 1;
|
411
|
+
position: relative;
|
412
|
+
top: -0.2em;
|
413
|
+
vertical-align: baseline !important;
|
414
|
+
vertical-align: top;
|
415
|
+
}
|
416
|
+
div.datePicker table thead th.date-picker-day-header,
|
417
|
+
div.datePicker table thead span.month-display,
|
418
|
+
div.datePicker table thead span.year-display
|
419
|
+
{
|
420
|
+
text-shadow: 0px 1px 1px #fff;
|
421
|
+
}
|
422
|
+
/* You can add focus effects (for everything but IE6) like so: */
|
423
|
+
|
424
|
+
div.datepicker-focus table.datePickerTable
|
425
|
+
{
|
426
|
+
border-color:#999 !important;
|
427
|
+
}
|
428
|
+
div.datePicker table tbody tr td:focus,
|
429
|
+
div.datePicker table tbody td.date-picker-hover
|
430
|
+
{
|
431
|
+
overflow:hidden;
|
432
|
+
outline:0px solid #ff0000;
|
433
|
+
-moz-outline: 0 none;
|
434
|
+
-o-highlight:0 none;
|
435
|
+
color:rgb(100,130,170) !important;
|
436
|
+
}
|
437
|
+
div.static-datepicker table
|
438
|
+
{
|
439
|
+
-moz-box-shadow:0 0 0 transparent;
|
440
|
+
|
441
|
+
}
|
442
|
+
div.datepicker-focus table
|
443
|
+
{
|
444
|
+
/* Naughty, naughty - but we add a highlight using the table's border colour */
|
445
|
+
outline:none;
|
446
|
+
-moz-box-shadow:0px 0px 5px #aaa;
|
447
|
+
}
|
448
|
+
*:-o-prefocus{outline : -o-highlight-border;}
|
449
|
+
|
450
|
+
/* INTERNET EXPLORER WOES
|
451
|
+
======================
|
452
|
+
|
453
|
+
Hover Effects
|
454
|
+
-------------
|
455
|
+
|
456
|
+
IE cannot deal with :focus on the TR so the datePicker script adds the class "dp-row-highlight" to the
|
457
|
+
row currently being hovered over. This should enable you to add hover effects if desired.
|
458
|
+
|
459
|
+
e.g. the following rule will highlight the cell borders in another colour when a row is moused over,
|
460
|
+
it looks like crap though so I didn't include the rule within the demo:
|
461
|
+
|
462
|
+
div.datePicker table tbody tr.dp-row-highlight td
|
463
|
+
{
|
464
|
+
border-color:#aaa;
|
465
|
+
}
|
466
|
+
*/
|
467
|
+
|
468
|
+
/* Remove the images for Internet Explorer <= v6 using the "* html" hack
|
469
|
+
This is a workaround for a nasty IE6 bug that never caches background images on dynamically created DOM nodes
|
470
|
+
which means that they are downloaded for every cell for every table - nasty! */
|
471
|
+
* html div.datePicker table td
|
472
|
+
{
|
473
|
+
background-image:none;
|
474
|
+
}
|
475
|
+
* html div.datePicker table td.date-picker-unused
|
476
|
+
{
|
477
|
+
background:#f2f2f2;
|
478
|
+
}
|
479
|
+
body.fd-drag-active
|
480
|
+
{
|
481
|
+
-webkit-user-select:none;
|
482
|
+
}
|
483
|
+
/* Chrome has problems with the -webkit-box-shadow and -webkit-border-radius styles together
|
484
|
+
Remove one or the other to get things looking less ugly */
|
485
|
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
486
|
+
div.datePicker table
|
487
|
+
{
|
488
|
+
border-spacing:0.3em;
|
489
|
+
/* Naughty, naughty */
|
490
|
+
-webkit-box-shadow:0px 0px 5px #aaa;
|
491
|
+
-webkit-border-radius:0.8em;
|
492
|
+
}
|
493
|
+
div.static-datepicker table
|
494
|
+
{
|
495
|
+
-webkit-box-shadow:0 0 0 transparent;
|
496
|
+
}
|
497
|
+
div.datepicker-focus table
|
498
|
+
{
|
499
|
+
-webkit-box-shadow:0px 0px 5px #aaa;
|
500
|
+
}
|
501
|
+
div.datePicker table td,
|
502
|
+
div.datePicker table tbody th
|
503
|
+
{
|
504
|
+
padding:0.1em;
|
505
|
+
-webkit-border-radius:2px;
|
506
|
+
}
|
507
|
+
div.datePicker table tbody td.date-picker-hover
|
508
|
+
{
|
509
|
+
-webkit-box-shadow:0px 0px 1px rgb(100,130,170);
|
510
|
+
}
|
511
|
+
}
|