{"id":55,"date":"2020-03-08T18:33:14","date_gmt":"2020-03-08T18:33:14","guid":{"rendered":"https:\/\/demo.daext.com\/soccer-engine\/?page_id=55"},"modified":"2023-10-11T14:05:45","modified_gmt":"2023-10-11T14:05:45","slug":"team-contracts","status":"publish","type":"page","link":"https:\/\/demo.daext.com\/soccer-engine\/team-contracts\/","title":{"rendered":"Team Contracts"},"content":{"rendered":"\n<p>The <strong>Team Contracts<\/strong> block allows you to display in the front-end of the website a table with information about the team contracts.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example 1<\/h4>\n\n\n\n<p> Team contracts of any team contract type. <\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"team-contract\">\n\n            \n            <div id=\"dase-paginated-table-1\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'team_contract',\n                  filter: {'team_id': '0','team_contract_type_id': '0',},\n                  columns: ['player','age','citizenship','start_date','end_date','team','team_contract_type','salary'],\n                  hiddenColumnsBreakpoint1: ['age','citizenship','salary','team_contract_type'],\n                  hiddenColumnsBreakpoint2: ['age','citizenship','salary','start_date','team_contract_type'],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-1',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n\n<h4 class=\"wp-block-heading\">Example 2<\/h4>\n\n\n\n<p>Team contracts of a specific team.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"team-contract\">\n\n            \n            <div id=\"dase-paginated-table-2\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'team_contract',\n                  filter: {'team_id': '21','team_contract_type_id': '0',},\n                  columns: ['player','age','citizenship','start_date','end_date','team','team_contract_type','salary'],\n                  hiddenColumnsBreakpoint1: ['age','citizenship','salary','team_contract_type'],\n                  hiddenColumnsBreakpoint2: ['age','citizenship','salary','start_date','team_contract_type'],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-2',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n\n<h3 class=\"wp-block-heading\">Example 3<\/h3>\n\n\n\n<p>Team contract of a specific team contract type.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"team-contract\">\n\n            \n            <div id=\"dase-paginated-table-3\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'team_contract',\n                  filter: {'team_id': '0','team_contract_type_id': '1537',},\n                  columns: ['player','age','citizenship','start_date','end_date','team','team_contract_type','salary'],\n                  hiddenColumnsBreakpoint1: ['age','citizenship','salary','team_contract_type'],\n                  hiddenColumnsBreakpoint2: ['age','citizenship','salary','start_date','team_contract_type'],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-3',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n<div  class='av-buildercomment av-surz-3a62ea9f80fa2970fc5a25be9dc8b533'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Team Contracts block allows you to display in the front-end of the website a table with information about the team contracts. Example 1 Team contracts of any team contract type. Example 2 Team contracts of a specific team. Example 3 Team contract of a specific team contract type.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-55","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":1,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/55\/revisions"}],"predecessor-version":[{"id":705,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/55\/revisions\/705"}],"wp:attachment":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/media?parent=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}