Remove spaceless from Twig templates
Ref: bd33d92f39
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
14211e6118
commit
f3a46a4e1b
@ -15,13 +15,11 @@
|
||||
</select>
|
||||
|
||||
{% if char_editing == 'textarea' %}
|
||||
{% apply spaceless %}
|
||||
<textarea name="field_expression[{{ column_number }}]"
|
||||
cols="15"
|
||||
class="textfield expression">
|
||||
{{ expression }}
|
||||
{{- expression -}}
|
||||
</textarea>
|
||||
{% endapply %}
|
||||
{% else %}
|
||||
<input type="text"
|
||||
name="field_expression[{{ column_number }}]"
|
||||
|
||||
@ -143,11 +143,9 @@
|
||||
) }}
|
||||
</td>
|
||||
<td>
|
||||
{% apply spaceless %}
|
||||
<textarea name="{{ subpartition['prefix'] }}[comment]">
|
||||
{{ subpartition['comment'] }}
|
||||
{{- subpartition['comment'] -}}
|
||||
</textarea>
|
||||
{% endapply %}
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="{{ subpartition['prefix'] }}[data_directory]"
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
{# Invisible characters will make javascript crash #}
|
||||
{% apply spaceless %}
|
||||
<script type="text/javascript">
|
||||
var designerConfig = {{ designer_config|raw }};
|
||||
</script>
|
||||
{% endapply %}
|
||||
|
||||
{# side menu #}
|
||||
{% if not has_query %}
|
||||
|
||||
@ -163,15 +163,13 @@
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
{% apply spaceless %}
|
||||
<textarea id="MultiSqlquery"
|
||||
cols="80"
|
||||
rows="4"
|
||||
style="float:left"
|
||||
name="sql_query"
|
||||
dir="ltr">
|
||||
</textarea>
|
||||
{% endapply %}
|
||||
{# Keep the block without a space between the open and close tag #}
|
||||
<textarea id="MultiSqlquery"
|
||||
cols="80"
|
||||
rows="4"
|
||||
style="float: left;"
|
||||
name="sql_query"
|
||||
dir="ltr"></textarea>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
|
||||
@ -9,15 +9,14 @@
|
||||
<li>
|
||||
<label for="limit_to">{% trans 'Number of rows:' %}</label>
|
||||
<input type="text" id="limit_to" name="limit_to" size="5" value="
|
||||
{%- apply spaceless %}
|
||||
{% if limit_to is not null %}
|
||||
{{ limit_to }}
|
||||
{% elseif unlim_num_rows is not empty and unlim_num_rows != 0 %}
|
||||
{{ unlim_num_rows }}
|
||||
{% else %}
|
||||
{{ number_of_rows }}
|
||||
{% endif %}
|
||||
{% endapply %}" onfocus="this.select()">
|
||||
{# Keep everything space less because it is a value #}
|
||||
{%- if limit_to is not null -%}
|
||||
{{- limit_to -}}
|
||||
{%- elseif unlim_num_rows is not empty and unlim_num_rows != 0 -%}
|
||||
{{- unlim_num_rows -}}
|
||||
{%- else %}
|
||||
{{- number_of_rows -}}
|
||||
{%- endif -%}" onfocus="this.select()">
|
||||
</li>
|
||||
<li>
|
||||
<label for="limit_from">{% trans 'Row to begin at:' %}</label>
|
||||
|
||||
@ -18,7 +18,6 @@ $( function() {
|
||||
{% set import_url = get_common_raw({'import_status': 1}, '&') %}
|
||||
|
||||
{% set upload_html %}
|
||||
{% apply spaceless %}
|
||||
<div class="upload_progress">
|
||||
<div class="upload_progress_bar_outer">
|
||||
<div class="percentage"></div>
|
||||
@ -31,7 +30,6 @@ $( function() {
|
||||
</div>
|
||||
<div id="statustext"></div>
|
||||
</div>
|
||||
{% endapply %}
|
||||
{% endset %}
|
||||
|
||||
{# Start output #}
|
||||
@ -79,7 +77,7 @@ $( function() {
|
||||
{# Show progress UI #}
|
||||
$("#importmain").hide();
|
||||
$("#import_form_status")
|
||||
.html('{{ upload_html|raw }}')
|
||||
.html('{{ upload_html|spaceless|raw }}')
|
||||
.show();
|
||||
import_start = now;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user