Sha256: a782b41741da4f9cb6cbc0e12f986db6a225053a43919f3e32515c281d4d4b6f

Contents?: true

Size: 1.95 KB

Versions: 7

Compression:

Stored size: 1.95 KB

Contents

<% css do %>
  <%= theme_css 'pages/admin_index.css', :media => 'screen' %>
  <%= stylesheet_link_tag 'scidea/admin/pages/schools/user_migrate' %>
<% end %>

<% page_title 'Migrate Users between Educational Institutions' %>

<div id="school-migration-message">
  <p>You are migrating users from</p>
  <%= render :partial => 'school', :locals => { :school => @school } %>
</div>

<p>Choose the educational institution to which you would like to migrate users.</p>

<hr>

<%= render :partial => 'search', :locals => { 
    :form_url => migration_new_admin_school_path(@school),
    :params => params } %>

<%= render_widget :paginated_list, :display, {
  :collection => @target_schools,
  :entry_name => 'educational institution',
  :css_class => "",
  :id => "schools-found",
  :list_renderer => [
    :datatable,
    {
      :columns => [
        {
          :label => "Name",
          :content => :name,
          :sort => 'name',
          :width => "300px"
        },
        {
          :label => "City",
          :content => :city,
          :sort => 'city',
        },
        {
          :label => "State",
          :content => :state,
          :sort => 'state',
        },
        {
          :label => "Zipcode",
          :content => :zipcode,
          :sort => 'zipcode'
        },
        {
          :label => "Users",
          :content => :user_count,
          :sort => 'user_count'
        },
        {
          :label => "Approved",
          :content => lambda{ |item| item.approved ? 'Yes' : 'No' },
          :sort => 'approve'
        },
        :actions => [
          lambda {|item|
            link_to 'Choose', confirm_migration_admin_school_path(@school, item), :class => 'do-choose', :title => "Choose"
          }
        ]
      ],
      :css_class => 'table-blue-zebra',
      :sort_column => sort_column
    }
  ],
  :header => {
    :css_class => 'plain'
  },
  :navigation => {}
} %>
<%= link_to 'Manage Educational Institutions', admin_schools_path %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scidea-schools-1.0.6 app/views/admin/schools/new_migration.html.erb
scidea-schools-1.0.5 app/views/admin/schools/new_migration.html.erb
scidea-schools-1.0.4 app/views/admin/schools/new_migration.html.erb
scidea-schools-1.0.3 app/views/admin/schools/new_migration.html.erb
scidea-schools-1.0.2 app/views/admin/schools/new_migration.html.erb
scidea-schools-1.0.1 app/views/admin/schools/new_migration.html.erb
scidea-schools-1.0.0 app/views/admin/schools/new_migration.html.erb