Renders form canvas.
Description
See also
Parameters
- $form
-
(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Current form.
Source
File: src/db-objects/forms/form-edit-page-handler.php
private function render_form_canvas( $form ) { ?> <div id="torro-form-canvas" class="torro-form-canvas"> <div class="torro-form-canvas-header torro-form-canvas-tabs" role="tablist"> <button type="button" class="torro-form-canvas-tab add-button is-active" disabled="disabled"> <span aria-hidden="true">+</span><span class="screen-reader-text"><?php _e( 'Add New Container', 'torro-forms' ); ?></span> </button> </div> <div class="torro-form-canvas-content"> <div class="drag-drop-area is-empty"> <div class="content loader-content hide-if-no-js"> <?php _e( 'Loading form builder...', 'torro-forms' ); ?> <span class="spinner is-active"></span> </div> <div class="torro-notice notice-warning hide-if-js"> <p> <?php _e( 'It seems you have disabled JavaScript in your browser. Torro Forms requires JavaScript in order to edit your forms.', 'torro-forms' ); ?> </p> </div> </div> </div> <div class="torro-form-canvas-footer"></div> </div> <?php }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |