{% import "_includes/forms" as forms %} {{ forms.textField({ label: "Project Id"|t('app'), id: 'projectId', name: 'projectId', value: volume.projectId, errors: volume.getErrors('projectId'), class: 'google-project-id', instructions: 'Your Google project id.'|t('app'), required: true }) }} {{ forms.textareaField({ label: "Contents of the access key file"|t('app'), id: 'keyFileContents', name: 'keyFileContents', value: volume.keyFileContents, errors: volume.getErrors('keyFileContents'), class: 'google-key-file-contents', instructions: 'You can leave this field empty if you are using Application default credentials.'|t('app', {'link': 'https://github.com/google/google-auth-library-php#application-default-credentials'}), rows: 8, cols: 50 }) }} {% set bucketInput %}
| {{ forms.select({ id: 'bucket', name: 'bucket', options: { (volume.bucket): volume.bucket }, value: volume.bucket, readonly: true, class: 'google-bucket-select' }) }} |
{{ "Refresh"|t('app') }}
|
| {{ forms.textField({ id: 'expiresAmount', value: expires[0], size: 2, class: 'expires-amount' }) }} | {{ forms.select({ id: 'expiresPeriod', options: periods, value: expires[1], class: 'expires-period' }) }} |