refinerycms-registrations 0.1.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/app/assets/images/refinery/race_registrations/admin/chosen-sprite.png +0 -0
  3. data/app/assets/images/refinery/race_registrations/down_arrow.png +0 -0
  4. data/app/assets/images/refinery/race_registrations/up_arrow.png +0 -0
  5. data/app/assets/images/refinery/race_registrations/xls.gif +0 -0
  6. data/app/assets/javascripts/refinery/race_registrations/admin/jquery.chosen.min.js +0 -0
  7. data/app/assets/javascripts/refinery/race_registrations/admin/race_registrations.js +0 -0
  8. data/app/assets/javascripts/refinery/race_registrations/race_registrations.js +0 -0
  9. data/app/assets/stylesheets/refinery/race_registrations/admin/chosen.css.scss +0 -0
  10. data/app/assets/stylesheets/refinery/race_registrations/admin/race_registrations.css.scss +1 -0
  11. data/app/assets/stylesheets/refinery/race_registrations/admin/sortable_table.css.scss +0 -0
  12. data/app/assets/stylesheets/refinery/race_registrations/race_registrations.css.scss +0 -0
  13. data/app/controllers/refinery/race_registrations/admin/categories_controller.rb +6 -0
  14. data/app/controllers/refinery/race_registrations/admin/groups_controller.rb +7 -0
  15. data/app/controllers/refinery/race_registrations/admin/people_controller.rb +7 -3
  16. data/app/controllers/refinery/race_registrations/admin/registrations_controller.rb +6 -0
  17. data/app/controllers/refinery/race_registrations/categories_controller.rb +0 -0
  18. data/app/controllers/refinery/race_registrations/people_controller.rb +5 -1
  19. data/app/controllers/refinery/race_registrations/registrations_controller.rb +0 -0
  20. data/app/helpers/refinery/race_registrations/admin/people_helper.rb +5 -3
  21. data/app/helpers/refinery/race_registrations/registrations_helper.rb +0 -0
  22. data/app/models/refinery/race_registrations/category.rb +2 -6
  23. data/app/models/refinery/race_registrations/group.rb +0 -3
  24. data/app/models/refinery/race_registrations/group_category.rb +0 -0
  25. data/app/models/refinery/race_registrations/person.rb +6 -3
  26. data/app/models/refinery/race_registrations/registration.rb +3 -6
  27. data/app/views/layouts/print.html.erb +0 -0
  28. data/app/views/refinery/pages/registration_list.html.erb +0 -0
  29. data/app/views/refinery/race_registrations/admin/_submenu.html.erb +4 -15
  30. data/app/views/refinery/race_registrations/admin/categories/_categories.html.erb +0 -0
  31. data/app/views/refinery/race_registrations/admin/categories/_category.html.erb +0 -0
  32. data/app/views/refinery/race_registrations/admin/categories/_form.html.erb +0 -0
  33. data/app/views/refinery/race_registrations/admin/categories/_records.html.erb +0 -0
  34. data/app/views/refinery/race_registrations/admin/categories/_sortable_list.html.erb +0 -0
  35. data/app/views/refinery/race_registrations/admin/categories/edit.html.erb +0 -0
  36. data/app/views/refinery/race_registrations/admin/categories/index.html.erb +0 -0
  37. data/app/views/refinery/race_registrations/admin/categories/new.html.erb +0 -0
  38. data/app/views/refinery/race_registrations/admin/groups/_form.html.erb +1 -1
  39. data/app/views/refinery/race_registrations/admin/groups/_group.html.erb +0 -0
  40. data/app/views/refinery/race_registrations/admin/groups/_groups.html.erb +0 -0
  41. data/app/views/refinery/race_registrations/admin/groups/_records.html.erb +0 -0
  42. data/app/views/refinery/race_registrations/admin/groups/_sortable_list.html.erb +0 -0
  43. data/app/views/refinery/race_registrations/admin/groups/edit.html.erb +0 -0
  44. data/app/views/refinery/race_registrations/admin/groups/index.html.erb +0 -0
  45. data/app/views/refinery/race_registrations/admin/groups/new.html.erb +0 -0
  46. data/app/views/refinery/race_registrations/admin/people/_form.html.erb +0 -0
  47. data/app/views/refinery/race_registrations/admin/people/_people.html.erb +0 -0
  48. data/app/views/refinery/race_registrations/admin/people/_person.html.erb +0 -0
  49. data/app/views/refinery/race_registrations/admin/people/_records.html.erb +0 -0
  50. data/app/views/refinery/race_registrations/admin/people/edit.html.erb +0 -0
  51. data/app/views/refinery/race_registrations/admin/people/index.html.erb +0 -0
  52. data/app/views/refinery/race_registrations/admin/people/index.js.erb +0 -0
  53. data/app/views/refinery/race_registrations/admin/people/new.html.erb +0 -0
  54. data/app/views/refinery/race_registrations/admin/registrations/_form.html.erb +1 -1
  55. data/app/views/refinery/race_registrations/admin/registrations/_records.html.erb +0 -0
  56. data/app/views/refinery/race_registrations/admin/registrations/_registration.html.erb +0 -0
  57. data/app/views/refinery/race_registrations/admin/registrations/_registrations.html.erb +0 -0
  58. data/app/views/refinery/race_registrations/admin/registrations/_sortable_list.html.erb +0 -0
  59. data/app/views/refinery/race_registrations/admin/registrations/edit.html.erb +0 -0
  60. data/app/views/refinery/race_registrations/admin/registrations/index.html.erb +0 -0
  61. data/app/views/refinery/race_registrations/admin/registrations/new.html.erb +0 -0
  62. data/app/views/refinery/race_registrations/categories/index.html.erb +0 -0
  63. data/app/views/refinery/race_registrations/categories/show.html.erb +0 -0
  64. data/app/views/refinery/race_registrations/groups/index.html.erb +0 -0
  65. data/app/views/refinery/race_registrations/groups/show.html.erb +0 -0
  66. data/app/views/refinery/race_registrations/people/_form.html.erb +9 -0
  67. data/app/views/refinery/race_registrations/people/_form_header.html.erb +0 -0
  68. data/app/views/refinery/race_registrations/people/new.html.erb +0 -0
  69. data/app/views/refinery/race_registrations/registrations/_registration.html.erb +0 -0
  70. data/app/views/refinery/race_registrations/registrations/_registration_chooser.html.erb +0 -0
  71. data/app/views/refinery/race_registrations/registrations/show.html.erb +0 -0
  72. data/app/views/refinery/race_registrations/registrations/show.xls.erb +0 -0
  73. data/config/initializers/asset.rb +1 -0
  74. data/config/initializers/refinery/core.rb +0 -0
  75. data/config/locales/en.yml +0 -0
  76. data/config/locales/es.yml +0 -0
  77. data/config/locales/fr.yml +0 -0
  78. data/config/locales/humanizer.de.yml +0 -0
  79. data/config/locales/humanizer.en.yml +0 -0
  80. data/config/locales/humanizer.es.yml +0 -0
  81. data/config/locales/humanizer.fi.yml +0 -0
  82. data/config/locales/humanizer.fr.yml +0 -0
  83. data/config/locales/humanizer.it.yml +0 -0
  84. data/config/locales/humanizer.nl.yml +0 -0
  85. data/config/locales/humanizer.pl.yml +0 -0
  86. data/config/locales/humanizer.pt-BR.yml +0 -0
  87. data/config/locales/humanizer.pt-PT.yml +0 -0
  88. data/config/locales/humanizer.ru.yml +0 -0
  89. data/config/locales/humanizer.sk.yml +0 -0
  90. data/config/locales/humanizer.zh-CN.yml +0 -0
  91. data/config/locales/nb.yml +0 -0
  92. data/config/locales/nl.yml +0 -0
  93. data/config/locales/sk.yml +0 -0
  94. data/config/routes.rb +0 -0
  95. data/db/migrate/1_create_race_registrations_registrations.rb +1 -1
  96. data/db/migrate/2_create_race_registrations_people.rb +1 -1
  97. data/db/migrate/3_create_race_registrations_categories.rb +1 -1
  98. data/db/migrate/4_create_race_registrations_groups.rb +1 -1
  99. data/db/migrate/5_create_race_registrations_group_categories.rb +1 -1
  100. data/db/migrate/6_add_registration_id_to_people.rb +0 -0
  101. data/db/migrate/7_add_group_id_to_registrations.rb +0 -0
  102. data/db/seeds.rb +2 -2
  103. data/lib/generators/refinery/registrations_generator.rb +0 -0
  104. data/lib/refinery/registrations.rb +0 -0
  105. data/lib/refinery/registrations/configuration.rb +0 -0
  106. data/lib/refinery/registrations/engine.rb +0 -3
  107. data/lib/refinery/registrations/extensions/pages_controller_extension.rb +0 -0
  108. data/lib/refinerycms-registrations.rb +0 -0
  109. data/lib/tasks/refinery/registrations.rake +0 -0
  110. data/readme.md +6 -4
  111. metadata +95 -102
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b1342b4c652e4423a25dd50ab88b1acd40d4ed3b
4
+ data.tar.gz: 66126da0418247ae12be69dea9d08cea958c0c14
5
+ SHA512:
6
+ metadata.gz: aff5d4eee35852a2d407d8c046ebe8346905446852d5658f7ccdcc44573c76b5a8cf7ef6f53281de3c6cec5c0f76ccc1eeae770a6c6f70888bd7f8b03c9884c3
7
+ data.tar.gz: d4eadb774c1ff9ce961d0066c605164246564ecf0f37cdbf8c0b009a6d6bba769307121af0b847105097f5de250954f95d6e1fa96b7494c3d6a9e93ea60f116b
@@ -27,6 +27,12 @@ module Refinery
27
27
 
