mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
textAngular editor for group description
This commit is contained in:
@@ -1 +1 @@
|
||||
angular.module("admin.enterprise_groups", ["admin.side_menu", "admin.users"])
|
||||
angular.module("admin.enterprise_groups", ["admin.side_menu", "admin.users", "textAngular"])
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='About'" } }
|
||||
%legend About
|
||||
= f.field_container :long_description do
|
||||
= f.label :long_description
|
||||
%br/
|
||||
= f.text_area :long_description
|
||||
%text-angular{'id' => 'enterprise_group_long_description', 'name' => 'enterprise_group[long_description]', 'class' => 'text-angular',
|
||||
'ta-toolbar' => "[['h1','h2','h3','h4','p'],['bold','italics','underline','clear'],['insertLink']]"}
|
||||
!= @enterprise_group[:long_description]
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
active: "active(\'about\')",
|
||||
select: "select(\'about\')"}
|
||||
%h1 About Us
|
||||
%p= @group.long_description
|
||||
%p!= @group.long_description
|
||||
|
||||
%tab{heading: 'Our producers',
|
||||
active: "active(\'producers\')",
|
||||
|
||||
Reference in New Issue
Block a user