Sha256: 1008a5e6b19c218104fe727cbbc7914c6d45166bd1dab543fce04e3a834f1a96
Contents?: true
Size: 1.47 KB
Versions: 3
Compression:
Stored size: 1.47 KB
Contents
<%= form_for(@news_post) do |f| -%> <%= f.error_messages -%> <div class="field"> <%= f.label t('activerecord.attributes.news_post.title') -%><br /> <%= f.text_field :title, :class => 'resource_title' -%> </div> <div class="field"> <%= f.label t('activerecord.attributes.news_post.body') -%><br /> <%= f.text_area :body, :class => 'resource_textarea' -%> </div> <div class="field"> <%= f.label t('activerecord.attributes.news_post.url') -%> <%= f.url_field :url, :class => 'resource_url' -%> </div> <!-- <div class="field"> <%= f.label t('activerecord.models.user') -%><br /> <%= link_to h(@news_post.user.username), @news_post.user -%> </div> <div class="field"> <%= f.label t('role.required_role') -%> <%= f.select(:required_role_id, @roles.collect{|r| [r.display_name.localize, r.id]}) -%> </div> --> <div class="field"> <%= f.label t('activerecord.attributes.news_post.start_date') -%> <%= f.date_select :start_date -%> </div> <div class="field"> <%= f.label t('activerecord.attributes.news_post.end_date') -%><br /> <%= f.datetime_select :end_date -%> </div> <div class="field"> <%= f.label t('activerecord.attributes.news_post.note') -%><br /> <%= f.text_area :note, :class => 'resource_textarea' -%> </div> <div class="field"> <%= f.label t('activerecord.attributes.news_post.draft') -%> <%= f.check_box :draft -%> </div> <div class="actions"> <%= f.submit %> </div> <%- end -%>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_news-0.1.0.pre5 | app/views/news_posts/_form.html.erb |
enju_news-0.1.0.pre4 | app/views/news_posts/_form.html.erb |
enju_news-0.1.0.pre3 | app/views/news_posts/_form.html.erb |