28
28
  end
29
29
 
30
+ protected
31
+
32
+ def category_params
33
+ params.require(:category).permit(:title,:position)
34
+ end
35
+
30
36
  end
31
37
  end
32
38
  end
@@ -7,6 +7,13 @@ module Refinery
7
7
  :order => "position DESC",
8
8
  :xhr_paging => true
9
9
 
10
+
11
+ protected
12
+
13
+ def group_params
14
+ params.require(:group).permit(:title, :position, :category_ids => [])
15
+ end
16
+
10
17
  end
11
18
  end
12
19
  end
@@ -20,7 +20,7 @@ module Refinery
20
20
  def create
21
21
  @categories = Category.all
22
22
 
23
- @person = Person.new(params[:person])
23
+ @person = Person.new(person_params)
24
24
  @person.bypass_humanizer = true
25
25
 
26
26
 
@@ -31,22 +31,26 @@ module Refinery
31
31
  )
32
32
 
33
33
  find_all_people
34
- render :index
34
+ render :edit
35
35
  else
36
36
  render :action => 'new'
37
37
  end
38
38
 
39
39
  end
40
40
 
41
-
42
41
  def edit
43
42
  # @person comes from crud before_filter
44
43
  @categories = Registration.find(@person.registration_id).categories
45
44
  end
