source of /modules/HarborAndSprout/views/admin/drive_api_form.php<?php use Sprout\Helpers\Form; Form::setData($_POST); ?> <form action="" method="post" class="clear-group"> <div class="col col--one-half"> <?php Form::nextFieldDetails('Method', true); echo Form::dropdown('method', [], ['GET' => 'GET', 'POST' => 'POST']); ?> </div> <div class="col col--one-half"> <?php Form::nextFieldDetails('Endpoint', true); echo Form::text('endpoint'); ?> </div> <div class="col col--one-half"> <?php Form::nextFieldDetails('Params', false, 'JSON'); echo Form::multiline('extra', ['placeholder' => '{"pageSize": 10, "fields": "nextPageToken, files(id, name)"}']) ?> </div> <div class="col col--one-half" style="margin-top: 3em;"> <button type="submit" class="button icon-after icon-send">Submit</button> <?php if (empty($connected)): ?> <a href="google-drive/auth-connect" class="button button-blue icon-after icon-vpn_key">Connect to Google Drive</a> <?php endif; ?> </div> </form> <pre><?= $output; ?></pre>
|