para 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/para/admin/loading-spinner.gif +0 -0
  3. data/app/assets/javascripts/para/admin/theme_actions.coffee +0 -1
  4. data/app/assets/javascripts/para/lib/turbolinks-forms.coffee +23 -0
  5. data/app/assets/javascripts/para/lib/turbolinks-loading.coffee +25 -0
  6. data/app/assets/stylesheets/para/{overrides → admin/src}/datetimepicker.sass +1 -3
  7. data/app/assets/stylesheets/para/{overrides → admin/src}/fuelux.sass +5 -8
  8. data/app/assets/stylesheets/para/{overrides → admin/src}/jasny.bootstrap.sass +1 -2
  9. data/app/assets/stylesheets/para/admin/src/page-loading.sass +24 -0
  10. data/app/assets/stylesheets/para/{overrides → admin/src}/redactor.sass +5 -7
  11. data/app/assets/stylesheets/para/{overrides → admin/src}/selectize.sass +4 -6
  12. data/app/assets/stylesheets/para/{overrides → admin/src}/slider.sass +0 -1
  13. data/app/assets/stylesheets/para/admin/theme/_base.sass +5 -3
  14. data/app/assets/stylesheets/para/admin/theme/_breadcrumb.sass +54 -16
  15. data/app/assets/stylesheets/para/admin/theme/_buttons.sass +0 -1
  16. data/app/assets/stylesheets/para/admin/theme/_checkable.sass +5 -6
  17. data/app/assets/stylesheets/para/admin/theme/_commonds.sass +10 -16
  18. data/app/assets/stylesheets/para/admin/theme/_dropdown.sass +1 -4
  19. data/app/assets/stylesheets/para/admin/theme/_form.sass +11 -3
  20. data/app/assets/stylesheets/para/admin/theme/_list.sass +5 -6
  21. data/app/assets/stylesheets/para/admin/theme/_navigation.sass +105 -109
  22. data/app/assets/stylesheets/para/admin/theme/_navtabs.sass +35 -15
  23. data/app/assets/stylesheets/para/admin/theme/_orderable.sass +2 -5
  24. data/app/assets/stylesheets/para/admin/theme/_panel.sass +20 -50
  25. data/app/assets/stylesheets/para/admin/theme/_sorting.sass +5 -7
  26. data/app/assets/stylesheets/para/admin/theme/_tree.sass +2 -4
  27. data/app/assets/stylesheets/para/admin.sass +1 -0
  28. data/app/assets/stylesheets/para/lib/_variables.scss +12 -12
  29. data/app/assets/stylesheets/para/overrides/responsive.sass +1 -2
  30. data/app/assets/stylesheets/para/overrides/theme.sass +10 -17
  31. data/app/controllers/para/admin/base_controller.rb +16 -5
  32. data/app/controllers/para/admin/crud_resources_controller.rb +43 -2
  33. data/app/controllers/para/admin/main_controller.rb +1 -1
  34. data/app/controllers/para/admin/resources_controller.rb +1 -1
  35. data/app/controllers/para/admin/settings_component_controller.rb +1 -3
  36. data/app/controllers/para/application_controller.rb +3 -3
  37. data/app/decorators/para/component/crud_decorator.rb +6 -2
  38. data/app/decorators/para/component/singleton_resource_decorator.rb +5 -1
  39. data/app/helpers/para/admin/base_helper.rb +9 -4
  40. data/app/helpers/para/admin/components_helper.rb +7 -0
  41. data/app/helpers/para/form_helper.rb +10 -2
  42. data/app/helpers/para/tag_helper.rb +12 -0
  43. data/app/models/para/ability.rb +12 -0
  44. data/app/models/para/component/base.rb +15 -7
  45. data/app/models/para/component/crud.rb +3 -1
  46. data/app/models/para/component/singleton_resource.rb +1 -1
  47. data/app/views/para/admin/crud_resources/index.html.haml +4 -0
  48. data/app/views/para/admin/dashboard.html.haml +10 -8
  49. data/app/views/para/admin/resources/_actions.html.haml +7 -0
  50. data/app/views/para/admin/resources/_add_button.html.haml +1 -0
  51. data/app/views/para/admin/resources/_filters.html.haml +1 -1
  52. data/app/views/para/admin/resources/_imports_menu.html.haml +22 -0
  53. data/app/views/para/admin/resources/_list.html.haml +8 -5
  54. data/app/views/para/admin/resources/_subclassable_add_button.html.haml +10 -0
  55. data/app/views/para/admin/resources/_tree.html.haml +1 -1
  56. data/app/views/para/admin/resources/_tree_item.html.haml +1 -1
  57. data/app/views/para/admin/resources/new.html.haml +1 -1
  58. data/app/views/para/admin/shared/_breadcrumbs.html.haml +8 -0
  59. data/app/views/para/admin/shared/_header.html.haml +26 -24
  60. data/app/views/para/admin/shared/_navigation.html.haml +5 -3
  61. data/app/views/para/form/_tabs.html.haml +13 -0
  62. data/app/views/para/inputs/_nested_many.html.haml +2 -2
  63. data/app/views/para/inputs/_nested_many_container.html.haml +1 -3
  64. data/config/locales/en.yml +10 -0
  65. data/config/locales/fr.yml +30 -15
  66. data/db/migrate/20160304113055_add_json_equality_operator_patch_to_postgres.rb +38 -0
  67. data/lib/generators/para/component/component_generator.rb +9 -29
  68. data/lib/generators/para/component/crud/crud_generator.rb +41 -0
  69. data/lib/generators/para/component/templates/component.rb +1 -1
  70. data/lib/generators/para/component/templates/decorator.rb +3 -0
  71. data/lib/generators/para/component/templates/resources_controller.rb +4 -0
  72. data/lib/generators/para/exporter/templates/base_exporter.rb +2 -0
  73. data/lib/generators/para/exporter/templates/csv_exporter.rb +2 -0
  74. data/lib/generators/para/filters/filters_generator.rb +16 -0
  75. data/lib/generators/para/filters/templates/_filters.html.haml +9 -0
  76. data/lib/generators/para/importer/importer_generator.rb +20 -0
  77. data/lib/generators/para/importer/templates/base_importer.rb +5 -0
  78. data/lib/generators/para/install/install_generator.rb +6 -25
  79. data/lib/generators/para/nested_fields/nested_fields_generator.rb +9 -0
  80. data/lib/para/attribute_field/base.rb +28 -0
  81. data/lib/para/attribute_field/belongs_to.rb +2 -0
  82. data/lib/para/attribute_field/boolean.rb +2 -0
  83. data/lib/para/attribute_field/datetime.rb +2 -0
  84. data/lib/para/attribute_field/enum.rb +22 -0
  85. data/lib/para/attribute_field/file.rb +2 -0
  86. data/lib/para/attribute_field/has_many.rb +2 -0
  87. data/lib/para/attribute_field/image.rb +2 -0
  88. data/lib/para/attribute_field/nested_many.rb +3 -0
  89. data/lib/para/attribute_field/nested_one.rb +6 -6
  90. data/lib/para/attribute_field/password.rb +2 -0
  91. data/lib/para/attribute_field/redactor.rb +2 -0
  92. data/lib/para/attribute_field/translation.rb +2 -0
  93. data/lib/para/attribute_field.rb +19 -0
  94. data/lib/para/attribute_field_mappings.rb +15 -29
  95. data/lib/para/breadcrumbs/breadcrumb.rb +43 -0
  96. data/lib/para/breadcrumbs/controller.rb +39 -0
  97. data/lib/para/breadcrumbs/manager.rb +19 -0
  98. data/lib/para/breadcrumbs.rb +9 -0
  99. data/lib/para/component/importable.rb +25 -0
  100. data/lib/para/component/subclassable.rb +27 -0
  101. data/lib/para/component.rb +5 -3
  102. data/lib/para/components_configuration.rb +18 -2
  103. data/lib/para/config.rb +25 -1
  104. data/lib/para/exporter/base.rb +13 -0
  105. data/lib/para/exporter/csv.rb +1 -1
  106. data/lib/para/form_builder/tabs.rb +56 -0
  107. data/lib/para/form_builder.rb +2 -0
  108. data/lib/para/generators/component_helpers.rb +57 -0
  109. data/lib/para/generators.rb +1 -0
  110. data/lib/para/importer/base.rb +23 -0
  111. data/lib/para/importer.rb +10 -0
  112. data/lib/para/inputs/nested_one_input.rb +13 -3
  113. data/lib/para/markup/resources_table.rb +48 -24
  114. data/lib/para/markup/resources_tree.rb +36 -0
  115. data/lib/para/model_field_parsers/store.rb +23 -0
  116. data/lib/para/model_field_parsers.rb +1 -0
  117. data/lib/para/orderable.rb +6 -3
  118. data/lib/para/plugins/routes.rb +25 -0
  119. data/lib/para/plugins.rb +11 -0
  120. data/lib/para/routes.rb +2 -25
  121. data/lib/para/version.rb +1 -1
  122. data/lib/para.rb +4 -2
  123. data/lib/rails/routing_mapper.rb +64 -5
  124. metadata +50 -64
  125. data/app/controllers/para/admin/crud_component_controller.rb +0 -17
  126. data/app/controllers/para/admin/singleton_resource_component_controller.rb +0 -14
  127. data/app/views/para/admin/component_sections/_form.html.haml +0 -10
  128. data/app/views/para/admin/component_sections/edit.html.haml +0 -5
  129. data/app/views/para/admin/component_sections/new.html.haml +0 -5
  130. data/app/views/para/admin/components/_form.html.haml +0 -15
  131. data/app/views/para/admin/components/new.html.haml +0 -4
  132. data/app/views/para/admin/shared/_breadcrumb.html.haml +0 -3
  133. /data/app/views/para/admin/{singleton_resource_component → singleton_resources}/show.html.haml +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: para
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin Ballestrino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2016-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: friendly_id
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '5.0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '5.0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: paperclip
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +122,6 @@ dependencies:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
124
  version: '1.9'