46
45
 
47
46
 
47
+
48
48
  protected
49
49
 
50
+ def person_params
51
+ params.require(:person).permit(:name, :surname, :country, :birth_date, :email, :club, :city, :notice, :position, :registration_id, :category_id, :humanizer_answer, :humanizer_question_id)
52
+ end
53
+
50
54
 
51
55
  def initialize_update
52
56
  # we need to create instance variables for collection_select. Without this method, crudify will call crudify's edit, no edit method in this file
@@ -7,6 +7,12 @@ module Refinery
7
7
  :order => "position DESC",
8
8
  :xhr_paging => true
9
9
 
10
+ protected
11
+
12
+ def registration_params
13
+ params.require(:registration).permit(:title, :locality, :race_date, :is_active, :start_date, :end_date, :position, :group_id)
14
+ end
15
+
10
16
  end
11
17
  end
12
18
  end
@@ -12,7 +12,7 @@ module Refinery
12
12
  end
13
13
 
14
14
  def create
15
- @person = Person.new(params[:person])
15
+ @person = Person.new(person_params)
16
16
 
17
17
  if @person.save
18
18
  redirect_to refinery.race_registrations_registration_path(:id=> @person.registration_id) , :notice => t('refinery.crudify.created', :what => @person.name + " " + @person.surname )
@@ -27,6 +27,10 @@ module Refinery
27
27
 
28
28
  protected
29
29
 
30
+ def person_params
31
+ params.require(:person).permit(:name, :surname, :country, :birth_date, :email, :club, :city, :notice, :position, :registration_id, :category_id, :humanizer_answer, :humanizer_question_id)
32
+ end
33
+
30
34
  def find_page
31
35
  @page = Refinery::Page.where(:link_url => "/race_registrations/people/new").first
32
36
  end
@@ -7,8 +7,10 @@ module Refinery
7
7
  css_class = column == sort_column ? "current_th #{sort_direction}" : nil
8
8
  direction = column == sort_column && sort_direction == "asc" ? "desc" : "asc"
9
9
 
10
- link_to title, refinery.race_registrations_admin_people_path(:sort => column, :direction => direction, :page => nil ), {:class => css_class}
11
- end
10
+ options = {:sort => column, :direction => direction, :page => nil, :person => params[:person], :search=> params[:search]}
11
+
12
+ link_to title, refinery.race_registrations_admin_people_path(options), {:class => css_class}
13
+ end
12
14
 
13
15
  def sort_column
14
16
  %w[name surname country birth_date email club city registration_id category_id created_at].include?(params[:sort]) ? params[:sort] : "id"
@@ -20,4 +22,4 @@ module Refinery
20
22
  end
21
23
  end
22
24
  end
23
- end
25
+ end
@@ -3,13 +3,9 @@ module Refinery
3
3
  class Category < Refinery::Core::BaseModel
4
4
  has_many :group_categories
5
5
  has_many :groups, :through => :group_categories
6
- has_many :people , :order => "surname ASC"
6
+ has_many :people
7
7
 
8
- default_scope order("position DESC")
9
-
10
- attr_accessible :title, :position
11
-
12
- acts_as_indexed :fields => [:title]
8
+ default_scope { order("position DESC") }
13
9
 
14
10
  validates :title, :presence => true, :uniqueness => true
15
11
  end
@@ -5,9 +5,6 @@ module Refinery
5
5
  has_many :categories, :through => :group_categories
6
6
  has_many :registration
7
7
 
8
- attr_accessible :title, :position, :category_ids
9
-
10
- acts_as_indexed :fields => [:title]
11
8
 
12
9
  validates :title, :presence => true, :uniqueness => true
13
10
 
@@ -8,7 +8,6 @@ module Refinery
8
8
  belongs_to :category
9
9
 
10
10
 
11
- attr_accessible :name, :surname, :country, :birth_date, :email, :club, :city, :notice, :position, :registration_id, :category_id, :humanizer_answer, :humanizer_question_id
12
11
  attr_accessor :registration_ids, :bypass_humanizer
13
12
 
14
13
  validates :name, :presence => true , :length => { :minimum => 2 }
@@ -35,7 +34,11 @@ module Refinery
35
34
  scope :in_category, lambda {|category_id, sort_column, sort_direction| where("category_id = ?", category_id).order(sort_column + " " + sort_direction) }
36
35
 
37
36
  def self.search(search, sort, person)
38
- registration_ids = person[:registration_ids].select{|reg_id| reg_id.to_i > 0 } if person.present?
37
+ registration_ids = nil
38
+
39
+ if person.present? && person[:registration_ids].present?
40
+ registration_ids = person[:registration_ids].select{|reg_id| reg_id.to_i > 0 }
41
+ end
39
42
 
40
43
  if search
41
44
  if sort != ""
@@ -44,7 +47,7 @@ module Refinery
44
47
  search_by_sort_and_registration_ids(search,"surname",registration_ids)
45
48
  end
46
49
  else
47
- scoped
50
+ search_by_registration_ids(registration_ids)
48
51
  end
49
52
  end
50
53
 
@@ -3,14 +3,11 @@ module Refinery
3
3
  class Registration < Refinery::Core::BaseModel
4
4
  has_many :people, :dependent => :destroy
5
5
  belongs_to :group
6
- has_many :categories , :through => :group , :order=> "position DESC"
6
+ has_many :categories , :through => :group
7
7
 
8
8
 
9
- default_scope order("position DESC")
9
+ default_scope { order("position DESC")}
10
10
 
11
- attr_accessible :title, :locality, :race_date, :is_active, :start_date, :end_date, :position, :group_id
12
-
13
- acts_as_indexed :fields => [:title, :locality]
14
11
 
15
12
  def self.to_csv(options = {})
16
13
  CSV.generate(options) do |csv|
@@ -29,7 +26,7 @@ module Refinery
29
26
  registrations = Arel::Table.new(::Refinery::RaceRegistrations::Registration.table_name)
30
27
  where(registrations[:end_date].eq(nil).or(registrations[:end_date].gt(Time.now)))
31
28
  }
32
- scope :active, where(:is_active => true)
29
+ scope :active, -> { where(:is_active => true) }
33
30
  scope :published, lambda {
34
31
  not_expired.active.where("start_date <= ?", Time.now).order(:position)
35
32
  }
File without changes
@@ -1,15 +1,4 @@
1
1
  <nav id='actions' class='multilist'>
