source of /modules/HarborAndSprout/views/admin/shopify_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', [], $methods); ?> </div> <div class="col col--one-half"> <?php Form::nextFieldDetails('Endpoint', true); echo Form::text('endpoint', ['placeholder' => '/orders.json']); ?> </div> <div class="col col--one-half"> <?php Form::nextFieldDetails('Params', false, 'JSON'); echo Form::multiline('extra', ['placeholder' => '{"limit": 1}']) ?> </div> <div class="col col--one-half" style="margin-top: 3em;"> <button type="submit" class="button icon-after icon-send">Submit</button> </div> </form> <pre><?= $output; ?></pre>
|