Skip to content

Commit

Permalink
fix wording of select box and make create new group work
Browse files Browse the repository at this point in the history
  • Loading branch information
dereke committed Sep 25, 2021
1 parent 0395de8 commit bad64c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/controllers/initiatives_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def set_initiative
def set_edit_data
set_group_types
@groups = Group.all.order(name: :asc).map { |group| [group.name, group.id] }
@initiative&.lead_group ||= Group.new

@initiative_statuses =
InitiativeStatus.all.map do |initiative_status|
Expand Down
4 changes: 2 additions & 2 deletions app/views/initiatives/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<%= javascript_packs_with_chunks_tag 'initiative_websites', 'data-turbolinks-track': 'reload' %>
</div>
<a href="#" data-content="add_initiative_website">
<span>Add another</span><img src="<%=asset_pack_path("media/icons/right_arrow.svg")%>">
<span>Add another</span>&nbsp;<img src="<%=asset_pack_path("media/icons/right_arrow.svg")%>">
</a>
<% end %>

Expand All @@ -140,7 +140,7 @@
<% end %>

<%= f.form_field :lead_group_id do %>
<%= f.label :lead_group_id, 'Select' %>
<%= f.label :lead_group_id, 'Please select the group leading your project' %>
<div class="Hint">You can create a new one if your group isn’t listed</div>
<%= f.select :lead_group_id do %>
<option value="">Please select a group</option>
Expand Down

0 comments on commit bad64c4

Please sign in to comment.