|
33 | 33 | </div> |
34 | 34 | </div> |
35 | 35 |
|
| 36 | + <div class="row mb-2"> |
| 37 | + <div class="{{ col_input }} {{ offset_label }}"> |
| 38 | + <a data-bs-toggle="collapse" href="#infoSearchAdvancedPanel">{% trans %}info_providers.search.advanced_options{% endtrans %}</a> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + |
| 42 | + <div class="collapse" id="infoSearchAdvancedPanel"> |
| 43 | + <div class="card card-body mb-2"> |
| 44 | + {{ form_row(form.no_cache_search) }} |
| 45 | + {{ form_row(form.no_cache_details) }} |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + |
36 | 49 | {{ form_row(form.submit) }} |
37 | 50 |
|
38 | 51 | {{ form_end(form) }} |
|
116 | 129 |
|
117 | 130 | {% if update_target %} {# We update an existing part #} |
118 | 131 | {% set href = path('info_providers_update_part', |
119 | | - {'providerKey': dto.provider_key, 'providerId': dto.provider_id, 'id': update_target.iD}) %} |
| 132 | + {'providerKey': dto.provider_key, 'providerId': dto.provider_id, 'id': update_target.iD, 'no_cache': no_cache_details ? 1 : null}) %} |
120 | 133 | {% else %} {# Create a fresh part #} |
121 | 134 | {% set href = path('info_providers_create_part', |
122 | | - {'providerKey': dto.provider_key, 'providerId': dto.provider_id}) %} |
| 135 | + {'providerKey': dto.provider_key, 'providerId': dto.provider_id, 'no_cache': no_cache_details ? 1 : null}) %} |
123 | 136 | {% endif %} |
124 | 137 |
|
125 | 138 | {# If we have no local part, then we can just show the create button #} |
126 | 139 | {% if localPart is null %} |
127 | 140 | <a class="btn btn-primary" href="{{ href }}" |
128 | | - target="_blank" title="{% trans %}part.create.btn{% endtrans %}"> |
| 141 | + target="_blank" title="{% trans %}part.create.btn{% endtrans %}"> |
129 | 142 | <i class="fa-solid fa-plus-square"></i> |
130 | 143 | </a> |
131 | 144 | {% else %} {# Otherwise add a button group with all three buttons #} |
|
139 | 152 | target="_blank" title="{% trans %}info_providers.search.show_existing_part{% endtrans %}"> |
140 | 153 | <i class="fa-solid fa-search"></i> |
141 | 154 | </a> |
142 | | - <a class="btn btn-primary" href="{{ path("info_providers_update_part", {'id': localPart.id, 'providerKey': dto.provider_key, 'providerId': dto.provider_id}) }}" |
| 155 | + <a class="btn btn-primary" href="{{ path("info_providers_update_part", {'id': localPart.id, 'providerKey': dto.provider_key, 'providerId': dto.provider_id, 'no_cache': no_cache_details ? 1 : null }) }}" |
143 | 156 | target="_blank" title="{% trans %}info_providers.search.update_existing_part{% endtrans %}"> |
144 | 157 | <i class="fa-solid fa-arrows-rotate"></i> |
145 | 158 | </a> |
|
0 commit comments