Sha256: 5890a0117aab5f03fdfa529c3494b9d44d5b7b1b1b444fb8e92c602924aa7c35

Contents?: true

Size: 1.81 KB

Versions: 22

Compression:

Stored size: 1.81 KB

Contents

= render partial: 'title'
-# .row
-# 	.col.s12
-# 		%h3= yield :title

.row{ style: "margin-top: 20px"}
	.col.s12.m12.l12
		%form#list-search-form.form-inline{ action: resources_url( resources, controller: params[:controller]), method: "get"}
			- if resources.respond_to? :total_count
				%label
					%span.blue-grey-text{style: "margin-top: 6px"}
						= t("#{resources_name}.posts", size: resources.total_count)
				%br
			%input.search-list.form-control{ style: "width: 75%", type: "text", id: "q", name: "q", placeholder: t("#{params[:controller]}.search_placeholder"), value: "#{params[:q] || ''}" }
			%a.search-list.btn.btn-primary{ type: "submit"}= t('search_button_text')

			-# .form-group
			-# 	-# %label{ for: "q" }
			-# 	%input.search-list.form-control{ type: "text", id: "q", name: "q", placeholder: t("#{params[:controller]}.search_placeholder"), value: "#{params[:q] || ''}" }
			-# 	.collection{ style: "border: 0px"}
			-# 		%a.search-list.btn.btn-primary{ type: "submit"}= t('search_button_text')
			-# 		- if resources.respond_to? :total_count
			-# 			%span.blue-grey-text{style: "margin-top: 6px"}
			-# 				= t("#{resources_name}.posts", size: resources.total_count)

.row
	.col.s12
		 
.row
	.col.s12
		%table.bordered.responsive-table.striped.hoverable.page.resources_table{ id: "#{resource_name}_table_list"}
			= render partial: resources_name

= build_fab_button build_fab_options( resource, fab_button_options.merge!( action: params[:action] ))

:coffeescript

	$ ->
		# console.log 'calling scrollTable ' + $('table.resources_table')[0].id
		# if App.ps
		# 	if App.ps.scrollTimeout
		# 		clearTimeout App.ps.scrollTimeout
		# 	if App.ps.lastPage > App.ps.nextPage
		# 		App.shared.callToast 'Der er mere end én side resultater - scroll ned for at se flere!'
		#
		# App.ps.scrollTable('table.resources_table')

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
abstracted-0.4.22 app/views/abstract_resources/index.html.haml
abstracted-0.4.21 app/views/abstract_resources/index.html.haml
abstracted-0.4.20 app/views/abstract_resources/index.html.haml
abstracted-0.4.19 app/views/abstract_resources/index.html.haml
abstracted-0.4.18 app/views/abstract_resources/index.html.haml
abstracted-0.4.17 app/views/abstract_resources/index.html.haml
abstracted-0.4.16 app/views/abstract_resources/index.html.haml
abstracted-0.4.15 app/views/abstract_resources/index.html.haml
abstracted-0.4.14 app/views/abstract_resources/index.html.haml
abstracted-0.4.13 app/views/abstract_resources/index.html.haml
abstracted-0.4.12 app/views/abstract_resources/index.html.haml
abstracted-0.4.10 app/views/abstract_resources/index.html.haml
abstracted-0.4.9 app/views/abstract_resources/index.html.haml
abstracted-0.4.8 app/views/abstract_resources/index.html.haml
abstracted-0.4.7 app/views/abstract_resources/index.html.haml
abstracted-0.4.6 app/views/abstract_resources/index.html.haml
abstracted-0.4.5 app/views/abstract_resources/index.html.haml
abstracted-0.4.4 app/views/abstract_resources/index.html.haml
abstracted-0.4.3 app/views/abstract_resources/index.html.haml
abstracted-0.4.2 app/views/abstract_resources/index.html.haml