<%@language = "javascript" %>
<% /*
     $Revision$
     $Id$

    File:        opdr_res_list.asp
    Description: Toont de reserveringen bij een opdracht
    Parameters:  opdr_key
    Context:     Vanuit mld_opdr.asp
    Note:
*/ %>

<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_reservations.inc " -->
<%

var opdr_key = getQParamInt("order", -1);
var res_model = new model_reservations()

delete res_model["REST_POST"]; // die gaan we zelf doen
delete res_model["REST_DELETE"]; // te tricky?

var rsv_params = {
    "list": {
        "requires": {
                "js": ["./opdr_res_list.js"]
            },
        "columns": [
            "id",
            "reservationequipment.equipment",
            "reservationequipment.from",
            "reservationequipment.to"
            ],
        "default_action": "open_reservation",
        "buttons": [{ icon: "fa-plus", title: L("lcl_add"), action: "add_reservation(" + opdr_key + ")" }]
    }
  };

scaffolding(res_model, rsv_params);

ASPPAGE_END();
%>
