PHP Classes

File: src/Cabin/Bridge/View/cargo/bridge_pages_page_new.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Cabin/Bridge/View/cargo/bridge_pages_page_new.twig   Download  
File: src/Cabin/Bridge/View/cargo/bridge_pages_page_new.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 7 years ago
Size: 3,436 bytes
 

Contents

Class file image Download
{% set cabin_config = cabin_custom_config() %} <form method="post" class="airship-form">{{ form_token() }} <div class="form-table"> <div class="table-row"> <label class="table-cell"> {{ __("Cabin") }}: </label> <div class="table-cell"> <a href="{{ cabin_url() }}pages/{{ cabin|e('url') }}" target="_blank" rel="noopener noreferrer">{{ cabin }}</a> </div> </div> <div class="table-row"> <label class="table-cell"> {{ __("Page Name") }}: </label> <div class="table-cell"> {{ dir }}/<input title="{{ __("URL") }}" type="text" required="required" name="url" /> </div> </div> <div class="table-row"> <label class="table-cell"> {{ __("Options") }}: </label> <div class="table-cell bridge_page_options"> <fieldset class="form-button-group"> <input type="checkbox" id="page_cache_checkbox" name="cache" value="1" /> <label for="page_cache_checkbox">{{ __("Cache this page?") }}</label> {% if is_admin() %} <br /> <input type="checkbox" id="page_raw_checkbox" name="view_raw" value="1" /> <label for="page_raw_checkbox">{{ __("View raw? (Don't run through HTMLPurifier - Doesn't affect preview - Increases risk of XSS)") }}</label> {% endif %} </fieldset> </div> </div> <div class="table-row"> <label class="table-cell"> {{ __("Page Format") }}: </label> <div class="table-cell"> {% include cargo("bridge_pages_select_format") with { "format": _POST.format|default( cabin_config['editor']['default-format']|default('Rich Text') ) } %} </div> </div> </div> <div class="bridge_page_rich_text_wrapper"> {% include cargo("rich_text_editor") with { "contents": "", "name": "page_body", "placeholder": "" } %} </div> <fieldset class="form-metadata-wrapper"> <legend> <input type="checkbox" id="show_metadata" /> <label for="show_metadata">{{ __("Show Metadata Fields?") }}</label> </legend> <div class="form-table" id="pages_metadata"> {% include cargo("bridge_pages_metadata") with { "metadata": [] } %} </div> </fieldset> <fieldset class="form-button-group"> {% if can('publish') %} <button type="submit" name="save_btn" value="publish" class="pure-button pure-button-secondary"> {{ __("Save New Page") }} </button> <button type="submit" name="save_btn" value="draft" class="pure-button pure-button-tertiary"> {{ __("Save Draft") }} </button> {% else %} <button type="submit" name="save_btn" value="draft" class="pure-button pure-button-tertiary"> {{ __("Save Draft") }} </button> {% endif %} </fieldset> </form>