Sha256: 93e43f450dc69dc2ee99c146a7baab3f3cc9f7a537f7fc09830f37aba3007304

Contents?: true

Size: 815 Bytes

Versions: 7

Compression:

Stored size: 815 Bytes

Contents

%ul.detailed-list.tags{:id => "people-#{subject.id}-tags"}
  - tags.each do |tag|
    %li.tag.rounder.deletable= tag

  %li.tag.new-tag= link_to_function '<i class="fa fa-plus-circle"></i> Add tag'.html_safe, "$(this).parent().hide(); $('.new-tag-form').show(); $('#new-tag-field').focus();"

= form_tag person_new_tag_path(subject), :method => :post, :class => 'new-tag-form form-search', :autocomplete => 'off', :style => 'display:none', :remote=>'true' do
  = hidden_field_tag :subject_id, subject.id, {:id=>'subject-id-field'}
  -# = text_field_tag :tag, nil, {:id=>'new-tag-field'}
  = text_field_tag :tag, "", :id=>"new-tag-field", :class => "typeahead", "data-provide"=>"typeahead", "data-items"=>"5", "data-source"=>"[" + @tags_string.html_safe + "]" 
  = submit_tag "Add Tag", :class => "btn"
  .tag-error

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/views/shared/_tags.html.haml
artfully_ose-1.2.0.beta.1 app/views/shared/_tags.html.haml
artfully_ose-1.2.0.alpha.2 app/views/shared/_tags.html.haml
artfully_ose-1.2.0.alpha.1 app/views/shared/_tags.html.haml
artfully_ose-1.2.0.pre.27 app/views/shared/_tags.html.haml
artfully_ose-1.2.0.pre.26 app/views/shared/_tags.html.haml
artfully_ose-1.2.0.pre.24 app/views/shared/_tags.html.haml