fix custom html i18n and style
[shapado:medaspaces-shapado.git] / app / views / widgets / _custom_html_settings.html.haml
1 - langs = current_group.languages.sort
2 - default_lang = langs.delete(current_group.language) || current_group.language
3
4 .field
5   %h3= t('widgets.settings.content')
6   = label "settings[content[#{default_lang}]]", language_desc(default_lang), :class => "label"
7   = text_area_tag "settings[content[#{default_lang}]]", widget.settings["content"][default_lang], :class => "text_field"
8   .lang-fields
9     -langs.each do |lang|
10       %div{:id => "content-#{lang}"}
11         = label "settings[content[#{lang}]]", language_desc(lang), class: 'label'
12         =text_area_tag "settings[content[#{lang}]]", widget.settings["content"][lang], :class => "text_field"
13
14 = render :partial => "shared/external_widget_settings", :locals => {:widget => widget}