fe 2.1.0 → 2.1.2
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.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/app/assets/javascripts/fe/fe.admin.js +1 -1
- data/app/assets/javascripts/fe/fe.public.nojquery.js.erb +410 -408
- data/app/controllers/concerns/fe/admin/question_sheets_controller_concern.rb +3 -3
- data/app/controllers/concerns/fe/answer_sheets_controller_concern.rb +16 -2
- data/app/controllers/fe/admin/elements_controller.rb +0 -1
- data/app/controllers/fe/admin/email_templates_controller.rb +15 -15
- data/app/controllers/fe/admin/question_pages_controller.rb +0 -1
- data/app/models/concerns/fe/answer_pages_presenter_concern.rb +13 -0
- data/app/models/concerns/fe/choice_field_concern.rb +10 -4
- data/app/models/fe/element.rb +14 -7
- data/app/models/fe/page.rb +6 -2
- data/app/models/fe/question.rb +2 -2
- data/app/models/fe/question_set.rb +1 -1
- data/app/models/fe/question_sheet.rb +7 -3
- data/app/views/fe/answer_sheets/_incomplete.html.erb +1 -0
- data/db/migrate/20181108201746_create_versions.rb +2 -6
- data/lib/fe/version.rb +1 -1
- data/spec/dummy/app/views/layouts/fe/fe.admin.html.erb +1 -0
- data/spec/dummy/log/test.log +67388 -0
- data/spec/models/fe/application_spec.rb +1 -1
- metadata +27 -10
- data/config/initializers/paper_trail.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a12e14ff5fa1b0cf7c6c2ac0264a03b3e95a8f05dceb01bf42e0963ecb1436c4
|
4
|
+
data.tar.gz: a6d9669f7a71e364d1c114d7db3f5b515762beae8fd08ee8b3b73391c898d328
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc9e85eebb802c6085cd771e0eefcf23c2f34c6b7a26ecdae14751a32894d51cafe911ffbfce8a071fc989837b3e92a9659c1a64370220d86786a04b23855797
|
7
|
+
data.tar.gz: eadf4560863b3005841c19fc7b60b826b12b9b7a5d8f6e3503a4ae660b2fc48cc3dedadf8c341c39a46cefda15f0f99bf693b681f71699b2c2f06fc9410d18a7
|
data/README.md
CHANGED
@@ -1,20 +1,24 @@
|
|
1
|
-
## Fe
|
2
|
-
|
3
|
-
[](https://travis-ci.org/CruGloabal/fe)
|
1
|
+
## Fe (Form Engine)
|
4
2
|
|
5
3
|
This project rocks and uses MIT-LICENSE.
|
6
4
|
|
5
|
+
Supports rails >= 5
|
6
|
+
|
7
7
|
### Development
|
8
8
|
|
9
9
|
### Testing
|
10
10
|
|
11
|
+
Note: The tests need ruby 2 to run, and is set up with rails 5.
|
12
|
+
|
11
13
|
Setup the testing db
|
12
14
|
|
13
|
-
|
15
|
+
Configure spec/dummy/config/database.yml
|
16
|
+
|
17
|
+
$ RAILS_ENV=test bundle exec rake app:db:environment:set db:create db:schema:load
|
14
18
|
|
15
19
|
Run specs:
|
16
20
|
|
17
|
-
bundle exec rake spec
|
21
|
+
$ bundle exec rake spec
|
18
22
|
|
19
23
|
Run a specific spec:
|
20
24
|
|
@@ -56,7 +56,7 @@ $(document).on('ready turbo:load', function () {
|
|
56
56
|
$(".future_answer, .future_target, .future_page").hide();
|
57
57
|
$('#element_conditional_id').val('');
|
58
58
|
$(".future_target input").removeAttr("checked");
|
59
|
-
$("#element_conditional_type_").
|
59
|
+
$("#element_conditional_type_").prop("checked", true);
|
60
60
|
}
|
61
61
|
});
|
62
62
|
|