Skip to content

Commit

Permalink
Move status field to last position
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusdeap committed Oct 10, 2023
1 parent 324c2e8 commit 85d21ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/stories/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@

<%= f.hidden_field :project_id, value: params[:project_id] %>

<div class="field story_status">
<%= f.label :status, "Status" %>
<%= f.select :status, options_for_select({ "Pending" => "pending", "Approved" => "approved", "Rejected" => "rejected" }, selected: @story.status), class: "project-story-approved" %>
</div>

<div class="field story_title">
<%= f.label :title %>
<%= f.text_field :title, placeholder: "Story Title", class: "project-story-title", autofocus: true %>
Expand All @@ -43,6 +38,11 @@
<div class="content"><%= markdown(@story.extra_info) %></div>
</div>

<div class="field story_status">
<%= f.label :status, "Status" %>
<%= f.select :status, options_for_select({ "Pending" => "pending", "Approved" => "approved", "Rejected" => "rejected" }, selected: @story.status), class: "project-story-approved" %>
</div>


<div class="btn-group">
<%= f.submit yield(:button_text), class: "button green", id: "edit" %>
Expand Down

0 comments on commit 85d21ed

Please sign in to comment.