{% import 'components/form/fields_macros.html.twig' as fields %} {% import 'components/form/buttons.html.twig' as buttons %} {% set no_header = no_header|default(not item.isNewItem() and not _get._in_modal|default(false)) %} {% set bg = '' %} {% if item.isDeleted() %} {% set bg = 'asset-deleted' %} {% endif %}
{{ include('components/form/header.html.twig', {'in_twig': true, 'no_header': true}) }} {% set params = params ?? [] %}
{% if item.isField('developer_key') %} {{ fields.textField( 'developer_key', item.fields['developer_key'], __('The Browser API key obtained from the Google API Console', 'gdrive'), options ) }} {% endif %} {% if item.isField('client_id') %} {{ fields.textField( 'client_id', item.fields['client_id'], __('The Client ID obtained from the Google API Console', 'gdrive'), options ) }} {% endif %} {% if item.isField('app_id') %} {{ fields.textField( 'app_id', item.fields['app_id'], __("See 'Project number' under 'IAM & Admin' > 'Settings'", 'gdrive'), options ) }} {% endif %}
{# .row #}
{# .row #}
{# .flex-row #}
{# .flex-column #}
{# .flex-wrap #} {{ include('components/form/buttons.html.twig') }}