Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Dec 5, 2023
2 parents 8f4abab + ba6ee8d commit acb1632
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
= render Input::InputFieldComponent.new(name: @name, error_message: @error_message, helper_text: @helper_text, label: @label) do
= render SelectInputComponent.new(id: @id, name: @name, values: @values , selected: @selected , multiple: @multiple, open_to_add_values: @open_to_add_values )
4 changes: 3 additions & 1 deletion app/components/ontology_subscribe_button_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ def initialize(ontology_id:, subscribed:, user_id:, count: 0, link: 'javascript:
},
title: title
}
@link = link
@count = count
end

def title
if @subscribed
"#{@sub_text} this resource"
Expand Down
4 changes: 4 additions & 0 deletions app/components/select_input_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def initialize(id:, name:, values:, selected: nil, multiple: false, open_to_add_
@data = data
@required = required
end

def call
select_input_tag(@id, @values, @selected, multiple: @multiple, open_to_add_values: @open_to_add_values)
end

def call
select_input_tag(@id, @name, @values, @selected, multiple: @multiple, open_to_add_values: @open_to_add_values,
Expand Down

0 comments on commit acb1632

Please sign in to comment.