Sha256: b3b4e92b945f27e8e124fb138e4cfa187284377e5e2f0c186e84fa723816c90d

Contents?: true

Size: 1.6 KB

Versions: 13

Compression:

Stored size: 1.6 KB

Contents

<div class="row">
      
  <div class="col-md-12">

    <ul class="nav nav-tabs nav-tabs-justified">
    </ul>

    <div class="tab-content">
      <div class="tab-pane active">

        <div id="div_page_action_buttons">
          
          <div class="row">
            <div class="col-sm-6">
              <%= theme_button('Add a Page', 'plus', new_page_path(ct: @category.try(:id)), classes: "pull-left  mr-10", btn_type: "success") if @current_user.super_admin? %>

              <%= theme_button('Refresh', 'refresh', pages_path(ct: @category.try(:id)), classes: "pull-left", btn_type: "white") %>
            </div>
            <div class="col-sm-6">
              <%= search_form_kuppayam(Dhatu::Page, pages_path, text: @filters[:query]) %>
            </div>
          </div>

        </div>
        <%= clear_tag(10) %>

        <div id="div_page_list">
          <%= render :partial=>"dhatu/pages/index" %>
        </div>
        <%= clear_tag(10) %>

      </div>
    </div>

  </div>

</div>

<script type="text/javascript">
  $('body').on('change', '#inp_name', function() {
    var pageId = $('#inp_code').data("id");
    if(pageId){
    } else {
      var pageCode = convertToSlug($(this).val()).slice(0, 63);
      $('#inp_code').val(pageCode);
    }
  });

  // $("#inp_meta_key").autocomplete({
  //  source: [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ]
  //});

  $('body').on('change', '#inp_title', function() {
    var sectionCode = $(this).val().replace(/ /g, '_').toUpperCase().slice(0, 63);
    if($('#inp_code').val() == ""){
      $('#inp_code').val(sectionCode);  
    }
  });
</script>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dhatu-0.3.9.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.8.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.7.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.6.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.5.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.4.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.3.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.2.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.1.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.3.0.pre.materialize app/views/dhatu/pages/index.html.erb
dhatu-0.2.3 app/views/dhatu/pages/index.html.erb
dhatu-0.2.2 app/views/dhatu/pages/index.html.erb
dhatu-0.2.1 app/views/dhatu/pages/index.html.erb