139
- - !ruby/object:Gem::Dependency
140
- name: rolify
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '3.4'
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '3.4'
153
125
  - !ruby/object:Gem::Dependency
154
126
  name: kaminari
155
127
  requirement: !ruby/object:Gem::Requirement
@@ -291,21 +263,7 @@ dependencies:
291
263
  - !ruby/object:Gem::Version
292
264
  version: '0'
293
265
  - !ruby/object:Gem::Dependency
294
- name: compass
295
- requirement: !ruby/object:Gem::Requirement
296
- requirements:
297
- - - ">="
298
- - !ruby/object:Gem::Version
299
- version: '0'
300
- type: :runtime
301
- prerelease: false
302
- version_requirements: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - ">="
305
- - !ruby/object:Gem::Version
306
- version: '0'
307
- - !ruby/object:Gem::Dependency
308
- name: compass-rails
266
+ name: font-awesome-sass
309
267
  requirement: !ruby/object:Gem::Requirement
310
268
  requirements:
311
269
  - - ">="
@@ -319,7 +277,7 @@ dependencies:
319
277
  - !ruby/object:Gem::Version
320
278
  version: '0'
321
279
  - !ruby/object:Gem::Dependency
322
- name: font-awesome-sass
280
+ name: autoprefixer-rails
323
281
  requirement: !ruby/object:Gem::Requirement
