- Mobility.with_locale(admin_current_resource_locale) do
  = simple_form_for [:admin, @speaker] do |f|
    = admin_box_body do
      = f.input :name, as: :string
      = f.input :title, as: :string
      = f.input :order
      = f.input :description, as: :text, input_html: { data: { editor: true }, rows: 20 }
      = f.input :avatar do
        = f.input_field :avatar
        -if @speaker.avatar.present?
          = image_tag @speaker.avatar.url
          = f.input :remove_avatar, as: :boolean
    = admin_box_footer do
      = f.submit class: 'btn btn-primary'

- Mobility.with_locale(admin_current_resource_locale) do
  = simple_form_for [:admin, @speaker] do |f|
    = admin_box_body do
      = f.input :name, as: :string
      = f.input :title, as: :string
      = f.input :order
      = f.input :description, as: :text, input_html: { data: { editor: true }, rows: 20 }
      = f.input :avatar do
        = f.input_field :avatar, required: false
        - if @speaker.avatar.present?
          = image_tag @speaker.avatar.url
          = f.input :remove_avatar, as: :boolean
    = admin_box_footer do
      = f.submit class: 'btn btn-primary'

Set speaker photo as option to prevent re-uploading avatar
Set speaker photo as option to prevent re-uploading avatar

TGDF/official-site,TGDF/official-site,TGDF/official-site,TGDF/official-site