Sha256: 5e8bb94ec4262c1d21257172148ca9b904d2bdd65471c8d1babb8ac71568fdf6

Contents?: true

Size: 1.1 KB

Versions: 28

Compression:

Stored size: 1.1 KB

Contents

<h2>Edit comment</h2>

<%= form_for @comment, url: admin_article_comment_url(@article, @comment) do |f| %>
  <p data-attr="author">
    <%= f.label :author %> <br>
    <%= f.text_field :author %>
  </p>

  <p data-attr="text">
    <%= f.label :text %> <br>
    <%= f.text_area :text %>
  </p>

  <div data-attr="article_id">
    <%= f.hidden_field :article_id %>
  </div>

  <div class="field" data-attr="pinned">
    <%= f.check_box :pinned %> <%= f.label :pinned %>
  </div>

  <div class="field" data-attr="admin_rate">
    <%= f.label :admin_rate, 'Rate' %>
    <%= f.select :admin_rate, [['Awful', 1], ['Bad', 2], ['Decent', 3], ['Good', 4], ['Amazing', 5]] %>
  </div>

  <div data-attr="emotion">
    <%= f.radio_button :emotion, -1 %> <%= f.label 'emotion_-1', 'Negative', class: 'margin-right-tiny' %>
    <%= f.radio_button :emotion, 0 %> <%= f.label 'emotion_0', 'Neutral', class: 'margin-right-tiny' %>
    <%= f.radio_button :emotion, 1 %> <%= f.label 'emotion_1', 'Positive', class: 'margin-right-tiny' %>
  </div>

  <p><%= f.submit %> or <%= link_to "back", edit_admin_article_url(@article) %></p>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
loco-rails-3.0.5 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-3.0.4 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-3.0.3 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.5.3 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.5.2 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-3.0.2 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-3.0.1 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.5.1 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.5.0 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.4.0 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.3.0 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-3.0.0 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.2.2 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.2.1 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.2.0 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.1.0 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-2.0.0 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-1.5.2 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-1.5.1 test/dummy/app/views/admin/comments/edit.html.erb
loco-rails-1.5.0 test/dummy/app/views/admin/comments/edit.html.erb