Sha256: 46725698e74f5db7614f01cba3a9ad2864383e1ea92ea792be67c1392747aff8

Contents?: true

Size: 1.49 KB

Versions: 6

Compression:

Stored size: 1.49 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), user_path(@news_post.user.username) -%>
  </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

6 entries across 6 versions & 1 rubygems

Version Path
enju_news-0.1.0.pre2 app/views/news_posts/_form.html.erb
enju_news-0.1.0.pre app/views/news_posts/_form.html.erb
enju_news-0.0.5 app/views/news_posts/_form.html.erb
enju_news-0.0.4 app/views/news_posts/_form.html.erb
enju_news-0.0.3 app/views/news_posts/_form.html.erb
enju_news-0.0.2 app/views/news_posts/_form.html.erb