Module: Card::Set::All::RichHtml::HtmlViews::Info::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- tmpsets/set/mod021-standard/all/rich_html/html_views/info.rb
Instance Method Summary collapse
Instance Method Details
#all_views ⇒ Object
86 87 88 89 90 |
# File 'tmpsets/set/mod021-standard/all/rich_html/html_views/info.rb', line 86 def all_views Card::Set::Format::AbstractFormat::ViewDefinition.views .slice(*self.class.ancestors) .values.map(&:keys).flatten.uniq end |
#demo_view ⇒ Object
69 70 71 |
# File 'tmpsets/set/mod021-standard/all/rich_html/html_views/info.rb', line 69 def demo_view Env.params[:demo_view] || :core end |
#view_demo ⇒ Object
73 74 75 76 77 |
# File 'tmpsets/set/mod021-standard/all/rich_html/html_views/info.rb', line 73 def view_demo wrap(true) do render demo_view end end |
#view_select ⇒ Object
79 80 81 82 83 84 |
# File 'tmpsets/set/mod021-standard/all/rich_html/html_views/info.rb', line 79 def view_select card_form :get, success: { view: :demo } do select_tag :demo_view, (all_views, demo_view), class: "_submit-on-select" end end |