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.
update widgets section style to to remove thickbox dependecy
- Loading branch information
1 parent
9b5dd85
commit 9653406
Showing
7 changed files
with
217 additions
and
695 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
class WidgetBlockComponent < ViewComponent::Base | ||
|
||
renders_one :help_text | ||
renders_one :widget | ||
|
||
def initialize(id: , title: , description:) | ||
@id = id | ||
@title = title | ||
@description = description | ||
end | ||
end |
26 changes: 26 additions & 0 deletions
26
app/components/widget_block_component/widget_block_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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
%div.d-flex{data: {turbo: false}} | ||
%div.w-50.mr-3 | ||
%div | ||
%div.card-body | ||
%h5.card-title | ||
= @title | ||
%p.card-text | ||
= @description | ||
|
||
%div.w-100.d-flex.justify-content-center | ||
%div.card.py-3.px-2{style: "width: 600px"} | ||
= render TabsContainerComponent.new(id: @id) do |t| | ||
- t.item(title: 'Widget', selected: true) | ||
- t.item(title: '') do | ||
%span.mx-1 | ||
See code | ||
= inline_svg_tag('json.svg') | ||
|
||
- t.item_content do | ||
%div.py-3.d-flex.justify-content-center | ||
= widget | ||
- t.item_content do | ||
= help_text | ||
|
||
%hr.divider.w-100 | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.