Skip to content

Commit

Permalink
Fixes #38025 - Add label option when creating organization
Browse files Browse the repository at this point in the history
The label field was removed probably accidentally in #10880.
This action is still doable in api so it should be doable in UI as well.
  • Loading branch information
adamlazik1 authored and chris1984 committed Dec 5, 2024
1 parent 74241a4 commit d3a9089
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/overrides/add_organization_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
:text => '<% if taxonomy.is_a?(Location) %><%= render_original %><% end %>'
)

Deface::Override.new(:virtual_path => "taxonomies/_step1",
:name => "add_organization_attributes_on_create",
:insert_after => 'erb[loud]:contains("text_f"):contains(":name")',
:partial => 'overrides/organizations/step_1_override'
)

# Add organization attributes to org edit
Deface::Override.new(:virtual_path => "taxonomies/_form",
:name => "add_organization_attributes_on_edit",
Expand Down
5 changes: 5 additions & 0 deletions app/views/overrides/organizations/_step_1_override.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% if @taxonomy.is_a?(Organization) %>

<%= text_f f, :label, :class => 'input-xlarge' %>

<% end %>

0 comments on commit d3a9089

Please sign in to comment.