%h2 Edit donator

.row
  .col-md-9
    = simple_form_for(@donator, url: url_for(controller: "donators", action: "update"), :html => { :class => 'form' }) do |f|
      = f.input :expires_at, :as => :string, :input_html => { :value => I18n.l(@donator.expires_at, :format => :datepicker), :data => { :"datepicker-format" => "dd-mm-yyyy hh:ii", :"datepicker-nodefault" => "false" } }, :label => "Expires at"

      .col-md-offset-2
        %button.btn.btn-default{:type => :submit}
          Update

= render "datepicker_options"


%h2 Edit donator

.row
  .col-md-9
    = simple_form_for(@donator, url: url_for(controller: "donators", action: "update"), html: { class: 'form' }) do |f|
      = f.input :expires_at, as: :string, input_html: { value: @donator.expires_at && I18n.l(@donator.expires_at, format: :datepicker), data: { "datepicker-format": "dd-mm-yyyy hh:ii", "datepicker-nodefault": "false" } }, label: "Expires at"

      .col-md-offset-2
        %button.btn.btn-default{type: :submit}
          Update

= render "datepicker_options"


Fix exception on date localization when editing a donator with no expires_at
Fix exception on date localization when editing a donator with no expires_at
