Sha256: 331d6a834324175b4cb27c5e17ca7cda6f5c12a2e876e0954fd93d3a3b3d8e85
Contents?: true
Size: 775 Bytes
Versions: 3
Compression:
Stored size: 775 Bytes
Contents
= form_for @site_notice do |f| - if @site_notice.errors.any? #error_explanation %h2= "#{pluralize(@site_notice.errors.count, "error")} prohibited this feature from being saved:" %ul - @site_notice.errors.full_messages.each do |message| %li= message .field = f.label :name = f.text_field :name .field = f.label :notice = f.text_area :notice, rows: 10 .field = f.label :state = f.select :state, ['enabled', 'disabled'] .field = f.label :theme = f.select :theme, Plug.themes.map { |theme| [theme[:name], "#{theme[:style].to_a.map { |s| s.join(':') }.join(';')}"] } .actions.clearfix .float-left = link_to 'Back', site_notices_path, class: 'button' .float-right = f.submit 'Save'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plug-0.1.19 | app/views/plug/site_notices/_form.html.haml |
plug-0.1.18 | app/views/plug/site_notices/_form.html.haml |
plug-0.1.16 | app/views/plug/site_notices/_form.html.haml |