<%=
  render partial: "myplaceonline/select_or_create", locals: {
    f: f,
    name: :contact,
    existingobj: obj.contact,
    heading: t("myplaceonline.business_cards.contact"),
    objform: "contacts/form",
    existingobjurl: "contact_path",
    searchurl: "/contacts.json?perpage=0",
    edit: edit,
    autofocus: autofocus,
    simpleform: true,
    expanded_if_nil: true
  }
%>
<%= myp_text_area_markdown(f, :notes, "myplaceonline.general.notes", obj.notes) %>
<%=
  render partial: "myplaceonline/pictures_form", locals: {
    f: f,
    obj: obj,
    position_field: :position,
    pictures_field: :business_card_files,
    item_placeholder: "myplaceonline.business_cards.file",
    heading: "myplaceonline.business_cards.files",
    addbutton: "myplaceonline.business_cards.add_file",
    addbutton_multi: "myplaceonline.business_cards.add_files",
    deletebutton: "myplaceonline.business_cards.delete_file"
  }
%>

<%=
  render partial: "myplaceonline/select_or_create", locals: {
    f: f,
    name: :contact,
    existingobj: obj.contact,
    heading: t("myplaceonline.business_cards.contact"),
    objform: "contacts/form",
    existingobjurl: "contact_path",
    searchurl: "/contacts.json?perpage=0",
    edit: edit,
    autofocus: autofocus,
    expanded_if_nil: true
  }
%>
<%= myp_text_area_markdown(f, :notes, "myplaceonline.general.notes", obj.notes) %>
<%=
  render partial: "myplaceonline/pictures_form", locals: {
    f: f,
    obj: obj,
    position_field: :position,
    pictures_field: :business_card_files,
    item_placeholder: "myplaceonline.business_cards.file",
    heading: "myplaceonline.business_cards.files",
    addbutton: "myplaceonline.business_cards.add_file",
    addbutton_multi: "myplaceonline.business_cards.add_files",
    deletebutton: "myplaceonline.business_cards.delete_file"
  }
%>

Use full contact form for new business card
Use full contact form for new business card
