Sha256: 1d489f778d2be282e7ffd4ea0e573232d814fdc1e6eb8d5432ec77a49e572b38

Contents?: true

Size: 1.42 KB

Versions: 48

Compression:

Stored size: 1.42 KB

Contents

.row
  .col-md-12
    .panel.panel-default
      .panel-body
        .pad20
          %b Meta
          #meta_translation
            %ul.nav.nav-tabs
              - @languages.each do |lang|
                - t = lang.blank? ? 'Default' : lang
                %li(role="presentation")
                  =link_to t, '#', :class=>'link_meta_tab', :data=>{:lang=>lang}

            = f.simple_fields_for :translations do |fmeta|
              - tran = fmeta.object
              - lang = tran.lang


              %div{:class=>['cont', "meta_cont_"+lang]}
                =fmeta.input :lang, :readonly=>true
                =fmeta.input :meta_title, label: 'Title'
                =fmeta.input :meta_keywords, label: 'Keywords'
                =fmeta.input :meta_description, as: :text, label: 'Description'

  -# @languages.all.each do |r|
    - lang = r.lang
    - name = "meta_keywords_#{lang}"
    .form-group
      %label(for="#{name}") Keywords
      =f.input_field :"meta_keywords[#{lang}]", :class=>"form-control", :placeholder=>"Keywords"


:javascript
  $(document).ready(function() {
    meta_show_cont('');

    $('#meta_translation .link_meta_tab').click(function(e){
      e.preventDefault();
      meta_show_cont($(this).data('lang'));
    });


  });

  function meta_show_cont(lang){
    $('#meta_translation .cont').hide();
    $('#meta_translation .cont.meta_cont_'+lang).show();
  }

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
optimacms-0.1.49 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.48 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.47 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.45 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.44 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.43 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.41 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.40 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.39 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.38 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.36 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.34 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.32 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.31 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.28 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.27 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.25 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.24 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.23 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.21 app/views/optimacms/admin/pages/_meta.html.haml