{% extends "baseModal.html" %} {% include 'uiMacros.html' %} {% include "formMacros.html" %} {% macro showField(name, label) %}
{{ __(label) | e }}
{% endmacro %} {% block modalClass %} apos-media-library apos-ui-modal-full-page apos-ui-modal-no-sidebar {% endblock%} {% block modalLabel %} {{ __('Media Library')}} {% endblock %} {% block modalControls %} {{ renderProgressBtn({dataAttrs: 'data-cancel', float: 'left', label: 'Back', arrow: 'left'}) }} {% endblock %} {% block modalFilters %}
{% if browseByType %}
{{ formSelectStandalone('extension', browseByType ) }}
{% else %}
{{ formSelectStandalone('group', [ { label: 'All Media Types', value: '' }, { label: 'Images', value: 'images' }, { label: 'Office', value: 'office' } ] ) }}
{% endif %} {% if browseByTag %}
{{ formSelectStandalone('tag', [ { label: 'All Tags', value: '' } ], {}, { plain: true } ) }}
{% endif %}
{{ formSelectStandalone('owner', [ { label: 'Everyone', value: 'all' }, { label: 'Me', value: 'user' } ] ) }}
{{ formSelectStandalone('trash', [ { label: 'Live', value: '0' }, { label: 'Trash', value: '1' } ] ) }}
{% endblock %} {% block modalBody %}
{# ACHTUNG: IN IE9 AND BELOW, we leave the browse button the heck #} {# alone and don't try to style it. Otherwise #} {# it does not work. The class was removed deliberately so the #} {# button would be visible. Yes it's an ugly button. That's life. #} {# -Tom and Joel #}
{{ __('Drag Media Here or Click Here to Select Files') }}
{# I want to use progress.html here, but its styles are complex and don't seem #} {# to work in this context #} {% include "progress.html" %}
{# Populates with an img element when appropriate #}

'{{ __('Title') }}'

{# Image element will populate inside data-preview if type is appropriate #}
{{ showField('title', 'Title') }} {{ showField('name', 'Filename') }} {{ showField('tags', 'Tags') }} {{ showField('credit', 'Credit') }} {{ showField('description', 'Description') }} {{ showField('owner', 'Uploaded By') }} {{ showField('private', 'Private') }} {{ showField('group', 'Media Type') }} {{ showField('extension', 'Media Format') }} {{ showField('createdAt', 'Date Added') }} {{ showField('size', 'Size') }}
{{ __('Download Original') }}
{{ __('Rescue From Trash') }} {{ __('Edit Details') }}

{{ __('Replace File') }}

{{ __('Upload Media') }}
{# ACHTUNG: IN IE9 AND BELOW, we leave the browse button the heck #} {# alone and don't try to style it. Otherwise #} {# it does not work. The class was removed deliberately so the #} {# button would be visible. Yes it's an ugly button. That's life. #} {# -Tom and Joel #}
{{ __('Drop Files Here') }}
{# I want to use progress.html here, but its styles are complex and don't seem #} {# to work in this context #} {{ __('Uploading...') }}
{{ formText('title', 'Title') }} {{ formTags('tags', 'Tags') }} {{ formText('credit', 'Credit') }} {{ formBoolean('private', 'Private') }} {{ formTextarea('description', 'Description') }} {{ __('Cancel') }} {{ __('Save Changes') }} {{ __('Move to Trash') }}
{% endblock %}