refinerycms-registrations 0.1.0

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.
Files changed (107) hide show
  1. data/app/assets/images/refinery/race_registrations/admin/chosen-sprite.png +0 -0
  2. data/app/assets/images/refinery/race_registrations/down_arrow.png +0 -0
  3. data/app/assets/images/refinery/race_registrations/up_arrow.png +0 -0
  4. data/app/assets/javascripts/refinery/race_registrations/admin/jquery.chosen.min.js +10 -0
  5. data/app/assets/javascripts/refinery/race_registrations/admin/race_registrations.js +53 -0
  6. data/app/assets/javascripts/refinery/race_registrations/race_registrations.js +41 -0
  7. data/app/assets/stylesheets/refinery/race_registrations/admin/chosen.css.scss +396 -0
  8. data/app/assets/stylesheets/refinery/race_registrations/admin/race_registrations.css.scss +13 -0
  9. data/app/assets/stylesheets/refinery/race_registrations/admin/sortable_table.css.scss +40 -0
  10. data/app/assets/stylesheets/refinery/race_registrations/race_registrations.css.scss +74 -0
  11. data/app/controllers/refinery/race_registrations/admin/categories_controller.rb +33 -0
  12. data/app/controllers/refinery/race_registrations/admin/groups_controller.rb +13 -0
  13. data/app/controllers/refinery/race_registrations/admin/people_controller.rb +89 -0
  14. data/app/controllers/refinery/race_registrations/admin/registrations_controller.rb +13 -0
  15. data/app/controllers/refinery/race_registrations/categories_controller.rb +17 -0
  16. data/app/controllers/refinery/race_registrations/people_controller.rb +36 -0
  17. data/app/controllers/refinery/race_registrations/registrations_controller.rb +40 -0
  18. data/app/helpers/refinery/race_registrations/admin/people_helper.rb +23 -0
  19. data/app/helpers/refinery/race_registrations/registrations_helper.rb +23 -0
  20. data/app/models/refinery/race_registrations/category.rb +17 -0
  21. data/app/models/refinery/race_registrations/group.rb +20 -0
  22. data/app/models/refinery/race_registrations/group_category.rb +8 -0
  23. data/app/models/refinery/race_registrations/person.rb +53 -0
  24. data/app/models/refinery/race_registrations/registration.rb +37 -0
  25. data/app/views/layouts/print.html.erb +14 -0
  26. data/app/views/refinery/pages/registration_list.html.erb +15 -0
  27. data/app/views/refinery/race_registrations/admin/_submenu.html.erb +77 -0
  28. data/app/views/refinery/race_registrations/admin/categories/_categories.html.erb +2 -0
  29. data/app/views/refinery/race_registrations/admin/categories/_category.html.erb +20 -0
  30. data/app/views/refinery/race_registrations/admin/categories/_form.html.erb +17 -0
  31. data/app/views/refinery/race_registrations/admin/categories/_records.html.erb +18 -0
  32. data/app/views/refinery/race_registrations/admin/categories/_sortable_list.html.erb +5 -0
  33. data/app/views/refinery/race_registrations/admin/categories/edit.html.erb +1 -0
  34. data/app/views/refinery/race_registrations/admin/categories/index.html.erb +5 -0
  35. data/app/views/refinery/race_registrations/admin/categories/new.html.erb +1 -0
  36. data/app/views/refinery/race_registrations/admin/groups/_form.html.erb +23 -0
  37. data/app/views/refinery/race_registrations/admin/groups/_group.html.erb +20 -0
  38. data/app/views/refinery/race_registrations/admin/groups/_groups.html.erb +2 -0
  39. data/app/views/refinery/race_registrations/admin/groups/_records.html.erb +18 -0
  40. data/app/views/refinery/race_registrations/admin/groups/_sortable_list.html.erb +5 -0
  41. data/app/views/refinery/race_registrations/admin/groups/edit.html.erb +1 -0
  42. data/app/views/refinery/race_registrations/admin/groups/index.html.erb +5 -0
  43. data/app/views/refinery/race_registrations/admin/groups/new.html.erb +1 -0
  44. data/app/views/refinery/race_registrations/admin/people/_form.html.erb +82 -0
  45. data/app/views/refinery/race_registrations/admin/people/_people.html.erb +14 -0
  46. data/app/views/refinery/race_registrations/admin/people/_person.html.erb +21 -0
  47. data/app/views/refinery/race_registrations/admin/people/_records.html.erb +11 -0
  48. data/app/views/refinery/race_registrations/admin/people/edit.html.erb +1 -0
  49. data/app/views/refinery/race_registrations/admin/people/index.html.erb +27 -0
  50. data/app/views/refinery/race_registrations/admin/people/index.js.erb +3 -0
  51. data/app/views/refinery/race_registrations/admin/people/new.html.erb +1 -0
  52. data/app/views/refinery/race_registrations/admin/registrations/_form.html.erb +54 -0
  53. data/app/views/refinery/race_registrations/admin/registrations/_records.html.erb +18 -0
  54. data/app/views/refinery/race_registrations/admin/registrations/_registration.html.erb +20 -0
  55. data/app/views/refinery/race_registrations/admin/registrations/_registrations.html.erb +2 -0
  56. data/app/views/refinery/race_registrations/admin/registrations/_sortable_list.html.erb +5 -0
  57. data/app/views/refinery/race_registrations/admin/registrations/edit.html.erb +1 -0
  58. data/app/views/refinery/race_registrations/admin/registrations/index.html.erb +5 -0
  59. data/app/views/refinery/race_registrations/admin/registrations/new.html.erb +1 -0
  60. data/app/views/refinery/race_registrations/categories/index.html.erb +11 -0
  61. data/app/views/refinery/race_registrations/categories/show.html.erb +27 -0
  62. data/app/views/refinery/race_registrations/groups/index.html.erb +11 -0
  63. data/app/views/refinery/race_registrations/groups/show.html.erb +27 -0
  64. data/app/views/refinery/race_registrations/people/_form.html.erb +81 -0
  65. data/app/views/refinery/race_registrations/people/_form_header.html.erb +8 -0
  66. data/app/views/refinery/race_registrations/people/new.html.erb +28 -0
  67. data/app/views/refinery/race_registrations/registrations/_registration.html.erb +47 -0
  68. data/app/views/refinery/race_registrations/registrations/_registration_chooser.html.erb +7 -0
  69. data/app/views/refinery/race_registrations/registrations/show.html.erb +21 -0
  70. data/config/initializers/refinery/core.rb +8 -0
  71. data/config/locales/en.yml +136 -0
  72. data/config/locales/es.yml +141 -0
  73. data/config/locales/fr.yml +139 -0
  74. data/config/locales/humanizer.de.yml +43 -0
  75. data/config/locales/humanizer.en.yml +43 -0
  76. data/config/locales/humanizer.es.yml +43 -0
  77. data/config/locales/humanizer.fi.yml +43 -0
  78. data/config/locales/humanizer.fr.yml +43 -0
  79. data/config/locales/humanizer.it.yml +43 -0
  80. data/config/locales/humanizer.nl.yml +43 -0
  81. data/config/locales/humanizer.pl.yml +43 -0
  82. data/config/locales/humanizer.pt-BR.yml +43 -0
  83. data/config/locales/humanizer.pt-PT.yml +43 -0
  84. data/config/locales/humanizer.ru.yml +43 -0
  85. data/config/locales/humanizer.sk.yml +9 -0
  86. data/config/locales/humanizer.zh-CN.yml +43 -0
  87. data/config/locales/nb.yml +141 -0
  88. data/config/locales/nl.yml +141 -0
  89. data/config/locales/sk.yml +138 -0
  90. data/config/routes.rb +44 -0
  91. data/db/migrate/1_create_race_registrations_registrations.rb +31 -0
  92. data/db/migrate/2_create_race_registrations_people.rb +33 -0
  93. data/db/migrate/3_create_race_registrations_categories.rb +26 -0
  94. data/db/migrate/4_create_race_registrations_groups.rb +26 -0
  95. data/db/migrate/5_create_race_registrations_group_categories.rb +18 -0
  96. data/db/migrate/6_add_registration_id_to_people.rb +20 -0
  97. data/db/migrate/7_add_group_id_to_registrations.rb +13 -0
  98. data/db/seeds.rb +51 -0
  99. data/lib/generators/refinery/registrations_generator.rb +18 -0
  100. data/lib/refinery/registrations.rb +22 -0
  101. data/lib/refinery/registrations/configuration.rb +11 -0
  102. data/lib/refinery/registrations/engine.rb +31 -0
  103. data/lib/refinery/registrations/extensions/pages_controller_extension.rb +18 -0
  104. data/lib/refinerycms-registrations.rb +1 -0
  105. data/lib/tasks/refinery/registrations.rake +13 -0
  106. data/readme.md +95 -0
  107. metadata +182 -0
