mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-25 10:53:14 +00:00
PORT PHRAS-1301/PHRAS-1676 to 4.1
This commit is contained in:
@@ -54,11 +54,12 @@
|
|||||||
<h5>{{ 'upload:: Destination (collection) :' | trans }} :</h5>
|
<h5>{{ 'upload:: Destination (collection) :' | trans }} :</h5>
|
||||||
{# collections list #}
|
{# collections list #}
|
||||||
{% if collections|length > 0 %}
|
{% if collections|length > 0 %}
|
||||||
<select name="base_id" class="span3" style="margin-left: 10px;">
|
{% set last_used_collection = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'upload_last_used_collection') %}
|
||||||
|
<select name="base_id" class="span3 upload-options-collection" style="margin-left: 10px;">
|
||||||
{% for sbasId, availableCollections in collections %}
|
{% for sbasId, availableCollections in collections %}
|
||||||
<optgroup label="{{ availableCollections['databox'].get_label(app['locale']) }}" class="select-label">
|
<optgroup label="{{ availableCollections['databox'].get_label(app['locale']) }}" class="select-label">
|
||||||
{% for collection in availableCollections['databox_collections'] %}
|
{% for collection in availableCollections['databox_collections'] %}
|
||||||
<option value="{{ collection.get_base_id() }}" class="select-row">{{ collection.get_label(app['locale']) }}</option>
|
<option {% if last_used_collection == collection.get_base_id() %} selected="selected" {% endif %} value="{{ collection.get_base_id() }}" class="select-row">{{ collection.get_label(app['locale']) }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</optgroup>
|
</optgroup>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -55,14 +55,15 @@
|
|||||||
<div class='settings-box'>
|
<div class='settings-box'>
|
||||||
<h5>{{ 'upload:: Destination (collection) :' | trans }} :</h5>
|
<h5>{{ 'upload:: Destination (collection) :' | trans }} :</h5>
|
||||||
{# collections list #}
|
{# collections list #}
|
||||||
<select name="base_id" class="span3" style="margin-left: 10px;">
|
{% set last_used_collection = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'upload_last_used_collection') %}
|
||||||
{% for sbasId, availableCollections in collections %}
|
<select name="base_id" class="span3 upload-options-collection" style="margin-left: 10px;">
|
||||||
<optgroup label="{{ availableCollections['databox'].get_label(app['locale']) }}" class="select-label">
|
{% for sbasId, availableCollections in collections %}
|
||||||
{% for collection in availableCollections['databox_collections'] %}
|
<optgroup label="{{ availableCollections['databox'].get_label(app['locale']) }}" class="select-label">
|
||||||
<option value="{{ collection.get_base_id() }}" class="select-row">{{ collection.get_label(app['locale']) }}</option>
|
{% for collection in availableCollections['databox_collections'] %}
|
||||||
|
<option {% if last_used_collection == collection.get_base_id() %} selected="selected" {% endif %} value="{{ collection.get_base_id() }}" class="select-row">{{ collection.get_label(app['locale']) }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</optgroup>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</optgroup>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
</select>
|
||||||
{# collections status #}
|
{# collections status #}
|
||||||
{% for availableCollections in collections %}
|
{% for availableCollections in collections %}
|
||||||
|
|||||||
Reference in New Issue
Block a user