{% extends "layout.html" %} {% block content_header %} {{ build_breadcrumbs(current_breadcrumbs + [ { 'name': sound.name, 'link': url_for('.SoundFileView:list_files', tenant_uuid=sound.tenant_id, category=sound.id), 'icon': 'file-sound-o' } ]) }} {% endblock %} {% block content %}
{% call build_list_containers(_('Sound Files'), 'file-sound-o') %} {% call build_table(id='table-list-sound-files') %} {% call build_list_table_headers() %} {{ _('Name') }} {{ _('Infos') }} {% endcall %} {% call(file_) build_list_table_rows(sound['files']) %} {{ file_.name }} {% for format in file_.formats %}
{{ _('Format') }}: {{ format['format'] if format['format'] else '-' }} {{ _('Language') }}: {{ format['language'] if format['language'] else '-' }}
{{ _('Text') }}: {{ format['text'] if format['text'] else '-' }}
{% endfor %} {% endcall %} {% endcall %} {% endcall %} {% call build_hidden_add_containers(_('Add Sound file')) %} {% call build_form_box(_('Choose your file')) %}
{% call add_default_fields(form=form, submit_value=_('Upload')) %} {{ render_field(form.name) }} {{ render_field(form.format) }} {{ render_field(form.language) }} {% endcall %}
{% endcall %} {% endcall %}
{% endblock %} {% block additional_js %} {% endblock %}