From 4fc5b87b3c7416f2e518e57343506af1107dcfea Mon Sep 17 00:00:00 2001 From: Felipe Moyano Date: Fri, 21 Sep 2018 21:11:21 -0500 Subject: [PATCH] Funcionalidad inicial ejercicio de prueba --- .idea/.generators | 8 + .idea/.rakeTasks | 7 + .idea/misc.xml | 7 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 390 ++++++++++++++++ .idea/xavy.iml | 34 ++ .rubocop.yml | 116 +++++ Gemfile | 13 +- Gemfile.lock | 49 +- README.md | 8 +- app/assets/images/1.jpg | Bin 0 -> 8833 bytes app/assets/images/2.jpg | Bin 0 -> 19111 bytes app/assets/images/3.jpg | Bin 0 -> 32080 bytes app/assets/images/logo.png | Bin 0 -> 11300 bytes app/assets/javascripts/admin/activities.js | 2 + app/assets/javascripts/application.js | 6 + .../javascripts/static_form_validation.js | 26 ++ app/assets/javascripts/venues.js | 2 + app/assets/stylesheets/admin.scss | 81 ++++ app/assets/stylesheets/application.css | 15 - app/assets/stylesheets/application.scss | 67 +++ app/assets/stylesheets/pages.scss | 3 + app/assets/stylesheets/venues.scss | 26 ++ .../admin/activities_controller.rb | 61 +++ .../admin/application_controller.rb | 3 + app/controllers/admin/venues_controller.rb | 61 +++ app/controllers/pages_controller.rb | 4 + app/controllers/venues_controller.rb | 9 + app/models/activity.rb | 22 + app/models/venue.rb | 23 + app/views/admin/activities/_activity.html.erb | 18 + app/views/admin/activities/_form.html.erb | 7 + app/views/admin/activities/edit.html.erb | 11 + app/views/admin/activities/index.html.erb | 25 + app/views/admin/activities/new.html.erb | 11 + app/views/admin/venues/_form.html.erb | 6 + app/views/admin/venues/_venue.html.erb | 16 + app/views/admin/venues/edit.html.erb | 11 + app/views/admin/venues/index.html.erb | 24 + app/views/admin/venues/new.html.erb | 11 + app/views/admin/venues/show.html.erb | 53 +++ app/views/layouts/_navigation.html.erb | 8 + app/views/layouts/admin.html.erb | 61 +++ app/views/layouts/application.html.erb | 23 +- app/views/pages/home.html.erb | 0 app/views/venues/_activity.html.erb | 12 + app/views/venues/_venue.html.erb | 22 + app/views/venues/index.html.erb | 13 + app/views/venues/show.html.erb | 18 + config/initializers/simple_form.rb | 182 ++++++++ config/initializers/simple_form_bootstrap.rb | 439 ++++++++++++++++++ config/locales/simple_form.en.yml | 31 ++ config/routes.rb | 11 + db/migrate/20180921165710_create_venues.rb | 10 + .../20180921170442_create_activities.rb | 11 + ...te_active_storage_tables.active_storage.rb | 26 ++ .../20180921204239_add_phone_to_venues.rb | 5 + ...921211200_add_description_to_activities.rb | 5 + db/schema.rb | 41 +- db/seeds.rb | 35 ++ lib/tasks/auto_annotate_models.rake | 54 +++ lib/templates/erb/scaffold/_form.html.erb | 15 + storage/UD/Wq/UDWq8G9ueR3bvrVEzB7piYAw | Bin 0 -> 19111 bytes storage/gn/NS/gnNSUZmFbXv1h5RsHDXHk3QD | Bin 0 -> 32080 bytes storage/hb/6F/hb6FaRGyztPJgMhedRWKkdFG | Bin 0 -> 32080 bytes storage/jA/vS/jAvSLfyAzW2RK9w6MCnEJfN5 | Bin 0 -> 19111 bytes storage/nH/c5/nHc5x4wtHE13rRrgUfkNEgXT | Bin 0 -> 8833 bytes storage/oU/Ex/oUExY3vo55dCJCY29idNgBjE | Bin 0 -> 8833 bytes .../admin/activities_controller_test.rb | 7 + .../admin/venues_controller_test.rb | 7 + test/controllers/pages_controller_test.rb | 7 + test/controllers/venues_controller_test.rb | 7 + test/fixtures/activities.yml | 28 ++ test/fixtures/venues.yml | 21 + test/models/activity_test.rb | 24 + test/models/venue_test.rb | 19 + 77 files changed, 2352 insertions(+), 40 deletions(-) create mode 100644 .idea/.generators create mode 100644 .idea/.rakeTasks create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 .idea/xavy.iml create mode 100644 .rubocop.yml create mode 100644 app/assets/images/1.jpg create mode 100644 app/assets/images/2.jpg create mode 100644 app/assets/images/3.jpg create mode 100644 app/assets/images/logo.png create mode 100644 app/assets/javascripts/admin/activities.js create mode 100644 app/assets/javascripts/static_form_validation.js create mode 100644 app/assets/javascripts/venues.js create mode 100644 app/assets/stylesheets/admin.scss delete mode 100644 app/assets/stylesheets/application.css create mode 100644 app/assets/stylesheets/application.scss create mode 100644 app/assets/stylesheets/pages.scss create mode 100644 app/assets/stylesheets/venues.scss create mode 100644 app/controllers/admin/activities_controller.rb create mode 100644 app/controllers/admin/application_controller.rb create mode 100644 app/controllers/admin/venues_controller.rb create mode 100644 app/controllers/pages_controller.rb create mode 100644 app/controllers/venues_controller.rb create mode 100644 app/models/activity.rb create mode 100644 app/models/venue.rb create mode 100644 app/views/admin/activities/_activity.html.erb create mode 100644 app/views/admin/activities/_form.html.erb create mode 100644 app/views/admin/activities/edit.html.erb create mode 100644 app/views/admin/activities/index.html.erb create mode 100644 app/views/admin/activities/new.html.erb create mode 100644 app/views/admin/venues/_form.html.erb create mode 100644 app/views/admin/venues/_venue.html.erb create mode 100644 app/views/admin/venues/edit.html.erb create mode 100644 app/views/admin/venues/index.html.erb create mode 100644 app/views/admin/venues/new.html.erb create mode 100644 app/views/admin/venues/show.html.erb create mode 100644 app/views/layouts/_navigation.html.erb create mode 100644 app/views/layouts/admin.html.erb create mode 100644 app/views/pages/home.html.erb create mode 100644 app/views/venues/_activity.html.erb create mode 100644 app/views/venues/_venue.html.erb create mode 100644 app/views/venues/index.html.erb create mode 100644 app/views/venues/show.html.erb create mode 100644 config/initializers/simple_form.rb create mode 100644 config/initializers/simple_form_bootstrap.rb create mode 100644 config/locales/simple_form.en.yml create mode 100644 db/migrate/20180921165710_create_venues.rb create mode 100644 db/migrate/20180921170442_create_activities.rb create mode 100644 db/migrate/20180921192550_create_active_storage_tables.active_storage.rb create mode 100644 db/migrate/20180921204239_add_phone_to_venues.rb create mode 100644 db/migrate/20180921211200_add_description_to_activities.rb create mode 100644 lib/tasks/auto_annotate_models.rake create mode 100644 lib/templates/erb/scaffold/_form.html.erb create mode 100644 storage/UD/Wq/UDWq8G9ueR3bvrVEzB7piYAw create mode 100644 storage/gn/NS/gnNSUZmFbXv1h5RsHDXHk3QD create mode 100644 storage/hb/6F/hb6FaRGyztPJgMhedRWKkdFG create mode 100644 storage/jA/vS/jAvSLfyAzW2RK9w6MCnEJfN5 create mode 100644 storage/nH/c5/nHc5x4wtHE13rRrgUfkNEgXT create mode 100644 storage/oU/Ex/oUExY3vo55dCJCY29idNgBjE create mode 100644 test/controllers/admin/activities_controller_test.rb create mode 100644 test/controllers/admin/venues_controller_test.rb create mode 100644 test/controllers/pages_controller_test.rb create mode 100644 test/controllers/venues_controller_test.rb create mode 100644 test/fixtures/activities.yml create mode 100644 test/fixtures/venues.yml create mode 100644 test/models/activity_test.rb create mode 100644 test/models/venue_test.rb diff --git a/.idea/.generators b/.idea/.generators new file mode 100644 index 0000000..1618976 --- /dev/null +++ b/.idea/.generators @@ -0,0 +1,8 @@ + + diff --git a/.idea/.rakeTasks b/.idea/.rakeTasks new file mode 100644 index 0000000..c6865d9 --- /dev/null +++ b/.idea/.rakeTasks @@ -0,0 +1,7 @@ + + diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..f79f7db --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..70c2879 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..39d6230 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + Assignment issuesJavaScript + + + CSS + + + Code quality toolsJavaScript + + + Code style issuesCSS + + + Code style issuesJavaScript + + + CoffeeScript + + + Control flow issuesCoffeeScript + + + Control flow issuesJavaScript + + + Cucumber + + + DOM issuesJavaScript + + + General + + + GeneralCoffeeScript + + + GeneralJavaScript + + + HTML + + + Internationalization issues + + + Invalid elementsCSS + + + JavaScript + + + JavaScript validity issuesJavaScript + + + Naming ConventionsRuby + + + Naming conventionsJavaScript + + + Potentially confusing code constructsJavaScript + + + Probable bugsCSS + + + Probable bugsCoffeeScript + + + Probable bugsJavaScript + + + RELAX NG + + + Rails + + + Ruby + + + SQL + + + XML + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +