Sha256: 9dd340d79cb0b4eff40094358304d6689ee1b238ebce83a014db8c1176ffbb01
Contents?: true
Size: 1.77 KB
Versions: 8
Compression:
Stored size: 1.77 KB
Contents
.row .columns.small-12 %h1 Assign Forms Templates to System Objects = form_tag formily_formilyable_index_path, method: :post, class: 'panel' do .row .medium-4.columns.small-12 %h3 Form Template = select_tag :form_id, options_from_collection_for_select(@select_forms, 'id', 'title') .medium-4.columns.small-12 %h3 Object Type = select_tag :formilyable_type, options_for_select(Formily.formily_models.map(&:to_s)) .medium-4.columns.small-12 %h3 Object = select_tag :formilyable_id .row .medium-12.columns.small-12 %button{type: :submit} Assign .row .medium-12.columns.small-12 - if params[:all].present? = link_to 'Hide Deleted Forms', formily_forms_assign_path, class: 'button success' - else = link_to 'Show Deleted Forms', formily_forms_assign_path({all: true}), class: 'button success' %table.datatable %caption Form Template to Object Associations %thead %tr %th Form %th Object Type %th Object %th Response %th Action %tbody - @related_forms.each do |f| - style = {} - style[:class] = 'deleted' if f.form.blank? || f.form.is_deleted? %tr{style} %td - if f.form.present? = f.form.title %td = f.formilyable_type %td = f.formily_title %td = f.class.formily_form_related_model.name %td = link_to 'Delete', formily_formilyable_path(f.id), class: 'button alert tiny', 'data-confirm' => 'Are you sure?', method: :delete
Version data entries
8 entries across 8 versions & 1 rubygems