Sha256: b4dd93cfbe3b60834d47ac0e352de2e448e858150a953bc3ef4f216cb69b6db2
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
h3.text-primary = "Table: #{@table}" h4.text-warning = "Column: #{@column}" h5.text-info = "Default: #{@opts.default}" if @opts.default h6.text-danger = "Null: #{@opts.null}" if @opts.null = form_for @opts, url: :column_options, html: { class: 'form-horizontal' }, remote: true do |f| = f.hidden_field :table, value: @table = f.hidden_field :column, value: @column .form-group .col-md-9 .row .col-md-9 = f.label :type = f.select :type, ["Current: #{@opts.type}",'String', 'Boolean', 'Integer', 'Text', 'Float', 'Decimal', 'Binary', 'Date', 'Time', 'DateTime'].map { |i| i }, {}, { class: 'browser-default' } .col-md-3 = label_tag 'Default value' = f.text_field :default, class: 'form-control', placeholder: 'Default value...' = f.hidden_field 'parameters[:old_type]', value: @opts.type = f.hidden_field 'parameters[:old_default]', value: @opts.default .col-md-3 = f.submit 'Run', class: 'btn btn-info waves-effect waves-light ajax' = link_to 'Remove Column', remove_column_path(table: @table ,column: @column), method: :post, class: 'btn btn-sm btn-danger waves-effect waves-light', data: { confirm: "Remove column #{@column}?" }, remote: true
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ryakuzu-0.3.0 | app/views/ryakuzu/tables/_column.html.slim |