tramway-event 0.1.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a50d0d7c7c3d7b84a71d40703c99b0696b2365f3464095fa00934747d089f9d4
4
- data.tar.gz: 16f559275e3a9ad794c9bf6d685a7e7b1dcaed543ebecfc4cc35a954d67eaf99
3
+ metadata.gz: b22ae6f73b2b6cf206d19d4a02409bf52c33333e941d9ceb5cd2b763d9f8681e
4
+ data.tar.gz: 53b210e5a819d93a4f0513455747cb35a3e3262d5c1b588fb365ae0428c5aeed
5
5
  SHA512:
6
- metadata.gz: 7601f4318f78e3aea92320511bab49d579bf178d650bfcadbfd332359234b7d1339affbe6bc69940341fa28bc1c7db74df6793aeb9e6956cda5a5a9ca715d927
7
- data.tar.gz: 2af2479c105342712f3de5772d3d1dbd537d164ea72bbc5f28adb568b338f85e9286dcb54100c4f007461f9dec182ddfa8ec391d81bc198ee5db56c728a1ba0f
6
+ metadata.gz: 65aa858353c98836235acc260f41039e56c49087c9b4aafadf53c3ef7e159533de552fe2fa6c557e592fd4598447be38e931c709805e2776630d256b02426ae4
7
+ data.tar.gz: e4682df231a05059ef37a46406c07fb129a24d8901afd4970f36541cc3d156517f76e1e05eac45564290628a491b190df3af5350fb66a5a1f7a5cc2f93a560e9
@@ -0,0 +1,12 @@
1
+ class Tramway::Event::EventForm < ::Tramway::Core::ApplicationForm
2
+ properties :title, :description, :begin_date, :end_date
3
+
4
+ def initialize(object)
5
+ form_object = super object
6
+ form_properties title: :string,
7
+ description: :ckeditor,
8
+ begin_date: :default,
9
+ end_date: :default
10
+ form_object
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ ru:
2
+ activerecord:
3
+ models:
4
+ tramway/event/event: Мероприятие
5
+ attributes:
6
+ tramway/event/event:
7
+ title: Название
8
+ description: Описание
9
+ begin_date: Дата начала
10
+ end_date: Дата конца
11
+ cases:
12
+ tramway/event/event:
13
+ plural: мероприятия
14
+ genitive: мероприятие
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '0.1.1'
3
+ VERSION = '0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email:
@@ -25,6 +25,7 @@ files:
25
25
  - app/assets/stylesheets/tramway/event/application.css
26
26
  - app/controllers/tramway/event/application_controller.rb
27
27
  - app/decorators/tramway/event/event_decorator.rb
28
+ - app/forms/tramway/event/event_form.rb
28
29
  - app/helpers/tramway/event/application_helper.rb
29
30
  - app/jobs/tramway/event/application_job.rb
30
31
  - app/mailers/tramway/event/application_mailer.rb
@@ -32,6 +33,7 @@ files:
32
33
  - app/models/tramway/event/event.rb
33
34
  - app/views/layouts/tramway/event/application.html.erb
34
35
  - config/initializers/tramway.rb
36
+ - config/locales/models.yml
35
37
  - config/routes.rb
36
38
  - lib/tasks/tramway/event_tasks.rake
37
39
  - lib/tramway/event.rb