Sha256: 9b1484acb06a027a9262e7bca53fc6d53a24d98ed6775e1ca90a8631effcc47b

Contents?: true

Size: 1.34 KB

Versions: 89

Compression:

Stored size: 1.34 KB

Contents

.action_card.ui.very.basic.segment
  .title.ui.header
    .name
      - case page_type
      - when 'entity_action'
        = @entity.respond_to?(:name) ? @entity.name || @entity : @entity
      - when 'entity_list_action'
        = Misc.humanize page_entity_list
      - when 'entity_map_action'
        = Misc.humanize page_entity_map
    .long_name
      = Misc.humanize page_action if page_action

  - if card.description
    .action_description.ui.basic.segment
      - case card.description
      - when String
        = card.description
      - when Proc
        = capture_haml &card.description
      - else
        - raise "Unknown description: #{fff card.description}"

  - if card.action_parameters
    = action_parameters &card.action_parameters

  - exception_html = nil
  - require_parameters = false
  - card.requires.each do |input|
    - if Array === input
      - inputs, input_block = input
      - if inputs.select{|input| @params[input.to_s].nil? }.any?
        - require_parameters = true
        - exception_html = capture_haml  &input_block
        - break

    - else
      - if @params[input.to_s].nil?
        - require_parameters = true
        - break

  - if exception_html
    = exception_html

  .action_content
    - if require_parameters
      %p Please configure the parameters to execute the action
    - else
      = capture_haml &block

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
rbbt-rest-1.7.3 share/views/entity_partials/action_card.haml
rbbt-rest-1.7.2 share/views/entity_partials/action_card.haml
rbbt-rest-1.7.1 share/views/entity_partials/action_card.haml
rbbt-rest-1.7.0 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.28 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.26 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.25 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.24 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.23 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.22 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.21 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.20 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.19 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.18 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.17 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.16 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.15 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.14 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.13 share/views/entity_partials/action_card.haml
rbbt-rest-1.6.12 share/views/entity_partials/action_card.haml