

mainForm: WOForm {
	multipleSubmit = true;
	action = doNothing;
}
langPaymentsList : WOString {
  value = session.localizer.PaymentsList;
  valueWhenEmpty = "PaymentsList";
}
langDeliveryMethodsList : WOString {
  value = session.localizer.DeliveryMethodsList;
  valueWhenEmpty = "DeliveryMethodsList";
}

deliveryMethodsList : WORepetition {
	list = deliveryMethodDisplayGroup.displayedObjects;
	item = currentDeliveryMethod;
}
paymentsList : WORepetition {
	list = paymentsDisplayGroup.displayedObjects;
	item = currentPaymentMethod;
}
addDeliveryMethod : WOHyperlink {
	action = addDeliveryMethod;
	class = "add btn btn-default btn-sm btn-block";
}
addPayment : WOHyperlink {
	action = addPayment;
	class = "add btn btn-default btn-sm btn-block";
}
editDeliveryMethod : WOHyperlink {
	action = editDeliveryMethod;
	class = currentDeliveryMethodLinkClasses;
}
editPayment : WOHyperlink {
	action = editPayment;
	class=currentPaymentLinkClasses;
}
deliveryMethodName : WOString {
  value = currentDeliveryMethod.theName;
  valueWhenEmpty = session.localizer.Untitled;
}
paymentName : WOString {
  value = currentPaymentMethod.theName;
  valueWhenEmpty = session.localizer.Untitled;
}

langAddPayment : WOString {
  value = session.localizer.AddPayment;
  valueWhenEmpty = "AddPayment";
}
langAddDeliveryMethod : WOString {
  value = session.localizer.AddDeliveryMethod;
  valueWhenEmpty = "AddDeliveryMethod";
}
selectedPaymentMethod : WOConditional {
  condition = selectedPaymentMethod;
}
selectedDeliveryMethod : WOConditional {
  condition = selectedDeliveryMethod;
}

EditDeliveryMethod : EditXTDeliveryMethod {
	selectedRecord = selectedDeliveryMethod;
}
save : WOSubmitButton {
	action = saveRecord;
	value = session.localizer.SaveChanges;
	class = "save btn btn-primary";
}

delete : WOSubmitButton {
	action = deleteRecord;
	value = session.localizer.Delete;
	class = "delete btn btn-danger";
}