324
282
  requirements:
325
283
  - - ">="
@@ -347,13 +305,13 @@ dependencies:
347
305
  - !ruby/object:Gem::Version
348
306
  version: '0'
349
307
  - !ruby/object:Gem::Dependency
350
- name: sqlite3
308
+ name: pg
351
309
  requirement: !ruby/object:Gem::Requirement
352
310
  requirements:
353
311
  - - ">="
354
312
  - !ruby/object:Gem::Version
355
313
  version: '0'
356
- type: :development
314
+ type: :runtime
357
315
  prerelease: false
358
316
  version_requirements: !ruby/object:Gem::Requirement
359
317
  requirements:
@@ -371,6 +329,7 @@ files:
371
329
  - README.md
372
330
  - Rakefile
373
331
  - app/assets/images/para/admin/bg.png
332
+ - app/assets/images/para/admin/loading-spinner.gif
374
333
  - app/assets/javascripts/admin/app.coffee
375
334
  - app/assets/javascripts/para/admin.coffee
376
335
  - app/assets/javascripts/para/admin/table.coffee
@@ -379,9 +338,18 @@ files:
379
338
  - app/assets/javascripts/para/application.js
380
339
  - app/assets/javascripts/para/inputs/nested_many.coffee
381
340
  - app/assets/javascripts/para/lib/ajax.coffee
341
+ - app/assets/javascripts/para/lib/turbolinks-forms.coffee
342
+ - app/assets/javascripts/para/lib/turbolinks-loading.coffee
382
343
  - app/assets/stylesheets/admin/app.sass
383
344
  - app/assets/stylesheets/admin/theme.sass
384
345
  - app/assets/stylesheets/para/admin.sass
