Sha256: 6250746fce2f4ea998c83ea178bc7b2209e24a7528401cfe5e84cab831fdb666

Contents?: true

Size: 1.2 KB

Versions: 12

Compression:

Stored size: 1.2 KB

Contents

<%= render :partial => "/tr8n/admin/common/header" %>
<%= render :partial => "tabs" %>
<%= tr8n_will_filter(@domains) %>

<%= form_tag("", :id => "domains_form") do %>
  <%= will_filter_table_tag(@domains, :columns => [
		[:checkbox, 'domains'],         
		:name, :description, :created_at, :updated_at,
    [:source_count, lambda{|domain|
      link_to(domain.translation_sources.size, "/tr8n/admin/domain/sources?wf_c0=translation_domain_id&wf_o0=is&wf_v0_0=#{domain.id}")
    }, 'text-align:right'],
    [:actions, lambda{|domain|
      html = []
      html << link_to("Delete", {:action => :delete, :domain_id => domain.id}, {:confirm => "Are you sure you want to delete this domain?"})
      html.join(' | ').html_safe
    }, 'padding:5px;text-align:right;white-space:nowrap;']
  ]) %>
<% end %>

<%= will_filter_actions_bar_tag(@domains, [
  ['Delete Selected Domains', 'deleteSelectedDomains()']
]) %>

<%= render :partial => "/tr8n/admin/common/footer" %>

<script>
  function deleteSelectedDomains() {
    if (!confirm('Are you sure you want to delete all selected domains?'))
       return;
    Tr8n.element('domains_form').action = "/tr8n/admin/domain/delete";
    Tr8n.element('domains_form').submit();
  }
</script> 

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.2.2 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.2.1 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.2.0 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.8 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.7 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.6 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.5 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.4 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.3 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.2 app/views/tr8n/admin/domain/index.html.erb
tr8n-3.1.1 app/views/tr8n/admin/domain/index.html.erb