pulitzer 0.3.9 → 0.4.0
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/app/assets/stylesheets/pulitzer.scss +10 -1
- data/app/controllers/pulitzer/content_elements_controller.rb +0 -12
- data/app/controllers/pulitzer/free_form_section_types_controller.rb +48 -0
- data/app/controllers/pulitzer/layouts_controller.rb +43 -0
- data/app/controllers/pulitzer/partials_controller.rb +52 -0
- data/app/interactions/pulitzer/clone_version.rb +10 -0
- data/app/interactions/pulitzer/create_partial_content_elements.rb +20 -0
- data/app/interactions/pulitzer/create_post_content_elements.rb +3 -0
- data/app/interactions/pulitzer/create_post_type_free_form_sections.rb +17 -0
- data/app/interactions/pulitzer/destroy_post_type_free_form_sections.rb +16 -0
- data/app/interactions/pulitzer/update_post_type_free_form_sections.rb +17 -0
- data/app/models/pulitzer/free_form_section.rb +20 -0
- data/app/models/pulitzer/free_form_section_type.rb +7 -0
- data/app/models/pulitzer/layout.rb +11 -0
- data/app/models/pulitzer/partial.rb +50 -0
- data/app/models/pulitzer/post.rb +1 -1
- data/app/models/pulitzer/post_type.rb +10 -6
- data/app/models/pulitzer/version.rb +10 -1
- data/app/views/pulitzer/content_elements/_form.html.erb +1 -1
- data/app/views/pulitzer/content_elements/_index.html.erb +1 -16
- data/app/views/pulitzer/content_elements/_partial_index.html.erb +5 -0
- data/app/views/pulitzer/content_elements/_show.html.erb +1 -1
- data/app/views/pulitzer/free_form_section_types/_form.html.erb +8 -0
- data/app/views/pulitzer/free_form_section_types/_form_fields.html.erb +2 -0
- data/app/views/pulitzer/free_form_section_types/_new.html.erb +7 -0
- data/app/views/pulitzer/free_form_section_types/_show.html.erb +9 -0
- data/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/free_form_sections/_index.html.erb +3 -0
- data/app/views/pulitzer/free_form_sections/_show.html.erb +2 -0
- data/app/views/pulitzer/free_form_sections/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/layouts/_form.html.erb +8 -0
- data/app/views/pulitzer/layouts/_form_fields.html.erb +2 -0
- data/app/views/pulitzer/layouts/_new.html.erb +7 -0
- data/app/views/pulitzer/layouts/_show.html.erb +9 -0
- data/app/views/pulitzer/layouts/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/partials/_fields.html.erb +2 -0
- data/app/views/pulitzer/partials/_form.html.erb +11 -0
- data/app/views/pulitzer/partials/_index.html.erb +12 -0
- data/app/views/pulitzer/partials/_new.html.erb +16 -0
- data/app/views/pulitzer/partials/_show.html.erb +7 -0
- data/app/views/pulitzer/partials/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb +4 -4
- data/app/views/pulitzer/post_types/_form.html.erb +1 -1
- data/app/views/pulitzer/post_types/_form_fields.html.erb +10 -3
- data/app/views/pulitzer/post_types/_show.html.erb +27 -6
- data/app/views/pulitzer/versions/_edit.html.erb +11 -5
- data/config/routes.rb +5 -1
- data/db/migrate/20160511192041_create_partials.rb +9 -0
- data/db/migrate/20160512214545_add_partial_to_content_element.rb +5 -0
- data/db/migrate/20160513153209_create_free_form_section_type.rb +8 -0
- data/db/migrate/20160513153214_create_free_form_section.rb +9 -0
- data/db/migrate/20160516150237_fix_post_type_kinds.rb +7 -0
- data/db/migrate/20160517181706_create_layouts.rb +8 -0
- data/db/migrate/20160517182500_add_layout_to_partial.rb +5 -0
- data/lib/pulitzer.rb +3 -1
- data/lib/pulitzer/version.rb +1 -1
- data/spec/controllers/pulitzer/free_form_section_types_controller_spec.rb +45 -0
- data/spec/controllers/pulitzer/partials_controller_spec.rb +42 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +25 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +151 -0
- data/spec/dummy/log/test.log +49898 -0
- data/spec/dummy/public/uploads/tmp/1452811005-24393-0063/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1452811005-24393-0063/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1452811173-24792-0199/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1452811173-24792-0199/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327522-88240-8875/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327522-88240-8875/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327522-88240-8875/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327846-88664-1819/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327846-88664-1819/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327846-88664-1819/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327891-88742-0077/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327891-88742-0077/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327891-88742-0077/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327908-88792-8689/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327908-88792-8689/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327908-88792-8689/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327942-88859-9073/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327942-88859-9073/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453327942-88859-9073/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328584-89616-8416/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328584-89616-8416/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328584-89616-8416/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328600-89648-3830/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328600-89648-3830/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328600-89648-3830/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328621-89685-3083/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328621-89685-3083/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328621-89685-3083/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328659-89747-3646/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328659-89747-3646/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328659-89747-3646/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328908-90227-0244/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328908-90227-0244/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328908-90227-0244/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328976-90335-7466/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328976-90335-7466/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453328976-90335-7466/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453329010-90384-7488/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453329010-90384-7488/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453329010-90384-7488/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453329018-90436-7916/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453329018-90436-7916/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453329018-90436-7916/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393083-47505-1178/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393083-47505-1178/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393083-47505-1178/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393088-47594-1406/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393088-47594-1406/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393088-47594-1406/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393124-47630-8343/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393124-47630-8343/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393124-47630-8343/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393148-47674-3845/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393148-47674-3845/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393148-47674-3845/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393221-47816-8142/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393221-47816-8142/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393221-47816-8142/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393870-48546-6445/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393870-48546-6445/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393870-48546-6445/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393926-48624-7189/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393926-48624-7189/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393926-48624-7189/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393989-48708-0009/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393989-48708-0009/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453393989-48708-0009/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454010788-22795-5507/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454010788-22795-5507/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454010788-22795-5507/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454011239-23492-4674/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454011239-23492-4674/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454011239-23492-4674/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454011266-23542-4559/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454011266-23542-4559/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1454011266-23542-4559/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463429995-65562-0251/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463429995-65562-0251/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463429995-65562-0251/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463430043-65638-7727/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463430043-65638-7727/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463430043-65638-7727/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432105-68023-3063/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432105-68023-3063/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432105-68023-3063/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432295-68282-2138/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432295-68282-2138/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432295-68282-2138/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432657-68730-3477/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432657-68730-3477/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432657-68730-3477/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432704-68798-5985/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432704-68798-5985/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432704-68798-5985/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432882-69024-4017/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432882-69024-4017/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432882-69024-4017/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432913-69082-5884/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432913-69082-5884/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463432913-69082-5884/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442041-78001-4031/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442041-78001-4031/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442041-78001-4031/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442140-78140-3268/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442140-78140-3268/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442140-78140-3268/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442186-78198-7364/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442186-78198-7364/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442186-78198-7364/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442776-78848-1943/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442776-78848-1943/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442776-78848-1943/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442832-78935-6772/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442832-78935-6772/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442832-78935-6772/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442860-78978-8181/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442860-78978-8181/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463442860-78978-8181/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443482-79702-8123/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443482-79702-8123/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443482-79702-8123/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443627-79922-4880/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443627-79922-4880/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443627-79922-4880/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443847-80184-3453/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443847-80184-3453/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463443847-80184-3453/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463444011-80461-3483/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463444011-80461-3483/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463444011-80461-3483/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500404-81001-9924/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500404-81001-9924/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500404-81001-9924/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500762-81388-3536/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500762-81388-3536/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500762-81388-3536/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500770-81454-6155/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500770-81454-6155/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500770-81454-6155/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500842-81525-6615/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500842-81525-6615/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500842-81525-6615/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500982-81717-1186/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500982-81717-1186/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463500982-81717-1186/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463607059-57999-0085/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463607059-57999-0085/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1463607059-57999-0085/thumb_sam_and_snow.jpg +0 -0
- data/spec/factories/post_type.rb +8 -0
- data/spec/factories/version.rb +8 -0
- data/spec/interactions/clone_version_spec.rb +8 -0
- data/spec/interactions/create_partial_content_elements_spec.rb +16 -0
- data/spec/interactions/create_post_content_elements_spec.rb +9 -0
- data/spec/models/post_type_spec.rb +1 -1
- metadata +449 -42
- data/app/views/pulitzer/content_elements/_new.html.erb +0 -25
@@ -1,25 +0,0 @@
|
|
1
|
-
<%= form_for content_element, html: ajax_form_hash(dom_target(version, :free_form_content_element_container), insert_method: 'append', sub_class: "AddALineForm", container: dom_target(version, :new_free_form_content_element)) do |f| %>
|
2
|
-
<%= f.collection_select :content_element_type_id, Pulitzer::ContentElementType.all, :id, :name, {},
|
3
|
-
revealer(dom_id(version, :content_element_type_revealer), highlander: true) %>
|
4
|
-
|
5
|
-
<div <%= revealer_target_attrs dom_id(version, :content_element_type_revealer) %>></div>
|
6
|
-
|
7
|
-
<div <%= revealer_option_attrs(dom_id(version, :content_element_type_revealer), trigger: Pulitzer::ContentElementType.find_by(name: 'Image').id) %> >
|
8
|
-
<%= f.label :height %>
|
9
|
-
<%= f.text_field :height, placeholder: 'Height' %>
|
10
|
-
<%= f.label :width %>
|
11
|
-
<%= f.text_field :width, placeholder: 'Width' %>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div <%= revealer_option_attrs(dom_id(version, :content_element_type_revealer), trigger: Pulitzer::ContentElementType.find_by(name: 'Text').id) %>>
|
15
|
-
<%= f.label :text_editor, "Text editor" %>
|
16
|
-
<%= f.select :text_editor, Pulitzer.text_editor_toolbars.map { |t| t[:name] } %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<%= f.hidden_field :version_id %>
|
20
|
-
<%= f.hidden_field :kind, value: :free_form %>
|
21
|
-
|
22
|
-
<%= submit_tag "Create" %>
|
23
|
-
<%= link_to('Cancel', '#', :class => 'button',
|
24
|
-
data: { emptier: true, target: dom_target(version, :new_free_form_content_element) } ) %>
|
25
|
-
<% end %>
|