PHP Classes

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

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


Class file image Download
<h2>{{ title }}</h2>

{% if gadgets %}
<form method="post">{{ form_token() }}
    {{ __(
        "Drag and drop the Gadgets below to change the order in which they are loaded. " ~
        "Uncheck the box to disable (but not uninstall) a given Gadget."
    ) }}

<ol id="gadgets_list">{% for i, gadget in gadgets %}
    <li class="gadget-draggable" id="gadget-{{ i|e('html_attr') }}">
        <input type="hidden" name="gadget_order[]" value="{{ i|e('html_attr') }}" />
        <input type="checkbox"
           id="gadget-{{ i|e('html_attr') }}-enabled"
           name="gadget_enabled[{{ i|e('html_attr') }}]"
            {% if gadget.enabled %} checked="checked"{% endif %}
        {{ gadget.supplier }}/{{ }}
{% endfor %}</ol>
<button type="submit" class="pure-button pure-button-primary">
    {{ __("Save") }}
<a class="pure-button pure-button-tertiary" href="{{ cabin_url() }}gadgets">{{ __("Cancel") }}</a>
{% else %}
    <p>{{ __("No Gadgets installed.") }}</p>
{% endif %}
For more information send a message to info at phpclasses dot org.