Sha256: 399aad2954eada95717938864cbde18c427e89f21e32c43e5f1b2672670d3159

Contents?: true

Size: 1.82 KB

Versions: 3

Compression:

Stored size: 1.82 KB

Contents

<% @page_heading = _('Manage articles') %>
<% subtabs_for(:content) %>

<%= render :partial => "drafts" %>

<div class="list" id="articles">	
  <% form_remote_tag  :url      => {:action => 'index'},
  :method   => :get,
  :name     => 'article',
  :update   => {:success => 'articleList'},
  :before   => "Element.show('spinner')",
  :complete => "Element.hide('spinner')" \
  do %>

  <label for="search"><%= _("Search articles that contains...")%></label><br />  
  <input id="search" type="text" name="search[searchstring]" size="30" />
  <%= submit_tag _("Search") %>
  <span id='spinner' style="display:none;"><%= image_tag('spinner.gif') %></span>

  <table>
    <tr>
      <th><%= _("Title") %></th>
      <th><%= _("Categories") %></th>
      <th><%= _("Date") %></th>
      <th><%= _("Author")%></th>
      <th><%= _("Status") %></th>
      <th><%= _("Feedback")%></th>
    </tr>
    <tr class="menubar">
      <td>&nbsp;</td>
      <td><%= collection_select_with_current('search', 'category', @categories, "id", "name", @search[:category].to_i, true)
      %></td>
      <td>
        <%= collection_select_with_current(:search, :published_at, Article.find_by_published_at, "publication", "publication", @search[:published_at], true) %>
      </td>
      <td><%= collection_select_with_current(:search, :user_id, User.find(:all), "id", "name", @search[:user_id].to_i, true) %></td>
      <td>
        <select name="search[published]">
          <option value="">Please select</option>
          <option value="0">Unpublished</option>
          <option value="1">Published</option>
        </select>
      </td>
      <td><input type="submit" value='<%= _("Filter") %>' />
      </tr>
      <tbody id="articleList">
        <%= render :partial => 'article_list', :object => @articles -%>
      </tbody>
    </table>

    <%end%>
  </div>                      

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typo-5.2 app/views/admin/content/index.html.erb
typo-5.2.98 app/views/admin/content/index.html.erb
typo-5.3 app/views/admin/content/index.html.erb