Sha256: 4de03f1e791c1daf8d02fbeb497816bf7bc5a620505882cf9006f7c7d7059a6e
Contents?: true
Size: 875 Bytes
Versions: 2
Compression:
Stored size: 875 Bytes
Contents
= render "layouts/manage/page_title", title: "Edit Configuration", subtitle: @config.var do = link_to 'Cancel', manage_configs_path, class: 'btn btn-sm btn-outline-secondary' .form-container = bs_horizontal_simple_form_for HackathonConfig, url: manage_config_path(@config.var), method: 'patch', html: { "data-validate" => "form" } do |f| = f.error_notification .form-inputs - if [true, false].include? @config.value -# = f.input :value, label: @config.var, as: :boolean, 'yes', 'no' = f.input @config.var.to_sym, as: :radio_buttons, :collection => [['true',true], ['false',false]], label_method: :first, value_method: :last, :prompt => 'Choose one...' - else = f.input @config.var.to_sym, input_html: { value: @config.value } .form-actions = f.button :submit, class: 'btn-primary', value: "Update #{@config.var}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hackathon_manager-0.14.1 | app/views/manage/configs/edit.html.haml |
hackathon_manager-0.14.0 | app/views/manage/configs/edit.html.haml |