Guest User

Untitled

a guest
Oct 19th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. = button_group :class => 'switcher' do
  2. = button tc("newsletter.form.polish_version"), '#polish', :current => true
  3. = button tc("newsletter.form.english_version"), '#english'
  4.  
  5. = form_errors(@newsletter)
  6.  
  7. = semantic_form_for [:admin, @newsletter] do |form|
  8. - form.inputs do
  9. %br
  10. #polish
  11. = form.input :title_pl, :label => "#{tc('newsletter.form.title')}", :input_html => {:class => 'title'}
  12. = form.input :body_pl, :label => false, :as => :text, :input_html => {:class => 'body'}
  13. %br
  14. #english
  15. = form.input :title_en, :label => "#{tc('newsletter.form.title')}", :input_html => {:class => 'title'}
  16. = form.input :body_en, :as => :text,:label => false, :input_html => {:class => 'body'}
  17. - form.buttons do
  18. = form.commit_button
  19. :javascript
  20. Stopango.Page.enablePageSwitch();
  21.  
  22. ## newsletter.js
  23.  
  24. Stopango.Newsletter = {
  25. enablePageSwitch: function() {
  26. // ukrywanie
  27. $$('#polish ~ div[id]').hide();
  28. }
  29. };
Add Comment
Please, Sign In to add comment