Sha256: a394f2781a9cc297bd7fe99368359853f289442d192a12ba9d8792c3b8e66c4b

Contents?: true

Size: 709 Bytes

Versions: 15

Compression:

Stored size: 709 Bytes

Contents

= f.text_field :title

- if f.object.persisted? || f.object.errors.include?(:slug)
  - current_url = (effective_committees.committee_url(f.object) rescue nil)
  = f.text_field :slug, hint: "The slug controls this committee's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This committee is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url }".html_safe

- if defined?(EffectiveArticleEditor)
  = f.article_editor :body, hint: 'Displayed on the committee page'
- else
  = f.rich_text_area :body, hint: 'Displayed on the committee page'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
effective_committees-0.3.10 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.9 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.8 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.7 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.6 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.5 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.4 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.3 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.2 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.1 app/views/admin/committees/_fields.html.haml
effective_committees-0.3.0 app/views/admin/committees/_fields.html.haml
effective_committees-0.2.1 app/views/admin/committees/_fields.html.haml
effective_committees-0.2.0 app/views/admin/committees/_fields.html.haml
effective_committees-0.1.2 app/views/admin/committees/_fields.html.haml
effective_committees-0.1.1 app/views/admin/committees/_fields.html.haml