2
- <ul class='search_list'>
3
- <li class='not_a_link'>
4
- <% resource = params[:controller].split(/\//).last %>
5
- <% if resource != "people" %>
6
- <%= render :partial => "/refinery/admin/search",
7
- :locals => {
8
- :url => eval("refinery.race_registrations_admin_#{resource}_path")
9
- } %>
10
- <% end %>
11
- </li>
12
- </ul>
13
2
 
14
3
  <ul class='collapsible_menu'>
15
4
  <li class='not_a_link'>
@@ -18,7 +7,7 @@
18
7
  </li>
19
8
  <li>
20
9
  <%= link_to t('.manage'), refinery.race_registrations_admin_registrations_path,
21
- :class => 'folder_icon' %>
10
+ :class => 'page_icon' %>
22
11
  </li>
23
12
  <li>
24
13
  <%= link_to t('refinery.race_registrations.admin.registrations.actions.create_new'), refinery.new_race_registrations_admin_registration_path,
@@ -33,7 +22,7 @@
33
22
  </li>
34
23
  <li>
35
24
  <%= link_to t('.manage'), refinery.race_registrations_admin_people_path,
36
- :class => 'folder_icon' %>
25
+ :class => 'page_icon' %>
37
26
  </li>
38
27
  <li>
39
28
  <%= link_to t('refinery.race_registrations.admin.people.actions.create_new'), refinery.new_race_registrations_admin_person_path,
@@ -48,7 +37,7 @@
48
37
  </li>
49
38
  <li>
50
39
  <%= link_to t('.manage'), refinery.race_registrations_admin_groups_path,
51
- :class => 'folder_icon' %>
40
+ :class => 'page_icon' %>
52
41
  </li>
53
42
  <li>
54
43
  <%= link_to t('refinery.race_registrations.admin.groups.actions.create_new'), refinery.new_race_registrations_admin_group_path,
@@ -65,7 +54,7 @@
65
54
  </li>
66
55
  <li>
67
56
  <%= link_to t('.manage'), refinery.race_registrations_admin_categories_path,
68
- :class => 'folder_icon' %>
57
+ :class => 'page_icon' %>
69
58
  </li>
70
59
  <li>
71
60
  <%= link_to t('refinery.race_registrations.admin.categories.actions.create_new'), refinery.new_race_registrations_admin_category_path,
@@ -11,7 +11,7 @@
11
11
 
12
12
  <div class='field'>
13
13
  <%= f.label :category_ids, t('refinery.plugins.categories.title') %>
14
- <%= f.collection_select(:category_ids, Refinery::RaceRegistrations::Category.all(:order=> "title ASC"), :id, :title,
14
+ <%= f.collection_select(:category_ids, Refinery::RaceRegistrations::Category.all.order("title ASC"), :id, :title,
15
15
  { },
16
16
  { :data => {:placeholder=> t('.choose_categories')}, :multiple=> true, :class=> "chzn-select"}) %>
17
17
  </div>
@@ -24,7 +24,7 @@
24
24
 
25
25
  <div class='field'>
26
26
  <%= f.label :group_id, t('refinery.plugins.groups.title') %>
27
- <%= f.collection_select(:group_id, Refinery::RaceRegistrations::Group.all(:order=> "position DESC"), :id, :title,
27
+ <%= f.collection_select(:group_id, Refinery::RaceRegistrations::Group.all.order("position DESC"), :id, :title,
28
28
  { :include_blank => true },
29
29
  { :data => {:placeholder=> t('.choose_groups')}, :multiple=> false, :class=> "chzn-select"}) %>
30
30
  </div>
@@ -65,6 +65,14 @@
65
65
  <option value="POL">POL</option>
66
66
  <option value="POL">HUN</option>
67
67
  <option value="AUT">AUT</option>
68
+ <option value="SVN">SVN</option>
69
+ <option value="RUS">RUS</option>
70
+ <option value="HRV">HRV</option>
71
+ <option value="FRA">FRA</option>
72
+ <option value="BEL">BEL</option>
73
+ <option value="DEU">DEU</option>
74
+ <option value="CHE">CHE</option>
75
+ <option value="ESP">ESP</option>
68
76
  <option value="" onclick="$('#person_country_select').replaceWith('<input type=text name=person[country] >');"><%= t('.country.different') %></option>
69
77
  </select>
70
78
  </div>
@@ -79,3 +87,4 @@
79
87
  <%= f.submit t('.save_registration') %>
80
88
  <% end -%>
81
89
 
90
+
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.precompile += %w( refinery/race_registrations/admin/race_registrations.css refinery/race_registrations/admin/sortable_table.css )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  class CreateRaceRegistrationsRegistrations < ActiveRecord::Migration
2
2
 
3
3
  def up
4
- create_table :refinery_race_registrations_registrations do |t|
4
+ create_table Refinery::RaceRegistrations::Registration.table_name do |t|
5
5
  t.string :title
6
6
  t.string :locality
7
7
  t.date :race_date
@@ -1,7 +1,7 @@
1
1
  class CreateRaceRegistrationsPeople < ActiveRecord::Migration
2
2
 
3
3
  def up
4
- create_table :refinery_race_registrations_people do |t|
4
+ create_table Refinery::RaceRegistrations::Person.table_name do |t|
5
5
  t.string :name
6
6
  t.string :surname
7
7
  t.string :country
@@ -1,7 +1,7 @@
1
1
  class CreateRaceRegistrationsCategories < ActiveRecord::Migration
2
2
 
3
3
  def up
4
- create_table :refinery_race_registrations_categories do |t|
4
+ create_table Refinery::RaceRegistrations::Category.table_name do |t|
5
5
  t.string :title
6
6
  t.integer :position
7
7
 
@@ -1,7 +1,7 @@
1
1
  class CreateRaceRegistrationsGroups < ActiveRecord::Migration
2
2
 
3
3
  def up
4
- create_table :refinery_race_registrations_groups do |t|
4
+ create_table Refinery::RaceRegistrations::Group.table_name do |t|
5
5
  t.string :title
6
6
  t.integer :position
7
7
 
@@ -1,7 +1,7 @@
1
1
  class CreateRaceRegistrationsGroupCategories < ActiveRecord::Migration
2
2
 
3
3
  def up
4
- create_table :refinery_race_registrations_group_categories do |t|
4
+ create_table Refinery::RaceRegistrations::GroupCategory.table_name do |t|
5
5
  t.integer :group_id
6
6
  t.integer :category_id
7
7
  end
@@ -1,4 +1,4 @@
1
- (Refinery.i18n_enabled? ? Refinery::I18n.frontend_locales : [:en]).each do |lang|
1
+ ( Refinery::I18n.frontend_locales ).each do |lang|
2
2
  I18n.locale = lang
3
3
 
4
4
  if defined?(Refinery::User)
@@ -24,7 +24,7 @@
24
24
  end
25
25
  end
26
26
 
27
- (Refinery.i18n_enabled? ? Refinery::I18n.frontend_locales : [:en]).each do |lang|
27
+ (Refinery::I18n.frontend_locales).each do |lang|
28
28
  I18n.locale = lang
29
29
 
30
30
  if defined?(Refinery::User)
File without changes
@@ -11,9 +11,6 @@ module Refinery
11
11
  plugin.name = "refinerycms-registrations"
12
12
  plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.race_registrations_admin_registrations_path }
13
13
  plugin.pathname = root
14
- plugin.activity = {
15
- :class_name => :'refinery/race_registrations/registration'
16
- }
17
14
  plugin.menu_match = %r{refinery/race_registrations(/.+)?$}
18
15
  end
19
16
  end
File without changes
File without changes
data/readme.md CHANGED
@@ -6,7 +6,7 @@ Developed for bike race registration, but you can override and modify for your n
6
6
 
7
7
  ## Requirements
8
8
 
9
- This version of refinerycms-registrations supports Rails 3.2.x and Refinery CMS ~> 2.0.8. Works with PostgreSQL, MySQL and Sqlite
9
+ This version of refinerycms-registrations supports Rails 4.2.x and Refinery CMS ~> 3.0.0. Works with PostgreSQL, MySQL and Sqlite
10
10
 
11
11
  ## Features
12
12
 
@@ -36,7 +36,7 @@ Antispam - humanizer is translated to 13 languages.
36
36
  Open up your ``Gemfile`` and add at the bottom this line:
37
37
 
38
38
  ```ruby
39
- gem 'refinerycms-registrations', '~> 0.1.0'
39
+ gem 'refinerycms-registrations', '~> 0.2.0'
40
40
  ```
41
41
 
42
42
  Now, run
@@ -83,7 +83,6 @@ rake assets:precompile
83
83
  ## Todo list
84
84
 
85
85
  * autocomplete in Club
86
- * tests
87
86
 
88
87
  ## Code
89
88
 
@@ -91,8 +90,11 @@ rake assets:precompile
91
90
 
92
91
 
93
92
  ## Testing
93
+ * cd to this engine path
94
+ * bundle install
95
+ * rake refinery:testing:dummy_app
96
+ * rake spec
94
97
 
95
- TODO
96
98
 
97
99
  ## License
98
100
 
metadata CHANGED
@@ -1,200 +1,193 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-registrations
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.2
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Martin Markech
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-29 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- type: :runtime
14
+ name: refinerycms-core
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 2.0.8
19
+ version: 3.0.5
20
+ type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
- none: false
25
23
  requirements:
26
- - - ~>
24
+ - - "~>"
27
25
  - !ruby/object:Gem::Version
28
- version: 2.0.8
29
- name: refinerycms-core
26
+ version: 3.0.5
30
27
  - !ruby/object:Gem::Dependency
31
- type: :runtime
28
+ name: humanizer
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
34
+ type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
- - - ! '>='
38
+ - - ">="
43
39
  - !ruby/object:Gem::Version
44
40
  version: '0'
45
- name: humanizer
46
41
  - !ruby/object:Gem::Dependency
47
- type: :development
42
+ name: refinerycms-testing
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 2.0.8
47
+ version: 3.0.5
48
+ type: :development
54
49
  prerelease: false
55
50
  version_requirements: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
- - - ~>
52
+ - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: 2.0.8
61
- name: refinerycms-testing
54
+ version: 3.0.5
62
55
  description: Ruby on Rails race registrations extension for Refinery CMS
63
56
  email: martin.markech@matho.sk
64
57
  executables: []
65
58
  extensions: []
66
59
  extra_rdoc_files: []
67
60
  files:
68
- - app/models/refinery/race_registrations/person.rb
69
- - app/models/refinery/race_registrations/category.rb
70
- - app/models/refinery/race_registrations/group.rb
71
- - app/models/refinery/race_registrations/group_category.rb
72
- - app/models/refinery/race_registrations/registration.rb
73
- - app/helpers/refinery/race_registrations/admin/people_helper.rb
74
- - app/helpers/refinery/race_registrations/registrations_helper.rb
75
- - app/assets/stylesheets/refinery/race_registrations/race_registrations.css.scss
76
- - app/assets/stylesheets/refinery/race_registrations/admin/race_registrations.css.scss
77
- - app/assets/stylesheets/refinery/race_registrations/admin/sortable_table.css.scss
78
- - app/assets/stylesheets/refinery/race_registrations/admin/chosen.css.scss
79
61
  - app/assets/images/refinery/race_registrations/admin/chosen-sprite.png
80
62
  - app/assets/images/refinery/race_registrations/down_arrow.png
81
63
  - app/assets/images/refinery/race_registrations/up_arrow.png
82
64
  - app/assets/images/refinery/race_registrations/xls.gif
83
- - app/assets/javascripts/refinery/race_registrations/admin/race_registrations.js
84
65
  - app/assets/javascripts/refinery/race_registrations/admin/jquery.chosen.min.js
66
+ - app/assets/javascripts/refinery/race_registrations/admin/race_registrations.js
85
67
  - app/assets/javascripts/refinery/race_registrations/race_registrations.js
86
- - app/controllers/refinery/race_registrations/admin/groups_controller.rb
87
- - app/controllers/refinery/race_registrations/admin/registrations_controller.rb
68
+ - app/assets/stylesheets/refinery/race_registrations/admin/chosen.css.scss
69
+ - app/assets/stylesheets/refinery/race_registrations/admin/race_registrations.css.scss
70
+ - app/assets/stylesheets/refinery/race_registrations/admin/sortable_table.css.scss
71
+ - app/assets/stylesheets/refinery/race_registrations/race_registrations.css.scss
88
72
  - app/controllers/refinery/race_registrations/admin/categories_controller.rb
73
+ - app/controllers/refinery/race_registrations/admin/groups_controller.rb
89
74
  - app/controllers/refinery/race_registrations/admin/people_controller.rb
90
- - app/controllers/refinery/race_registrations/registrations_controller.rb
75
+ - app/controllers/refinery/race_registrations/admin/registrations_controller.rb
91
76
  - app/controllers/refinery/race_registrations/categories_controller.rb
92
77
  - app/controllers/refinery/race_registrations/people_controller.rb
78
+ - app/controllers/refinery/race_registrations/registrations_controller.rb
79
+ - app/helpers/refinery/race_registrations/admin/people_helper.rb
80
+ - app/helpers/refinery/race_registrations/registrations_helper.rb
81
+ - app/models/refinery/race_registrations/category.rb
82
+ - app/models/refinery/race_registrations/group.rb
83
+ - app/models/refinery/race_registrations/group_category.rb
84
+ - app/models/refinery/race_registrations/person.rb
85
+ - app/models/refinery/race_registrations/registration.rb
93
86
  - app/views/layouts/print.html.erb
94
- - app/views/refinery/race_registrations/admin/people/index.html.erb
95
- - app/views/refinery/race_registrations/admin/people/index.js.erb
96
- - app/views/refinery/race_registrations/admin/people/_records.html.erb
97
- - app/views/refinery/race_registrations/admin/people/new.html.erb
98
- - app/views/refinery/race_registrations/admin/people/edit.html.erb
99
- - app/views/refinery/race_registrations/admin/people/_person.html.erb
100
- - app/views/refinery/race_registrations/admin/people/_form.html.erb
101
- - app/views/refinery/race_registrations/admin/people/_people.html.erb
87
+ - app/views/refinery/pages/registration_list.html.erb
102
88
  - app/views/refinery/race_registrations/admin/_submenu.html.erb
103
- - app/views/refinery/race_registrations/admin/categories/index.html.erb
104
- - app/views/refinery/race_registrations/admin/categories/_sortable_list.html.erb
89
+ - app/views/refinery/race_registrations/admin/categories/_categories.html.erb
105
90
  - app/views/refinery/race_registrations/admin/categories/_category.html.erb
91
+ - app/views/refinery/race_registrations/admin/categories/_form.html.erb
106
92
  - app/views/refinery/race_registrations/admin/categories/_records.html.erb
107
- - app/views/refinery/race_registrations/admin/categories/new.html.erb
93
+ - app/views/refinery/race_registrations/admin/categories/_sortable_list.html.erb
108
94
  - app/views/refinery/race_registrations/admin/categories/edit.html.erb
109
- - app/views/refinery/race_registrations/admin/categories/_categories.html.erb
110
- - app/views/refinery/race_registrations/admin/categories/_form.html.erb
111
- - app/views/refinery/race_registrations/admin/registrations/index.html.erb
112
- - app/views/refinery/race_registrations/admin/registrations/_sortable_list.html.erb
95
+ - app/views/refinery/race_registrations/admin/categories/index.html.erb
96
+ - app/views/refinery/race_registrations/admin/categories/new.html.erb
97
+ - app/views/refinery/race_registrations/admin/groups/_form.html.erb
98
+ - app/views/refinery/race_registrations/admin/groups/_group.html.erb
99
+ - app/views/refinery/race_registrations/admin/groups/_groups.html.erb
100
+ - app/views/refinery/race_registrations/admin/groups/_records.html.erb
101
+ - app/views/refinery/race_registrations/admin/groups/_sortable_list.html.erb
102
+ - app/views/refinery/race_registrations/admin/groups/edit.html.erb
103
+ - app/views/refinery/race_registrations/admin/groups/index.html.erb
104
+ - app/views/refinery/race_registrations/admin/groups/new.html.erb
105
+ - app/views/refinery/race_registrations/admin/people/_form.html.erb
106
+ - app/views/refinery/race_registrations/admin/people/_people.html.erb
107
+ - app/views/refinery/race_registrations/admin/people/_person.html.erb
108
+ - app/views/refinery/race_registrations/admin/people/_records.html.erb
109
+ - app/views/refinery/race_registrations/admin/people/edit.html.erb
110
+ - app/views/refinery/race_registrations/admin/people/index.html.erb
111
+ - app/views/refinery/race_registrations/admin/people/index.js.erb
112
+ - app/views/refinery/race_registrations/admin/people/new.html.erb
113
+ - app/views/refinery/race_registrations/admin/registrations/_form.html.erb
113
114
  - app/views/refinery/race_registrations/admin/registrations/_records.html.erb
114
- - app/views/refinery/race_registrations/admin/registrations/new.html.erb
115
+ - app/views/refinery/race_registrations/admin/registrations/_registration.html.erb
115
116
  - app/views/refinery/race_registrations/admin/registrations/_registrations.html.erb
117
+ - app/views/refinery/race_registrations/admin/registrations/_sortable_list.html.erb
116
118
  - app/views/refinery/race_registrations/admin/registrations/edit.html.erb
117
- - app/views/refinery/race_registrations/admin/registrations/_form.html.erb
118
- - app/views/refinery/race_registrations/admin/registrations/_registration.html.erb
119
- - app/views/refinery/race_registrations/admin/groups/index.html.erb
120
- - app/views/refinery/race_registrations/admin/groups/_sortable_list.html.erb
121
- - app/views/refinery/race_registrations/admin/groups/_records.html.erb
122
- - app/views/refinery/race_registrations/admin/groups/new.html.erb
123
- - app/views/refinery/race_registrations/admin/groups/_group.html.erb
124
- - app/views/refinery/race_registrations/admin/groups/edit.html.erb
125
- - app/views/refinery/race_registrations/admin/groups/_form.html.erb
126
- - app/views/refinery/race_registrations/admin/groups/_groups.html.erb
127
- - app/views/refinery/race_registrations/people/new.html.erb
128
- - app/views/refinery/race_registrations/people/_form.html.erb
129
- - app/views/refinery/race_registrations/people/_form_header.html.erb
119
+ - app/views/refinery/race_registrations/admin/registrations/index.html.erb
120
+ - app/views/refinery/race_registrations/admin/registrations/new.html.erb
130
121
  - app/views/refinery/race_registrations/categories/index.html.erb
131
122
  - app/views/refinery/race_registrations/categories/show.html.erb
132
- - app/views/refinery/race_registrations/registrations/show.html.erb
133
- - app/views/refinery/race_registrations/registrations/show.xls.erb
134
- - app/views/refinery/race_registrations/registrations/_registration_chooser.html.erb
135
- - app/views/refinery/race_registrations/registrations/_registration.html.erb
136
123
  - app/views/refinery/race_registrations/groups/index.html.erb
137
124
  - app/views/refinery/race_registrations/groups/show.html.erb
138
- - app/views/refinery/pages/registration_list.html.erb
139
- - config/locales/humanizer.pt-BR.yml
140
- - config/locales/humanizer.sk.yml
141
- - config/locales/humanizer.pl.yml
142
- - config/locales/humanizer.it.yml
143
- - config/locales/nl.yml
144
- - config/locales/humanizer.fi.yml
145
- - config/locales/es.yml
146
- - config/locales/humanizer.fr.yml
147
- - config/locales/humanizer.es.yml
148
- - config/locales/humanizer.ru.yml
125
+ - app/views/refinery/race_registrations/people/_form.html.erb
126
+ - app/views/refinery/race_registrations/people/_form_header.html.erb
127
+ - app/views/refinery/race_registrations/people/new.html.erb
128
+ - app/views/refinery/race_registrations/registrations/_registration.html.erb
129
+ - app/views/refinery/race_registrations/registrations/_registration_chooser.html.erb
130
+ - app/views/refinery/race_registrations/registrations/show.html.erb
131
+ - app/views/refinery/race_registrations/registrations/show.xls.erb
132
+ - config/initializers/asset.rb
133
+ - config/initializers/refinery/core.rb
149
134
  - config/locales/en.yml
135
+ - config/locales/es.yml
136
+ - config/locales/fr.yml
150
137
  - config/locales/humanizer.de.yml
151
138
  - config/locales/humanizer.en.yml
152
- - config/locales/sk.yml
153
- - config/locales/nb.yml
154
- - config/locales/humanizer.zh-CN.yml
155
- - config/locales/humanizer.pt-PT.yml
139
+ - config/locales/humanizer.es.yml
140
+ - config/locales/humanizer.fi.yml
141
+ - config/locales/humanizer.fr.yml
142
+ - config/locales/humanizer.it.yml
156
143
  - config/locales/humanizer.nl.yml
157
- - config/locales/fr.yml
144
+ - config/locales/humanizer.pl.yml
145
+ - config/locales/humanizer.pt-BR.yml
146
+ - config/locales/humanizer.pt-PT.yml
147
+ - config/locales/humanizer.ru.yml
148
+ - config/locales/humanizer.sk.yml
149
+ - config/locales/humanizer.zh-CN.yml
150
+ - config/locales/nb.yml
151
+ - config/locales/nl.yml
152
+ - config/locales/sk.yml
158
153
  - config/routes.rb
159
- - config/initializers/refinery/core.rb
160
- - db/migrate/3_create_race_registrations_categories.rb
161
- - db/migrate/6_add_registration_id_to_people.rb
154
+ - db/migrate/1_create_race_registrations_registrations.rb
162
155
  - db/migrate/2_create_race_registrations_people.rb
156
+ - db/migrate/3_create_race_registrations_categories.rb
163
157
  - db/migrate/4_create_race_registrations_groups.rb
164
158
  - db/migrate/5_create_race_registrations_group_categories.rb
159
+ - db/migrate/6_add_registration_id_to_people.rb
165
160
  - db/migrate/7_add_group_id_to_registrations.rb
166
- - db/migrate/1_create_race_registrations_registrations.rb
167
161
  - db/seeds.rb
168
162
  - lib/generators/refinery/registrations_generator.rb
169
- - lib/tasks/refinery/registrations.rake
170
- - lib/refinerycms-registrations.rb
171
163
  - lib/refinery/registrations.rb
172
164
  - lib/refinery/registrations/configuration.rb
173
- - lib/refinery/registrations/extensions/pages_controller_extension.rb
174
165
  - lib/refinery/registrations/engine.rb
166
+ - lib/refinery/registrations/extensions/pages_controller_extension.rb
167
+ - lib/refinerycms-registrations.rb
168
+ - lib/tasks/refinery/registrations.rake
175
169
  - readme.md
176
170
  homepage: http://github.com/Matho/refinerycms-registrations
177
171
  licenses: []
172
+ metadata: {}
178
173
  post_install_message:
179
174
  rdoc_options: []
180
175
  require_paths:
181
176
  - lib
182
177
  required_ruby_version: !ruby/object:Gem::Requirement
183
- none: false
184
178
  requirements:
185
- - - ! '>='
179
+ - - ">="
186
180
  - !ruby/object:Gem::Version
187
181
  version: '0'
188
182
  required_rubygems_version: !ruby/object:Gem::Requirement
189
- none: false
190
183
  requirements:
191
- - - ! '>='
184
+ - - ">="
192
185
  - !ruby/object:Gem::Version
193
186
  version: '0'
194
187
  requirements: []
195
188
  rubyforge_project:
196
- rubygems_version: 1.8.24
189
+ rubygems_version: 2.4.8
197
190
  signing_key:
198
- specification_version: 3
191
+ specification_version: 4
199
192
  summary: Race registrations extension for Refinery CMS
200
193
  test_files: []