4 <div id="brapi_home_study_layout_detail_div">
7 <input name="brapi_home_studylayoutdbid" id="brapi_home_studylayoutdbid" class="form-control" type="text" placeholder="StudyDbId e.g. 139" value="139"/>
8 <button class="btn btn-primary" name="brapi_home_studylayoutdbid_submit" id="brapi_home_studylayoutdbid_submit">Get Layout</button>
10 <div id="brapi_studylayout_data_result_div">
17 jQuery(document).ready(function() {
18 jQuery("#brapi_home_studylayoutdbid_submit").click(function() {
20 'url': jQuery('#brapi_home_url_select').val()+'/brapi/v1/studies/'+jQuery('#brapi_home_studylayoutdbid').val()+'/layout',
22 'beforeSend': function() {
23 jQuery('#working_modal').modal('show');
25 'success': function(response) {
26 jQuery('#working_modal').modal('hide');
27 console.log(response);
28 brapi_create_paginated_table(response.result.data, response.metadata.pagination, 'brapi_studylayout_data_result_div', jQuery('#brapi_home_url_select').val()+'/brapi/v1/studies/'+jQuery('#brapi_home_studylayoutdbid').val()+'/layout', undefined);
31 error: function(response) {
32 jQuery('#working_modal').modal('hide');
33 alert('An error occurred');