F5 Test changes
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
= f.row :active
|
||||
.form-label= f.label :active
|
||||
.form-field= f.check_box :active
|
||||
= f.row :input_type
|
||||
.form-label= f.label :input_type
|
||||
.form-field= f.select :input_type, %w[raw snap_code]
|
||||
= f.row :dpm
|
||||
.small-3.columns= f.label :dpm
|
||||
.small-3.columns= f.number_field :dpm, step: :any
|
||||
@@ -25,7 +28,7 @@
|
||||
.form-field.full= f.text_area :svg
|
||||
= f.row :snap_code
|
||||
.form-label= f.label :snap_code
|
||||
.row: .small-12.columns= f.text_area :snap_code, rows: 20, class: ['snap-code-editor'], data: {target: '#svg-preview', preview: '#javascript-preview'}
|
||||
.row: .small-12.columns= f.text_area :snap_code, rows: 20, class: ['snap-code-editor'], data: {preview_target: '#svg-preview', preview: '#javascript-preview'}
|
||||
.row: .small-12.columns: pre#javascript-preview.hide
|
||||
.form-actions
|
||||
= f.submit nil, class: 'form-submit-button'
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- model_class = SvgElement
|
||||
- title :edit, model_class
|
||||
= render 'form'
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_destroy_content(@svg_element), [:admin, @svg_element], method: :delete, confirm: are_you_sure(@svg_element), class: 'record-destroy-button'
|
||||
|
||||
@@ -9,11 +9,8 @@
|
||||
tbody
|
||||
- @svg_elements.each do |svg_element|
|
||||
tr
|
||||
td= link_to svg_element.name, [:admin, svg_element]
|
||||
td
|
||||
= link_to t('helpers.links.edit'), [:edit, :admin, svg_element], class: 'table-edit-button'
|
||||
'
|
||||
= link_to t("helpers.links.destroy"), [:admin, svg_element], method: :delete, data: {confirm: are_you_sure? }, class: 'table-destroy-button'
|
||||
td= link_to svg_element.name, [:edit, :admin, svg_element]
|
||||
= edit_td [:admin, svg_element]
|
||||
- else
|
||||
= no_content_given model_class
|
||||
/= link_to t("helpers.links.new"), new_admin_svg_element_path, class: 'record-new-button'
|
||||
|
||||
Reference in New Issue
Block a user