Sha256: f6759c9296250df125c1c063668e09c2bdfb8cd45dde14e4d0482f59c7cad8fb

Contents?: true

Size: 739 Bytes

Versions: 9

Compression:

Stored size: 739 Bytes

Contents

= f.inputs :url_redirections do

  - if f.object.url_redirections.count > 30
    = f.hidden_field :url_redirections_expert_mode, value: '1'
    = f.input :url_redirections_plain_text, as: :text, input_html: { rows: 30 }
  - else
    = f.input :url_redirections_expert_mode, as: :toggle

    = f.input :url_redirections_plain_text, as: :text, wrapper_html: { class: 'hide' }, input_html: { rows: 30 }

    = f.input :url_redirections, as: :array, hint: t(:url_redirections, scope: 'simple_form.hints.locomotive.site').html_safe, placeholder: true, collection: f.object.url_redirections_with_information(false).to_a, template: :url_redirection, template_url: new_url_redirection_current_site_path(current_site)


= f.actions do
  = f.action

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.2.0.alpha1 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.1.1 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.1.0 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.1.0.rc1 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.0.3 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.0.2 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.0.1 app/views/locomotive/current_site/form/_url_redirections.html.slim
locomotivecms-4.0.0 app/views/locomotive/current_site/form/_url_redirections.html.slim