Sha256: 39082e23d2c688f52844820cc07bd6630996920958543dafadcc077680cb00c5

Contents?: true

Size: 776 Bytes

Versions: 2

Compression:

Stored size: 776 Bytes

Contents

<%% if @<%= instances_name %>.any? %>

	// Fill the right box with first <%= instance_name %> details in the list
	$('#div_<%= instance_name %>_details').html("<%%= escape_javascript(render(:partial=>'show')) %>");

	// Rendering the item list
	$('#div_<%= instance_name %>_index').html("<%%= escape_javascript(render(:partial=>"index")) %>");
	$('#div_<%= instance_name %>_drop_down').html("<%%= escape_javascript(render(:partial=>"drop_down")) %>");

<%% else %>

	var noResultsText = "<div id=\"div_admin_empty\" class=\"box text-color-grey p-80 text-align-center\" style=\"height:200px;\"><%%= translate("forms.no_results_found") %></div>";
	$('#div_<%= instance_name %>_index').html(noResultsText);
	$('#div_<%= instance_name %>_details').html(noResultsText);

<%% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
humdrum-rails-0.1.3 lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/index.js.erb
humdrum-rails-0.1.2 lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/index.js.erb