346
+ - app/assets/stylesheets/para/admin/src/datetimepicker.sass
347
+ - app/assets/stylesheets/para/admin/src/fuelux.sass
348
+ - app/assets/stylesheets/para/admin/src/jasny.bootstrap.sass
349
+ - app/assets/stylesheets/para/admin/src/page-loading.sass
350
+ - app/assets/stylesheets/para/admin/src/redactor.sass
351
+ - app/assets/stylesheets/para/admin/src/selectize.sass
352
+ - app/assets/stylesheets/para/admin/src/slider.sass
385
353
  - app/assets/stylesheets/para/admin/theme.sass
386
354
  - app/assets/stylesheets/para/admin/theme/_base.sass
387
355
  - app/assets/stylesheets/para/admin/theme/_breadcrumb.sass
@@ -402,24 +370,16 @@ files:
402
370
  - app/assets/stylesheets/para/admin/theme/_variables.sass
403
371
  - app/assets/stylesheets/para/application.css
404
372
  - app/assets/stylesheets/para/lib/_variables.scss
405
- - app/assets/stylesheets/para/overrides/datetimepicker.sass
406
- - app/assets/stylesheets/para/overrides/fuelux.sass
407
- - app/assets/stylesheets/para/overrides/jasny.bootstrap.sass
408
- - app/assets/stylesheets/para/overrides/redactor.sass
409
373
  - app/assets/stylesheets/para/overrides/responsive.sass
410
- - app/assets/stylesheets/para/overrides/selectize.sass
411
- - app/assets/stylesheets/para/overrides/slider.sass
412
374
  - app/assets/stylesheets/para/overrides/theme.sass
413
375
  - app/controllers/concerns/para/admin/resource_controller_concerns.rb
414
376
  - app/controllers/para/admin/base_controller.rb
415
377
  - app/controllers/para/admin/component_controller.rb
416
- - app/controllers/para/admin/crud_component_controller.rb
417
378
  - app/controllers/para/admin/crud_resources_controller.rb
418
379
  - app/controllers/para/admin/main_controller.rb
419
380
  - app/controllers/para/admin/resources_controller.rb
420
381
  - app/controllers/para/admin/settings_component_controller.rb
421
382
  - app/controllers/para/admin/settings_form_controller.rb
422
- - app/controllers/para/admin/singleton_resource_component_controller.rb
423
383
  - app/controllers/para/admin/singleton_resources_controller.rb
424
384
  - app/controllers/para/application_controller.rb
425
385
  - app/decorators/para/component/base_decorator.rb
@@ -442,6 +402,7 @@ files:
442
402
  - app/helpers/para/search_helper.rb
443
403
  - app/helpers/para/tag_helper.rb
444
404
  - app/helpers/para/tree_helper.rb
405
+ - app/models/para/ability.rb
445
406
  - app/models/para/component/base.rb
446
407
  - app/models/para/component/crud.rb
447
408
  - app/models/para/component/resource.rb
@@ -451,29 +412,30 @@ files:
451
412
  - app/models/para/component_section.rb
452
413
  - app/views/layouts/para/admin.html.haml
453
414
  - app/views/layouts/para/application.html.erb
454
- - app/views/para/admin/component_sections/_form.html.haml
455
- - app/views/para/admin/component_sections/edit.html.haml
456
- - app/views/para/admin/component_sections/new.html.haml
457
- - app/views/para/admin/components/_form.html.haml
458
- - app/views/para/admin/components/new.html.haml
459
415
  - app/views/para/admin/crud_component/show.html.haml
416
+ - app/views/para/admin/crud_resources/index.html.haml
460
417
  - app/views/para/admin/dashboard.html.haml
461
418
  - app/views/para/admin/main/index.html.haml
419
+ - app/views/para/admin/resources/_actions.html.haml
420
+ - app/views/para/admin/resources/_add_button.html.haml
462
421
  - app/views/para/admin/resources/_exports_menu.html.haml
463
422
  - app/views/para/admin/resources/_fields.html.haml
464
423
  - app/views/para/admin/resources/_filters.html.haml
465
424
  - app/views/para/admin/resources/_form.html.haml
425
+ - app/views/para/admin/resources/_imports_menu.html.haml
466
426
  - app/views/para/admin/resources/_list.html.haml
427
+ - app/views/para/admin/resources/_subclassable_add_button.html.haml
467
428
  - app/views/para/admin/resources/_table.html.haml
468
429
  - app/views/para/admin/resources/_tree.html.haml
469
430
  - app/views/para/admin/resources/_tree_item.html.haml
470
431
  - app/views/para/admin/resources/edit.html.haml
471
432
  - app/views/para/admin/resources/new.html.haml
472
433
  - app/views/para/admin/settings_component/show.html.haml
