= form_for @changeset, tweak_path(@conn, :update, @name, @tweak.id), [method: "PUT"], fn f ->
  .pb-3
    = text_input(f, :title, class: "form-control input-block input-lg", placeholder: "Title", value: @tweak.title)
  .pb-3
    = textarea(f, :code, class: "form-control input-block tweak-textarea", placeholder: "Enter tweak code", value: @tweak.code)
  .form-actions
    = submit("Update tweak", class: "btn btn-primary")
    a.btn.btn-danger href="#{tweak_path(@conn, :show, @name, @tweak.id)}" = gettext "Cancel"

= form_for @changeset, tweak_path(@conn, :update, @name, @tweak.id), [method: "PUT"], fn f ->
  .pb-3
    = text_input(f, :title, class: "form-control input-block input-lg", placeholder: "Title", value: @tweak.title)
  .pb-3
    = select(f, :type, ["Init": "init", "Style": "style"], prompt: "Select tweak type", value: @tweak.type)
  .pb-3
    = textarea(f, :code, class: "form-control input-block tweak-textarea", placeholder: "Enter tweak code", value: @tweak.code)
  .form-actions
    = submit("Update tweak", class: "btn btn-primary")
    a.btn.btn-danger href="#{tweak_path(@conn, :show, @name, @tweak.id)}" = gettext "Cancel"

Add tweak type to edit tweak form
Add tweak type to edit tweak form

lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks