Sha256: 4f9e0a97f0a0d537a3b70e16f584b928f10d6428d9cbac09d0166f757533a3dc

Contents?: true

Size: 673 Bytes

Versions: 6

Compression:

Stored size: 673 Bytes

Contents

= form_with(model: @block) do |form|
  - if @block.errors.any?
    div style="color: red"
      h2 = "#{pluralize(@block.errors.count, "error")} prohibited this block from being saved:"
      ul
        - @block.errors.each do |error|
          li = error.full_message

  div
    = form.label :nonce, style: "display: block"
    = form.number_field :nonce

  div
    = form.label :previous_hash, style: "display: block"
    = form.text_field :previous_hash

  div
    = form.label :block_data, style: "display: block"
    = form.text_area :block_data

  div
    = form.label :connections, style: "display: block"
    = form.text_field :connections

  div
    = form.submit

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
osbc-0.2.0 app/views/blocks/_form.html.slim
osbc-0.1.9 app/views/blocks/_form.html.slim
osbc-0.1.8 app/views/blocks/_form.html.slim
osbc-0.1.7 app/views/blocks/_form.html.slim
osbc-0.1.6 app/views/blocks/_form.html.slim
osbc-0.1.5 app/views/blocks/_form.html.slim