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.2.26 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.25 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.24 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.21 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.20 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.16 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.15 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.14 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.13 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.12 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.11 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.9 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.2.3 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.59 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.58 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.57 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.56 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.54 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.51 app/views/optimacms/admin/pages/_meta.html.haml
optimacms-0.1.50 app/views/optimacms/admin/pages/_meta.html.haml