this is the below code in tablename-dv.js file
Code: Select all
var dv = AppGiniHelper.DV;
var row_1 = new AppGiniLayout([6, 6], "Booking Details", "my-panel-1", Variation.primary)
.add(1, ["enquiry_no", "first_name"])
.add(2, ["booking_status", "Id"])
.wrapLabels();
var row_2 = new AppGiniLayout([6, 6])
.add(1, ["date_booked", "email"])
.add(2, ["contact", "destination"])
.wrapLabels();
var row_3 = new AppGiniLayout([3, 3, 3, 3])
.add(1, ["adults"])
.add(2, ["children"])
.add(3, ["infants"])
.add(4, ["no_of_guests"])
.wrapLabels();
var row_4 = new AppGiniLayout([6, 6], "Departure", "my-panel-2", Variation.primary)
.add(1, ["flight1", "flight1_departure_date", "flight1_direct_indirect", "flight1_ref_no", "flight1_cost"])
.add(2, ["flight1_from_airport", "flight1_to_airport", "flight1_baggage", "flight1_baggage_cost"])
.wrapLabels();
var row_5 = new AppGiniLayout([6, 6], "Additional Flight", "my-panel-3", Variation.info)
.add(1, ["flight2", "flight2_departure_date", "flight2_direct_indirect", "flight2_ref_no", "flight2_cost"])
.add(2, ["flight2_from_airport", "flight2_to_airport", "flight2_baggage", "flight2_baggage_cost"])
.wrapLabels();
var row_6 = new AppGiniLayout([6, 6], "Arrival", "my-panel-4", Variation.primary)
.add(1, ["arriving_flight", "arriving_flight_departure_date", "arriving_flight_direct_indirect", "arriving_flight_ref_no", "arriving_flight_cost"])
.add(2, ["arriving_flight_from_airport", "arriving_flight_to_airport", "arriving_flight_baggage", "arriving_flight_baggage_cost"])
.wrapLabels();
var row_7 = new AppGiniLayout([6, 6], "Hotels", "my-panel-5", Variation.primary)
.add(1, ["hotel1_country", "hotel1_name", "hotel1_check_in", "hotel1_ref_no"])
.add(2, ["hotel1_city", "hotel1_room_type", "hotel1_check_out", "hotel1_cost"])
.wrapLabels();
var row_8 = new AppGiniLayout([6, 6], "Additional Hotels", "my-panel-6", Variation.info)
.add(1, ["hotel2_country", "hotel2_name", "hotel2_check_in", "hotel2_ref_no"])
.add(2, ["hotel2_city", "hotel2_room_type", "hotel2_check_out", "hotel2_cost"])
.wrapLabels();
var row_9 = new AppGiniLayout([6, 6], "Cost Summary", "my-panel-7", Variation.danger)
.add(1, ["visa_type", "tours", "insurance", "total_cost", "profit", "balance_payment"])
.add(2, ["visa_cost", "tours_cost", "insurance_cost", "selling_price", "amount_paid", "balance_payment_due_date"])
.wrapLabels();
dv.addTab("tab1", "Customer", "icon")
.add(row_1)
.add(row_2)
.add(row_3);
dv.addTab("tab2", "Airlines", "icon")
.add(row_4)
.add(row_5)
.add(row_6);
dv.addTab("tab3", "Hotels", "icon")
.add(row_7)
.add(row_8);
dv.addTab("tab4", "Cost Summary", "icon")
.add(row_9);
dv.addTab("tab5", "Notes", "icon", ["notes"]);
dv.addTab("tab6", "Attachments", "icon", ["attachments"]);
panels are not shown on site.. tabs and multi layout work fine...
additionally, i want to add collapsible panel too like for example for row_5 and row_8
i recently purchased both AG and AG helper, trying to help my friend for his travel agency..
thank you in advance..