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 +4 -4
- data/app/forms/tramway/event/event_form.rb +12 -0
- data/config/locales/models.yml +14 -0
- data/lib/tramway/event/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b22ae6f73b2b6cf206d19d4a02409bf52c33333e941d9ceb5cd2b763d9f8681e
|
4
|
+
data.tar.gz: 53b210e5a819d93a4f0513455747cb35a3e3262d5c1b588fb365ae0428c5aeed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: мероприятие
|
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.
|
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-
|
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
|