Sha256: 70419bcc6856a5bcc68eac8c1c9ce4f5d195146ad4fbfcb3aa376a11e46aa30f

Contents?: true

Size: 1.26 KB

Versions: 57

Compression:

Stored size: 1.26 KB

Contents

.person-form
  .row
    .col-12= form.select :person_type, enum_values_for_select(person.class, :person_type), {}, class: 'person-type-toggle'
  .natural_person.row
    = form.fields_for(:natural_person, person.natural_person || EgovUtils::NaturalPerson.new) do |fields|
      .col-12.col-md-2= fields.text_field(:title)
      .col-12.col-md-4= fields.text_field(:firstname)
      .col-12.col-md-4= fields.text_field(:lastname)
      .col-12.col-md-2= fields.text_field(:higher_title)
      .col-12.col-md-6= fields.date_field(:birth_date, min: Date.new(1920, 1, 1), max: Date.today, data: {'date-view-mode' => 'decades', 'date-use-current' => false, 'date-view-date' => Date.new(1950, 1, 1).to_s })
      .col-12.col-sm-6= fields.text_field(:birth_place)
  .legal_person.row
    = form.fields_for(:legal_person, person.legal_person || EgovUtils::LegalPerson.new) do |fields|
      .col-12= fields.text_field(:name)
      .col-12.col-sm-6= fields.text_field(:ico)
      .col-12.col-sm-6= fields.select2 :legal_form, list_values_for_select(azahara_attribute_for(EgovUtils::LegalPerson, 'legal_form'))
  .row
    .col-12
      = form.fields_for(:residence, person.residence || EgovUtils::Address.new) do |fields|
        = render 'egov_utils/addresses/form', form: fields, address: fields.object

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
egov_utils-1.4.5 app/views/egov_utils/people/_form.html.haml
egov_utils-1.4.4 app/views/egov_utils/people/_form.html.haml
egov_utils-1.5.0.alpha2 app/views/egov_utils/people/_form.html.haml
egov_utils-1.5.0.alpha1 app/views/egov_utils/people/_form.html.haml
egov_utils-1.4.3 app/views/egov_utils/people/_form.html.haml
egov_utils-1.4.2 app/views/egov_utils/people/_form.html.haml
egov_utils-1.4.1 app/views/egov_utils/people/_form.html.haml
egov_utils-1.4.0 app/views/egov_utils/people/_form.html.haml
egov_utils-1.3.0 app/views/egov_utils/people/_form.html.haml
egov_utils-1.2.4 app/views/egov_utils/people/_form.html.haml
egov_utils-1.2.3 app/views/egov_utils/people/_form.html.haml
egov_utils-1.2.2 app/views/egov_utils/people/_form.html.haml
egov_utils-1.2.1 app/views/egov_utils/people/_form.html.haml
egov_utils-1.2.0 app/views/egov_utils/people/_form.html.haml
egov_utils-1.1.1 app/views/egov_utils/people/_form.html.haml
egov_utils-1.1.0 app/views/egov_utils/people/_form.html.haml
egov_utils-1.0.3 app/views/egov_utils/people/_form.html.haml
egov_utils-1.0.2 app/views/egov_utils/people/_form.html.haml
egov_utils-1.0.1 app/views/egov_utils/people/_form.html.haml
egov_utils-1.0.0 app/views/egov_utils/people/_form.html.haml