mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Merge pull request #2410 from mike-esokia/PHRAS-1747_PORT_PHRAS-1301
PHRAS-1747 port phras 1301
This commit is contained in:
@@ -54,11 +54,12 @@
|
||||
<h5>{{ 'upload:: Destination (collection) :' | trans }} :</h5>
|
||||
{# collections list #}
|
||||
{% 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 %}
|
||||
<optgroup label="{{ availableCollections['databox'].get_label(app['locale']) }}" class="select-label">
|
||||
{% 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 %}
|
||||
</optgroup>
|
||||
{% endfor %}
|
||||
@@ -66,7 +67,7 @@
|
||||
{# collections status #}
|
||||
{% for availableCollections in collections %}
|
||||
{% for collection in availableCollections['databox_collections'] %}
|
||||
<div id="status-{{ collection.get_base_id() }}" class='collection-status' style='{{ loop.parent.loop.first and loop.first ? "display:block" :"display:none" }}'>
|
||||
<div id="status-{{ collection.get_base_id() }}" class='collection-status' style='{{ last_used_collection == collection.get_base_id() ? "display:block" :"display:none" }}'>
|
||||
<h5>{{ 'upload:: Status :' | trans }} :</h5>
|
||||
<table class="status-tab">
|
||||
<tbody>
|
||||
|
@@ -55,19 +55,20 @@
|
||||
<div class='settings-box'>
|
||||
<h5>{{ 'upload:: Destination (collection) :' | trans }} :</h5>
|
||||
{# collections list #}
|
||||
<select name="base_id" class="span3" style="margin-left: 10px;">
|
||||
{% for sbasId, availableCollections in collections %}
|
||||
<optgroup label="{{ availableCollections['databox'].get_label(app['locale']) }}" class="select-label">
|
||||
{% for collection in availableCollections['databox_collections'] %}
|
||||
<option value="{{ collection.get_base_id() }}" class="select-row">{{ collection.get_label(app['locale']) }}</option>
|
||||
{% 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 %}
|
||||
<optgroup label="{{ availableCollections['databox'].get_label(app['locale']) }}" class="select-label">
|
||||
{% 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 %}
|
||||
</optgroup>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{# collections status #}
|
||||
{% for availableCollections in collections %}
|
||||
{% for collection in availableCollections['databox_collections'] %}
|
||||
<div id="status-{{ collection.get_base_id() }}" class='collection-status' style='{{ loop.parent.loop.first and loop.first ? "display:block" :"display:none" }}'>
|
||||
<div id="status-{{ collection.get_base_id() }}" class='collection-status' style='{{ last_used_collection == collection.get_base_id() ? "display:block" :"display:none" }}'>
|
||||
<h5>{{ 'upload:: Status :' | trans }} :</h5>
|
||||
<table class="status-tab">
|
||||
<tbody>
|
||||
|
Reference in New Issue
Block a user