Noosfero/noosfero

View on GitHub
app/views/organizations/index.html.erb

Summary

Maintainability
Test Coverage
<h1><%= _('Organizations') %></h1>

<%= form_tag( { :action => 'index' }, :method => 'get', :id => 'manage-profiles' ) do %>

  <div class="search-field" id="organizations-search">
    <span class="formfield">
      <%= text_field_tag 'q', @q, :title => _('Find organizations'), :id => 'organizations-search-field' %>
    </span>
    <%= submit_button(:search, _('Search')) %>
  </div>

  <div class="environment-profiles-results-header">
    <div id='environment-profiles-filter-title'><%= @title %></div>

    <div id="environment-profiles-filter-filter">
      <strong><%= _("Filter by: ") %></strong>

      <%= select_tag(:filter,
        options_for_select(
          [[_('Any'), 'any'],
          [_('Disabled'), "disabled"],
          [_('Enabled') , "enabled"]],
          @filter
        )
      ) %>

    </div>
    <div style="clear: both"></div>
  </div>

  <%= render :partial => 'results' %>

  <%= button_bar do %>
    <%= button :back, _('Back'), :controller => 'admin_panel' %>
  <% end %>
<% end %>

<%= javascript_include_tag 'manage-organizations' %>