@@ -0,0 +1,7 @@
1
+ <%= form_for :registration , :url=> refinery.redirect_race_registrations_registrations_path, :html=> {:onchange =>"$(this).submit();" } do |f| %>
2
+ <%= f.label :title %>
3
+ <%= f.collection_select :id, Refinery::RaceRegistrations::Registration.all, :id, :title %>
4
+
5
+ <%= f.submit t('.show') %>
6
+
7
+ <% end %>
@@ -0,0 +1,21 @@
1
+ <section id='left_body_content' >
2
+ <%= @page[:left_body] %>
3
+ </section>
4
+
5
+
6
+ <section id='middle_body_content_without_right'>
7
+ <div class="body">
8
+
9
+ <%= raw @page[:middle_body] %>
10
+ <%= render "registration_chooser" %>
11
+ <%= render "registration" %>
12
+ </div>
13
+ </section>
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
@@ -0,0 +1,8 @@
1
+ Refinery::Core.configure do |config|
2
+ # Register extra javascript for backend
3
+ config.register_javascript "refinery/race_registrations/admin/race_registrations.js"
4
+
5
+ #Register extra stylesheet for backend (optional options)
6
+ config.register_stylesheet "refinery/race_registrations/admin/race_registrations.css"
7
+ end
8
+
@@ -0,0 +1,136 @@
1
+ en:
2
+ refinery:
3
+ plugins:
4
+ groups:
5
+ title: Groups
6
+ categories:
7
+ title: Categories
8
+ people:
9
+ title: People
10
+ registrations:
11
+ title: Registrations
12
+ race_registrations:
13
+ admin:
14
+ submenu:
15
+ manage: Manage
16
+ groups:
17
+ form:
18
+ choose_categories: Choose categories
19
+ actions:
20
+ create_new: Add New Group
21
+ reorder: Reorder Groups
22
+ reorder_done: Done Reordering Groups
23
+ records:
24
+ title: Groups
25
+ sorry_no_results: Sorry! There are no results found.
26
+ no_items_yet: There are no Groups yet. Click "Add New Group" to add your
27
+ first group.
28
+ group:
29
+ view_live_html: View this group live <br/><em>(opens in a new window)</em>
30
+ edit: Edit this group
31
+ delete: Remove this group forever
32
+ categories:
33
+ actions:
34
+ create_new: Add New Category
35
+ reorder: Reorder Categories
36
+ reorder_done: Done Reordering Categories
37
+ records:
38
+ title: Categories
39
+ sorry_no_results: Sorry! There are no results found.
40
+ no_items_yet: There are no Categories yet. Click "Add New Category" to
41
+ add your first category.
42
+ category:
43
+ view_live_html: View this category live <br/><em>(opens in a new window)</em>
44
+ edit: Edit this category
45
+ delete: Remove this category forever
46
+ people:
47
+ index:
48
+ choose_registrations: Choose registrations
49
+ filter: Filter
50
+ search: Search
51
+ form:
52
+ choose_category: Choose category
53
+ actions:
54
+ create_new: Add New Person
55
+ reorder: Reorder People
56
+ reorder_done: Done Reordering People
57
+ records:
58
+ title: People
59
+ sorry_no_results: Sorry! There are no results found.
60
+ no_items_yet: There are no People yet. Click "Add New Person" to add your
61
+ first person.
62
+ person:
63
+ view_live_html: View this person live <br/><em>(opens in a new window)</em>
64
+ edit: Edit this person
65
+ delete: Remove this person forever
66
+ registrations:
67
+ form:
68
+ choose_groups: Choose group of categories
69
+ actions:
70
+ create_new: Add New Registration
71
+ reorder: Reorder Registrations
72
+ reorder_done: Done Reordering Registrations
73
+ records:
74
+ title: Registrations
75
+ sorry_no_results: Sorry! There are no results found.
76
+ no_items_yet: There are no Registrations yet. Click "Add New Registration"
77
+ to add your first registration.
78
+ registration:
79
+ view_live_html: View this registration live <br/><em>(opens in a new window)</em>
80
+ edit: Edit this registration
81
+ delete: Remove this registration forever
82
+ groups:
83
+ show:
84
+ other: Other Groups
85
+ categories:
86
+ show:
87
+ other: Other Categories
88
+ people:
89
+ form_header:
90
+ end_of_registration: 'Registration %{title} ends up at '
91
+ please_use_diacritics: 'Please, use diacritics. Thanks'
92
+ form:
93
+ club_if_you_have: Club (if none leave blank)
94
+ save_registration: Save registration
95
+ country:
96
+ different: different
97
+ new:
98
+ no_registration: No active registration.
99
+ show:
100
+ other: Other People
101
+ registrations:
102
+ registration:
103
+ number_of_registered_people: "Number of registered people:"
104
+ sorry_no_registrations: 'Sorry, no registration found.'
105
+ registration_chooser:
106
+ show: Zobraziť
107
+ show:
108
+ other: Other Registrations
109
+ activerecord:
110
+ attributes:
111
+ refinery/race_registrations/group:
112
+ title: Title
113
+ category_ids: Categories
114
+ refinery/race_registrations/category:
115
+ title: Title
116
+ refinery/race_registrations/person:
117
+ id: ID
118
+ name: Name
119
+ surname: Surname
120
+ country: Country
121
+ birth_date: Birth Date
122
+ email: Email
123
+ club: Club
124
+ city: City
125
+ notice: Notice
126
+ created_at: Date of registration
127
+ registration_id: Registration ID
128
+ category_id: Category ID
129
+ humanizer_answer: Antispam
130
+ refinery/race_registrations/registration:
131
+ title: Title
132
+ locality: Locality
133
+ race_date: Race Date
134
+ is_active: Is Active
135
+ start_date: Start Date
136
+ end_date: End Date
@@ -0,0 +1,141 @@
1
+ es:
2
+ refinery:
3
+ plugins:
4
+ groups:
5
+ title: Groups
6
+ categories:
7
+ title: Categories
8
+ people:
9
+ title: People
10
+ registrations:
11
+ title: Registrations
12
+ race_registrations:
13
+ admin:
14
+ submenu:
15
+ manage: Manage
16
+ groups:
17
+ form:
18
+ choose_categories: Choose categories
19
+ choose_groups: Choose group of categories
20
+ actions:
21
+ create_new: Crear nuevo group
22
+ reorder: Reordenar groups
23
+ reorder_done: Reordenación de groups completada
24
+ records:
25
+ title: Groups
26
+ sorry_no_results: Lo siento, no hay resultados
27
+ no_items_yet: No hay groups todavía. Pulsa en "Crear nuevo Group" para
28
+ crear tu primer group.
29
+ group:
30
+ view_live_html: Ver este group como abierto al público <br/><em>(abre
31
+ en ventana nueva)</em>
32
+ edit: Editar este group
33
+ delete: Borrar este group para siempre
34
+ categories:
35
+ actions:
36
+ create_new: Crear nuevo category
37
+ reorder: Reordenar categories
38
+ reorder_done: Reordenación de categories completada
39
+ records:
40
+ title: Categories
41
+ sorry_no_results: Lo siento, no hay resultados
42
+ no_items_yet: No hay categories todavía. Pulsa en "Crear nuevo Category"
43
+ para crear tu primer category.
44
+ category:
45
+ view_live_html: Ver este category como abierto al público <br/><em>(abre
46
+ en ventana nueva)</em>
47
+ edit: Editar este category
48
+ delete: Borrar este category para siempre
49
+ people:
50
+ index:
51
+ choose_registrations: Choose registrations
52
+ filter: Filter
53
+ search: Search
54
+ form:
55
+ choose_category: Choose category
56
+ actions:
57
+ create_new: Crear nuevo person
58
+ reorder: Reordenar people
59
+ reorder_done: Reordenación de people completada
60
+ records:
61
+ title: People
62
+ sorry_no_results: Lo siento, no hay resultados
63
+ no_items_yet: No hay people todavía. Pulsa en "Crear nuevo Person" para
64
+ crear tu primer person.
65
+ person:
66
+ view_live_html: Ver este person como abierto al público <br/><em>(abre
67
+ en ventana nueva)</em>
68
+ edit: Editar este person
69
+ delete: Borrar este person para siempre
70
+ registrations:
71
+ form:
72
+ choose_groups: Choose group of categories
73
+ actions:
74
+ create_new: Crear nuevo registration
75
+ reorder: Reordenar registrations
76
+ reorder_done: Reordenación de registrations completada
77
+ records:
78
+ title: Registrations
79
+ sorry_no_results: Lo siento, no hay resultados
80
+ no_items_yet: No hay registrations todavía. Pulsa en "Crear nuevo Registration"
81
+ para crear tu primer registration.
82
+ registration:
83
+ view_live_html: Ver este registration como abierto al público <br/><em>(abre
84
+ en ventana nueva)</em>
85
+ edit: Editar este registration
86
+ delete: Borrar este registration para siempre
87
+ groups:
88
+ show:
89
+ other: Otros groups
90
+ categories:
91
+ show:
92
+ other: Otros categories
93
+ people:
94
+ form_header:
95
+ end_of_registration: 'Registration %{title} ends up at '
96
+ please_use_diacritics: 'Please, use diacritics. Thanks'
97
+ form:
98
+ club_if_you_have: Club (if none leave blank)
99
+ save_registration: Save registration
100
+ country:
101
+ different: different
102
+ new:
103
+ no_registration: No active registration.
104
+ show:
105
+ other: Otros people
106
+ registrations:
107
+ registration:
108
+ number_of_registered_people: "Number of registered people:"
109
+ sorry_no_registrations: 'Sorry, no registration found.'
110
+ registration_chooser:
111
+ show: Zobraziť
112
+ show:
113
+ other: Otros registrations
114
+ activerecord:
115
+ attributes:
116
+ refinery/race_registrations/group:
117
+ title: Title
118
+ category_ids: Categories
119
+ refinery/race_registrations/category:
120
+ title: Title
121
+ refinery/race_registrations/person:
122
+ id: ID
123
+ name: Name
124
+ surname: Surname
125
+ country: Country
126
+ birth_date: Birth Date
127
+ email: Email
128
+ club: Club
129
+ city: City
130
+ notice: Notice
131
+ created_at: Date of registration
132
+ registration_id: Registration ID
133
+ category_id: Category ID
134
+ humanizer_answer: Antispam
135
+ refinery/race_registrations/registration:
136
+ title: Title
137
+ locality: Locality
138
+ race_date: Race Date
139
+ is_active: Is Active
140
+ start_date: Start Date
141
+ end_date: End Date
@@ -0,0 +1,139 @@
1
+ fr:
2
+ refinery:
3
+ plugins:
4
+ groups:
5
+ title: Groups
6
+ categories:
7
+ title: Categories
8
+ people:
9
+ title: People
10
+ registrations:
11
+ title: Registrations
12
+ race_registrations:
13
+ admin:
14
+ submenu:
15
+ manage: Manage
16
+ groups:
17
+ form:
18
+ choose_categories: Choose categories
19
+ choose_groups: Choose group of categories
20
+ actions:
21
+ create_new: Créer un(e) nouve(au/l/lle) Group
22
+ reorder: Réordonner les Groups
23
+ reorder_done: Fin de réordonnancement des Groups
24
+ records:
25
+ title: Groups
26
+ sorry_no_results: Désolé ! Aucun résultat.
27
+ no_items_yet: Il n'y a actuellement aucun(e) Group. Cliquer sur "Créer
28
+ un(e) nouve(au/l/lle) Group" pour créer votre premi(er/ère) group.
29
+ group:
30
+ view_live_html: Voir ce(t/tte) group <br/><em>(Ouvre une nouvelle fenêtre)</em>
31
+ edit: Modifier ce(t/tte) group
32
+ delete: Supprimer définitivement ce(t/tte) group
33
+ categories:
34
+ actions:
35
+ create_new: Créer un(e) nouve(au/l/lle) Category
36
+ reorder: Réordonner les Categories
37
+ reorder_done: Fin de réordonnancement des Categories
38
+ records:
39
+ title: Categories
40
+ sorry_no_results: Désolé ! Aucun résultat.
41
+ no_items_yet: Il n'y a actuellement aucun(e) Category. Cliquer sur "Créer
42
+ un(e) nouve(au/l/lle) Category" pour créer votre premi(er/ère) category.
43
+ category:
44
+ view_live_html: Voir ce(t/tte) category <br/><em>(Ouvre une nouvelle fenêtre)</em>
45
+ edit: Modifier ce(t/tte) category
46
+ delete: Supprimer définitivement ce(t/tte) category
47
+ people:
48
+ index:
49
+ choose_registrations: Choose registrations
50
+ filter: Filter
51
+ search: Search
52
+ form:
53
+ choose_category: Choose category
54
+ actions:
55
+ create_new: Créer un(e) nouve(au/l/lle) Person
56
+ reorder: Réordonner les People
57
+ reorder_done: Fin de réordonnancement des People
58
+ records:
59
+ title: People
60
+ sorry_no_results: Désolé ! Aucun résultat.
61
+ no_items_yet: Il n'y a actuellement aucun(e) Person. Cliquer sur "Créer
62
+ un(e) nouve(au/l/lle) Person" pour créer votre premi(er/ère) person.
63
+ person:
64
+ view_live_html: Voir ce(t/tte) person <br/><em>(Ouvre une nouvelle fenêtre)</em>
65
+ edit: Modifier ce(t/tte) person
66
+ delete: Supprimer définitivement ce(t/tte) person
67
+ registrations:
68
+ form:
69
+ choose_groups: Choose group of categories
70
+ actions:
71
+ create_new: Créer un(e) nouve(au/l/lle) Registration
72
+ reorder: Réordonner les Registrations
73
+ reorder_done: Fin de réordonnancement des Registrations
74
+ records:
75
+ title: Registrations
76
+ sorry_no_results: Désolé ! Aucun résultat.
77
+ no_items_yet: Il n'y a actuellement aucun(e) Registration. Cliquer sur
78
+ "Créer un(e) nouve(au/l/lle) Registration" pour créer votre premi(er/ère)
79
+ registration.
80
+ registration:
81
+ view_live_html: Voir ce(t/tte) registration <br/><em>(Ouvre une nouvelle
82
+ fenêtre)</em>
83
+ edit: Modifier ce(t/tte) registration
84
+ delete: Supprimer définitivement ce(t/tte) registration
85
+ groups:
86
+ show:
87
+ other: Autres Groups
88
+ categories:
89
+ show:
90
+ other: Autres Categories
91
+ people:
92
+ form_header:
93
+ end_of_registration: 'Registration %{title} ends up at '
94
+ please_use_diacritics: 'Please, use diacritics. Thanks'
95
+ form:
96
+ club_if_you_have: Club (if none leave blank)
97
+ save_registration: Save registration
98
+ country:
99
+ different: different
100
+ new:
101
+ no_registration: No active registration.
102
+ show:
103
+ other: Autres People
104
+ registrations:
105
+ registration:
106
+ number_of_registered_people: "Number of registered people:"
107
+ sorry_no_registrations: 'Sorry, no registration found.'
108
+ registration_chooser:
109
+ show: Zobraziť
110
+ show:
111
+ other: Autres Registrations
112
+ activerecord:
113
+ attributes:
114
+ refinery/race_registrations/group:
115
+ title: Title
116
+ category_ids: Categories
117
+ refinery/race_registrations/category:
118
+ title: Title
119
+ refinery/race_registrations/person:
120
+ id: ID
121
+ name: Name
122
+ surname: Surname
123
+ country: Country
124
+ birth_date: Birth Date
125
+ email: Email
126
+ club: Club
127
+ city: City
128
+ notice: Notice
129
+ created_at: Date of registration
130
+ registration_id: Registration ID
131
+ category_id: Category ID
132
+ humanizer_answer: Antispam
133
+ refinery/race_registrations/registration:
134
+ title: Title
135
+ locality: Locality
136
+ race_date: Race Date
137
+ is_active: Is Active
138
+ start_date: Start Date
139
+ end_date: End Date