|
Lines 926-950
export default {
Link Here
|
| 926 |
}, |
926 |
}, |
| 927 |
]; |
927 |
]; |
| 928 |
|
928 |
|
| 929 |
const additionalToolbarButtons = (resource, componentData) => { |
|
|
| 930 |
const buttons = { |
| 931 |
form: [ |
| 932 |
{ |
| 933 |
title: $__("Submit"), |
| 934 |
form: componentData.resourceForm, |
| 935 |
}, |
| 936 |
{ |
| 937 |
to: { |
| 938 |
name: "SIP2AccountsList", |
| 939 |
}, |
| 940 |
title: $__("Cancel"), |
| 941 |
cssClass: "btn btn-link", |
| 942 |
}, |
| 943 |
], |
| 944 |
}; |
| 945 |
return buttons; |
| 946 |
}; |
| 947 |
|
| 948 |
const baseResource = useBaseResource({ |
929 |
const baseResource = useBaseResource({ |
| 949 |
resourceName: "account", |
930 |
resourceName: "account", |
| 950 |
nameAttr: "login_id", |
931 |
nameAttr: "login_id", |
|
Lines 971-977
export default {
Link Here
|
| 971 |
APIClient.sip2.httpClient._baseURL + "accounts", |
952 |
APIClient.sip2.httpClient._baseURL + "accounts", |
| 972 |
options: { embed: "institution" }, |
953 |
options: { embed: "institution" }, |
| 973 |
}, |
954 |
}, |
| 974 |
additionalToolbarButtons, |
|
|
| 975 |
stickyToolbar: ["Form"], |
955 |
stickyToolbar: ["Form"], |
| 976 |
embedded: props.embedded, |
956 |
embedded: props.embedded, |
| 977 |
formGroupsDisplayMode: "accordion", |
957 |
formGroupsDisplayMode: "accordion", |
| 978 |
- |
|
|