Sha256: 75b0123ae919176f72b62bd56ca116a6270d78cc2c9483dc51eeda07b95a8614

Contents?: true

Size: 849 Bytes

Versions: 29

Compression:

Stored size: 849 Bytes

Contents

<% can_change_tags = can?(:add, Kaui::Tag) || can?(:delete, Kaui::Tag) %>
<%= form_tag update_account_tags_path do %>
    <%= hidden_field_tag :account_id, account_id %>

    <% available_tags.each do |tag| %>
        <%= check_box_tag "tag_#{tag.id}", tag.name, tag_names.include?(tag.name), :disabled => !can_change_tags, :readonly => !can_change_tags %>
        <label class='tag-description' rel='tooltip' title='<%= tag.description %>'><%= tag.name %></label>
    <% end %>

    <% if can_change_tags %>
        <%= label_tag :comment, 'Comment', :class => 'col-sm-2 control-label' %>
        <%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
        <%= submit_tag 'Update', :class => 'btn btn-default' %>
    <% end %>
<% end %>

<%= javascript_tag do %>
$(function() {
  $('.tag-description').tooltip();
});
<% end %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
kaui-0.15.4 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.15.3 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.15.2 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.15.1 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.15.0 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.14.2 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.14.1 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.14.0 app/views/kaui/account_tags/_form_bar.html.erb
kaui-0.12.0 app/views/kaui/account_tags/_form_bar.html.erb