Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- = button_group :class => 'switcher' do
- = button tc("newsletter.form.polish_version"), '#polish', :current => true
- = button tc("newsletter.form.english_version"), '#english'
- = form_errors(@newsletter)
- = semantic_form_for [:admin, @newsletter] do |form|
- - form.inputs do
- %br
- #polish
- = form.input :title_pl, :label => "#{tc('newsletter.form.title')}", :input_html => {:class => 'title'}
- = form.input :body_pl, :label => false, :as => :text, :input_html => {:class => 'body'}
- %br
- #english
- = form.input :title_en, :label => "#{tc('newsletter.form.title')}", :input_html => {:class => 'title'}
- = form.input :body_en, :as => :text,:label => false, :input_html => {:class => 'body'}
- - form.buttons do
- = form.commit_button
- :javascript
- Stopango.Page.enablePageSwitch();
- ## newsletter.js
- Stopango.Newsletter = {
- enablePageSwitch: function() {
- // ukrywanie
- $$('#polish ~ div[id]').hide();
- }
- };
Add Comment
Please, Sign In to add comment