Sha256: 59cc70d8e2c86b4da42b3de69f248d0e50544cd748a65d499574a639865d1032
Contents?: true
Size: 1.3 KB
Versions: 9
Compression:
Stored size: 1.3 KB
Contents
- form_for [:admin, @part_type], :html => {'data-onsubmit_status' => onsubmit_status(@part_type)} do |f| -# = f.hidden_field :lock_version # for optimistic locking. Not yet implemented for template part types .form_area %p#content %table.index#part_type %thead %tr %th.part_type_name= f.label t('name') %th.type= f.label t('field_type') %th.class= f.label t('field_class') %th.styles= f.label t('field_styles') %tbody %tr %td.part_type_name %p= f.text_field :name, :class => 'textbox' %td.type - types = PartType.validate_callback_chain.select {|callback| callback.identifier == :field_types }[0].options[:in] = f.select :field_type, types %td.class %p= f.text_field :field_class, :class => 'textbox' %td.styles %p= f.text_field :field_styles, :class => 'textbox' %p.buttons{:style=>"clear: left"} = save_model_button(@part_type) = save_model_and_continue_editing_button(@part_type) = t('or') = link_to t('cancel'), admin_part_types_url = updated_stamp @part_type - @part_types = PartType.all %br .box %h3= t('existing_part_types') = render :partial => 'list'
Version data entries
9 entries across 9 versions & 1 rubygems