Sha256: 7e79f25f8360fe741d776bc380155fe52984d2e363ffc87d60c2ceabac35f0a8
Contents?: true
Size: 1.64 KB
Versions: 9
Compression:
Stored size: 1.64 KB
Contents
%tr{:class => "template_part", :id => "template_part_#{template_part.index}"} - fields_for "template[template_parts][#{template_part.index}]", template_part do |t| %td.name %label{:for => "template_template_parts_#{template_part.index}_name"} t('name') = t.text_field :name, :id => "template_template_parts_#{template_part.index}_name" %td.desc %label{:for => "template_template_parts_#{template_part.index}_description"} t('description') = t.text_field :description, :id => "template_template_parts_#{template_part.index}_description" %td.part_type %label{:for => "template_template_parts_#{template_part.index}_part_type_id"} t('type') = t.select :part_type_id, part_type_options, {}, :id => "template_template_parts_#{template_part.index}_part_type_id" %td.filter %label{:for => "template_template_parts_#{template_part.index}_filter_id"} t('filter') = t.select :filter_id, [['<none>', '']] + TextFilter.descendants.map { |s| s.filter_name }.sort, :id => "template template_parts_#{template_part.index}_filter_id" %td.modify = link_to_function image('minus') + ' ' + t('remove'), "$('template_part_#{template_part.index}').remove();", :class => "action" %td.reorder = link_to_function image('move_to_top', :alt => "Move to top"), "reorder_template_part(this, 'top');" = link_to_function image('move_higher', :alt => "Move up"), "reorder_template_part(this, 'up');" = link_to_function image('move_lower', :alt => "Move down"), "reorder_template_part(this, 'down');" = link_to_function image('move_to_bottom', :alt => "Move to bottom"), "reorder_template_part(this, 'bottom');"
Version data entries
9 entries across 9 versions & 1 rubygems