Sha256: 11683ead8cc33c9e4695db1432de8ffb782bb3bc9fe1ca32095060b808c32a7a

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

#options
  = form_tag request.fullpath, :method => 'get', :id => 'search' do
    = text_field_tag :q, (params[:q].present? ? params[:q] : t('layouts.dash.options.search_text')), :onblur => "if (this.value == '') {this.value = '#{t('layouts.dash.options.search_text')}';}", :onfocus => "if (this.value == '#{t('layouts.dash.options.search_text')}') {this.value = '';}"
  %a.button.action{ :href => url_for([:new, :dash, @model.name.underscore.to_sym]) }
    = t('global.add')

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
rails_dash-0.0.2 lib/generators/dash/templates/filter.erb
rails_dash-0.0.2 test/dummy/app/views/dash/shared/_filter.html.haml
rails_dash-0.0.1 lib/generators/dash/templates/filter.erb
rails_dash-0.0.1 test/dummy/app/views/dash/shared/_filter.html.haml