From f211b02459e428023e607f4aaa5110f3df0927de Mon Sep 17 00:00:00 2001 From: Jose Lloret Date: Fri, 19 May 2017 17:31:47 +0100 Subject: [PATCH] Guidances new/edit with table formatting displayed properly. DMPRoadmap/roadmap#272 --- app/views/guidances/admin_edit.html.erb | 3 ++- app/views/guidances/admin_new.html.erb | 3 ++- lib/assets/stylesheets/admin.css.less | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/guidances/admin_edit.html.erb b/app/views/guidances/admin_edit.html.erb index 565f5d44c5..7b433138f6 100644 --- a/app/views/guidances/admin_edit.html.erb +++ b/app/views/guidances/admin_edit.html.erb @@ -24,7 +24,8 @@ -
<%= _('Text') %>
+
+
<%= text_area_tag("guidance-text", @guidance.text, class: "tinymce") %>
diff --git a/app/views/guidances/admin_new.html.erb b/app/views/guidances/admin_new.html.erb index eb7f7a3445..95239c0475 100644 --- a/app/views/guidances/admin_new.html.erb +++ b/app/views/guidances/admin_new.html.erb @@ -19,7 +19,8 @@ -
<%= _('Text') %>
+
+
<%= text_area_tag("guidance-text", "", class: "tinymce") %>
diff --git a/lib/assets/stylesheets/admin.css.less b/lib/assets/stylesheets/admin.css.less index 00ea783013..89eadf6393 100644 --- a/lib/assets/stylesheets/admin.css.less +++ b/lib/assets/stylesheets/admin.css.less @@ -1185,6 +1185,10 @@ table.dmp_details_table tr td.first{ width: 250px; } +table.dmp_details_table tr td.tinymce{ + min-width: 370px; +} + table.dmp_details_table .text_area{ width: 90%; }