PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/View/cargo/bridge_authors_edit.twig  >  Download  
File: src/Cabin/Bridge/View/cargo/bridge_authors_edit.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: 0 years ago
Size: 3,791 bytes
 

Contents

Class file image Download
<h2>{{ __("Edit Author \"%s\" Details", "default", author.name|e('html')) }}</h2>
<form method="post">{{ form_token() }}
    <div class="table full-width table-pad-1">
        <div class="table-row">
            <div class="table-cell table-label table-min-width">
                <label for="author_name">{{ __("Author Name") }}:</label>
            </div>
            <div class="table-cell">
                <input
                     class="full-width"
                     id="author_name"
                     name="name"
                     placeholder="{{ __("e.g. Information Technology Department")|e('html_attr') }}"
                     value="{{ author.name|e('html_attr') }}"
                     type="text"
                 />
            </div>
        </div>

        <div class="table-row">
            <label class="table-cell" for="author_slug">{{ __("Slug") }}:</label>
            <div class="table-cell bottom-pad">
                <input
                    class="full-width"
                    id="author_slug"
                    type="text"
                    name="slug"
                    data-original="{{ author.slug|e('html_attr') }}"
                    value="{{ author.slug|e('html_attr') }}"
                    pattern="^[a-z0-9][a-z0-9\-]+$"
                />
                <div id="author_slug_checkbox_wrapper">
                    <input type="checkbox" class="large_checkbox" name="redirect_slug" id="redirect_slug" value="1" />
                    <label for="redirect_slug">{{ __("Redirect the old URL to the new destination?") }}</label>
                </div>
            </div>
        </div>

        <div class="table-row">
            <div class="table-cell table-label table-min-width">
                <label for="byline">{{ __("Byline") }}</label>:
            </div>
            <div class="table-cell">
                <input
                    class="full-width"
                    id="byline"
                    type="text"
                    placeholder="{{
                        __("e.g. Chief Operations Officer")|e('html_attr')
                    }}"
                    name="byline"
                    value="{{ author.byline|e('html_attr') }}"
                />
            </div>
        </div>

        <div class="table-row">
            <div class="table-cell table-label table-min-width">
                <label for="format">{{ __("Format") }}</label>:
            </div>
            <div class="table-cell">
                {% include cargo("bridge_pages_select_format") with {
                    "format": author.bio_format
                } %}
            </div>
        </div>

        <div class="table-row">
            <div class="table-cell table-label align-top table-min-width">
                {{ __("Biography") }}:
            </div>
            <div class="table-cell">
                <div class="bridge_page_rich_text_wrapper">
                    {% include cargo("rich_text_editor") with {
                        "name": "biography",
                        "placeholder": __("Optional. Tell the world who you are."),
                        "contents": author.biography
                    } %}
                </div>
            </div>
        </div>

        <div class="table-row">
            <div class="table-cell tabel-label"></div>
            <div class="table-cell text-right">
                <a class="pure-button pure-button-tertiary" href="{{ cabin_url() }}author">{{ __("Cancel") }}</a>

                <button type="submit" name="save_btn" value="save" class="pure-button pure-button-primary">
                    <i class="fa fa-save"></i>
                    {{  __("Save Author") }}
                </button>
            </div>
        </div>
    </div>
</form>