473
- - app/views/para/admin/shared/_breadcrumb.html.haml
434
+ - app/views/para/admin/shared/_breadcrumbs.html.haml
474
435
  - app/views/para/admin/shared/_header.html.haml
475
436
  - app/views/para/admin/shared/_navigation.html.haml
476
- - app/views/para/admin/singleton_resource_component/show.html.haml
437
+ - app/views/para/admin/singleton_resources/show.html.haml
438
+ - app/views/para/form/_tabs.html.haml
477
439
  - app/views/para/inputs/_nested_many.html.haml
478
440
  - app/views/para/inputs/_nested_many_container.html.haml
479
441
  - app/views/para/inputs/_nested_one.html.haml
@@ -486,16 +448,24 @@ files:
486
448
  - db/migrate/20140930121822_add_position_to_para_component_section.rb
487
449
  - db/migrate/20150129170710_create_para_component_resources.rb
488
450
  - db/migrate/20150203173219_add_identifier_to_para_components.rb
451
+ - db/migrate/20160304113055_add_json_equality_operator_patch_to_postgres.rb
489
452
  - lib/generators/para/admin_user/admin_user_generator.rb
490
453
  - lib/generators/para/component/component_generator.rb
454
+ - lib/generators/para/component/crud/crud_generator.rb
491
455
  - lib/generators/para/component/templates/component.rb
492
456
  - lib/generators/para/component/templates/component_controller.rb
457
+ - lib/generators/para/component/templates/decorator.rb
458
+ - lib/generators/para/component/templates/resources_controller.rb
493
459
  - lib/generators/para/component/templates/show.html.haml
494
460
  - lib/generators/para/exporter/exporter_generator.rb
495
461
  - lib/generators/para/exporter/templates/base_exporter.rb
496
462
  - lib/generators/para/exporter/templates/csv_exporter.rb
463
+ - lib/generators/para/filters/filters_generator.rb
464
+ - lib/generators/para/filters/templates/_filters.html.haml
497
465
  - lib/generators/para/form/form_generator.rb
498
466
  - lib/generators/para/form/templates/_form.html.haml
467
+ - lib/generators/para/importer/importer_generator.rb
468
+ - lib/generators/para/importer/templates/base_importer.rb
499
469
  - lib/generators/para/install/install_generator.rb
500
470
  - lib/generators/para/install/templates/components.rb
501
471
  - lib/generators/para/install/templates/initializer.rb
@@ -508,10 +478,12 @@ files:
508
478
  - lib/generators/para/table/table_generator.rb
509
479
  - lib/generators/para/table/templates/_table.html.haml
510
480
  - lib/para.rb
481
+ - lib/para/attribute_field.rb
511
482
  - lib/para/attribute_field/base.rb
512
483
  - lib/para/attribute_field/belongs_to.rb
513
484
  - lib/para/attribute_field/boolean.rb
514
485
  - lib/para/attribute_field/datetime.rb
486
+ - lib/para/attribute_field/enum.rb
515
487
  - lib/para/attribute_field/file.rb
516
488
  - lib/para/attribute_field/has_many.rb
517
489
  - lib/para/attribute_field/image.rb
@@ -522,9 +494,15 @@ files:
522
494
  - lib/para/attribute_field/relation.rb
523
495
  - lib/para/attribute_field/translation.rb
524
496
  - lib/para/attribute_field_mappings.rb
497
+ - lib/para/breadcrumbs.rb
498
+ - lib/para/breadcrumbs/breadcrumb.rb
499
+ - lib/para/breadcrumbs/controller.rb
500
+ - lib/para/breadcrumbs/manager.rb
525
501
  - lib/para/cloneable.rb
526
502
  - lib/para/component.rb
527
503
  - lib/para/component/exportable.rb
504
+ - lib/para/component/importable.rb
505
+ - lib/para/component/subclassable.rb
528
506
  - lib/para/components_configuration.rb
529
507
  - lib/para/config.rb
530
508
  - lib/para/engine.rb
@@ -541,10 +519,14 @@ files:
541
519
  - lib/para/form_builder/nested_form.rb
542
520
  - lib/para/form_builder/ordering.rb
543
521
  - lib/para/form_builder/settings.rb
522
+ - lib/para/form_builder/tabs.rb
544
523
  - lib/para/generators.rb
524
+ - lib/para/generators/component_helpers.rb
545
525
  - lib/para/generators/field_helpers.rb
546
526
  - lib/para/generators/name_helpers.rb
547
527
  - lib/para/generators/named_base.rb
528
+ - lib/para/importer.rb
529
+ - lib/para/importer/base.rb
548
530
  - lib/para/inputs.rb
549
531
  - lib/para/inputs/nested_many_input.rb
550
532
  - lib/para/inputs/nested_one_input.rb
@@ -554,6 +536,7 @@ files:
554
536
  - lib/para/markup/modal.rb
555
537
  - lib/para/markup/panel.rb
556
538
  - lib/para/markup/resources_table.rb
539
+ - lib/para/markup/resources_tree.rb
557
540
  - lib/para/model_field_parsers.rb
558
541
  - lib/para/model_field_parsers/base.rb
559
542
  - lib/para/model_field_parsers/devise.rb
@@ -562,7 +545,10 @@ files:
562
545
  - lib/para/model_field_parsers/paperclip.rb
563
546
  - lib/para/model_field_parsers/redactor.rb
564
547
  - lib/para/model_field_parsers/relations.rb
548
+ - lib/para/model_field_parsers/store.rb
565
549
  - lib/para/orderable.rb
550
+ - lib/para/plugins.rb
551
+ - lib/para/plugins/routes.rb
566
552
  - lib/para/routes.rb
567
553
  - lib/para/version.rb
568
554
  - lib/rails/relation_length_validator.rb
@@ -588,7 +574,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
588
574
  version: '0'
589
575
  requirements: []
590
576
  rubyforge_project:
591
- rubygems_version: 2.4.4
577
+ rubygems_version: 2.5.1
592
578
  signing_key:
593
579
  specification_version: 4
594
580
  summary: Rails admin engine
@@ -1,17 +0,0 @@
1
- require_dependency "para/application_controller"
2
-
3
- module Para
4
- module Admin
5
- class CrudComponentController < Para::Admin::BaseController
6
- load_and_authorize_component
7
-
8
- def show
9
- @q = @component.resources.search(params[:q])
10
- @resources = @q.result.page(params[:page])
11
-
12
- # Sort collection for orderable and trees
13
- @resources = @resources.ordered if @resources.respond_to?(:ordered)
14
- end
15
- end
16
- end
17
- end
@@ -1,14 +0,0 @@
1
- module Para
2
- module Admin
3
- class SingletonResourceComponentController < Para::Admin::BaseController
4
- load_and_authorize_component
5
-
6
- attr_accessor :resource
7
- helper_method :resource
8
-
9
- def show
10
- self.resource = @component.resource
11
- end
12
- end
13
- end
14
- end
@@ -1,10 +0,0 @@
1
- .page-content-wrap
2
- = simple_form_for [:admin, @component_section], as: :component_section, wrapper: :horizontal_form, html: { class: "form-horizontal form-group-separated" } do |form|
3
-
4
- .block.form-inputs
5
- = form.input :name
6
-
7
- .block.form-actions
8
- .col-sm-9.col-sm-offset-3
9
- = form.button :submit, class: 'btn-success'
10
- = link_to t('para.shared.cancel'), admin_path, class: 'btn btn-danger'
@@ -1,5 +0,0 @@
1
- .page-title
2
- %h1
3
- = resource_title_for(@component_section)
4
-
5
- = render partial: 'form'
@@ -1,5 +0,0 @@
1
- .page-title
2
- %h1
3
- = t('para.form.shared.new.title', model: @component_section.class.model_name.human)
4
-
5
- = render partial: 'form'
@@ -1,15 +0,0 @@
1
- .page-content-wrap
2
- = simple_form_for @component, as: :component, url: admin_component_section_components_path(@component_section), wrapper: :horizontal_form, html: { class: "form-horizontal form-group-separated" } do |form|
3
- .block.form-inputs
4
- = form.input :name
5
-
6
- / Configurable attributes
7
- - if form.object.class.configurable?
8
- - form.object.class.configurable_attributes.each do |key, options|
9
- = form.input key, options
10
-
11
- = form.hidden_field :type, value: params[:type] || form.object.type
12
-
13
- .block.form-actions
14
- .col-sm-9.col-sm-offset-3
15
- = form.button :submit, class: 'btn-success'
@@ -1,4 +0,0 @@
1
- .page-title
2
- %h1= t('para.form.shared.new.title', model: @component.class.model_name.human)
3
-
4
- = render partial: 'form'
@@ -1,3 +0,0 @@
1
- %ul.breadcrumb
2
- %li
3
- = link_to "Acceuil", admin_path