Sha256: 9c2502d57ff7c80397fc995ec1ffc5740de7b8c43d7ffe3e5d5a43bd7ab6c528

Contents?: true

Size: 976 Bytes

Versions: 45

Compression:

Stored size: 976 Bytes

Contents

<div id="content-pages">
  <h2><%= t('muck.content.manage_pages_title') %></h2>
  <div id="pageSearch">
    <label>Search by Page Name:</label> <input id="autoPages" />
    <span class="link-button"><%= link_to _("Add New Page"), new_admin_page_path %></span>
  </div>
  <div id="pageList">
    <ul id="pageMasterUl">
      <%= render :partial => 'admin/pages/page', :collection => @pages, :locals => {:parent_id => 0} -%>
    </ul>
  </div>
</div>

<input id="updatePath" type="hidden" value="<%=admin_pages_path%>">

<script type="text/javascript" language="JavaScript">
jQuery(document).ready(function() {
  var data = <%= @pages.collect{|page| { :title => page.title, :id => page.id } }.to_json %>;
  jQuery("#autoPages").autocomplete(data, {
    minChars: 0,
    autoFill: true,
    mustMatch: false,
    formatItem: function(item) {
      return item.title;
    }
  }).result(function(event, item) { location.href = '/admin/pages/' + item.id + '/edit'; });
});
</script>

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
muck-contents-3.1.2 app/views/admin/contents/index.html.erb
muck-contents-3.1.1 app/views/admin/contents/index.html.erb
muck-contents-3.1.0 app/views/admin/contents/index.html.erb
muck-contents-3.0.2 app/views/admin/contents/index.html.erb
muck-contents-3.0.1 app/views/admin/contents/index.html.erb
muck-contents-3.0.0 app/views/admin/contents/index.html.erb
muck-contents-0.2.27 app/views/admin/contents/index.html.erb
muck-contents-0.2.26 app/views/admin/contents/index.html.erb
muck-contents-0.2.25 app/views/admin/contents/index.html.erb
muck-contents-0.2.24 app/views/admin/contents/index.html.erb
muck-contents-0.2.23 app/views/admin/contents/index.html.erb
muck-contents-0.2.22 app/views/admin/contents/index.html.erb
muck-contents-0.2.21 app/views/admin/contents/index.html.erb
muck-contents-0.2.20 app/views/admin/contents/index.html.erb
muck-contents-0.2.18 app/views/admin/contents/index.html.erb
muck-contents-0.2.17 app/views/admin/contents/index.html.erb
muck-contents-0.2.16 app/views/admin/contents/index.html.erb
muck-contents-0.2.15 app/views/admin/contents/index.html.erb
muck-contents-0.2.14 app/views/admin/contents/index.html.erb
muck-contents-0.2.13 app/views/admin/contents/index.html.erb