Class: KonoUtils::Object::Cell::Forms::Submit
- Inherits:
-
Base
- Object
- Trailblazer::Cell
- Base
- KonoUtils::Object::Cell::Forms::Submit
show all
- Defined in:
- app/concepts/kono_utils/object/cell/forms/submit.rb
Overview
La cella base dei componenti della form contiene sempre la form come model
Instance Method Summary
collapse
Methods inherited from Base
#_prefixes, #base_class, #concept, #content_for_layout, #content_for_layout?, #destroy_custom_polymorphic_path, #edit_custom_polymorphic_path, #index_custom_polymorphic_path, #kono_user, #legacy_concept, logger, #model_gender, #new_custom_polymorphic_path, #show_custom_polymorphic_path, #title_del, #title_del_g, #title_edit_g, #title_mod, #title_new, #title_new_g, #title_newa, #title_show_g
#fa_icon, #icon
Instance Method Details
#btn_options ⇒ Object
12
13
14
15
16
17
|
# File 'app/concepts/kono_utils/object/cell/forms/submit.rb', line 12
def btn_options
{
class: btn_status_class,
:disable_with => t('wait', default: 'Wait...')
}
end
|
#btn_status_class ⇒ Object
8
9
10
|
# File 'app/concepts/kono_utils/object/cell/forms/submit.rb', line 8
def btn_status_class
'btn-primary'
end
|
19
20
21
|
# File 'app/concepts/kono_utils/object/cell/forms/submit.rb', line 19
def show
form.button :submit, btn_options
end
|