forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from ontoportal-lirmm/feature/add-not-availab…
…le-value-text-concept Feature: Add feedback for empty attributes in concepts
- Loading branch information
Showing
10 changed files
with
125 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
app/components/alert_message_component/alert_message_component.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
.alert.alert-dismissible.fade.show{:role => "alert", class: "#{@type}"} | ||
= content | ||
%button.close{"aria-label": "Close", "data-dismiss": "alert", type: "button", style: "background: transparent"} | ||
%span{"aria-hidden" => "true"} × | ||
.alert.alert-dismissible.fade.show{:role => "alert", class: "#{@type}", style: "text-align: left"} | ||
= @message | ||
|
||
- if @closeable | ||
%button.close{"aria-label": "Close", "data-dismiss": "alert", type: "button", style: "background: transparent"} | ||
%span{"aria-hidden" => "true"} × | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
test/components/previews/alert_message_component_preview.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class AlertMessageComponentPreview < ViewComponent::Preview | ||
|
||
# @param message text | ||
# @param type select [error, info, success, warning] | ||
|
||
def default(message: "Here we can type a success or failure message to the user", type: "info", closeable: true ) | ||
render(AlertMessageComponent.new(message: message, type: type, closeable: closeable)) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ def default(name: "name", value: "value") | |
render(ChipsComponent.new(name: name, value: value)) | ||
end | ||
|
||
end | ||
end |