mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Revert "N°8579 - remove "spaceless" in twig files"
This reverts commit ee993ef80a.
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
{# @copyright Copyright (C) 2010-2024 Combodo SAS #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
<div class="explain-printable not-printable">
|
||||
<p>{{'UI:ExplainPrintable'| dict_format('<i class="fas fa-eye"></i>')| raw}}</p>
|
||||
<div id="hiddeable_chapters"></div>
|
||||
<button class="ibo-button ibo-is-regular ibo-is-primary action" onclick="window.print()">{{'UI:Button:GoPrint'| dict_s}}</button>  
|
||||
<button class="ibo-button ibo-is-regular ibo-is-secondary cancel" onclick="window.close()">{{ 'UI:Button:Cancel'| dict_s}}</button>  
|
||||
{% apply spaceless %}
|
||||
|
||||
<select name="text" onchange='$(".printable-content").width(this.value);'>
|
||||
<option value='100%'>{{ 'UI:PrintResolution:FullSize'|dict_s }}</option>
|
||||
<option value='19cm'>{{ 'UI:PrintResolution:A4Portrait'|dict_s }}</option>
|
||||
<option value='27.7cm' selected>{{ 'UI:PrintResolution:A4Landscape'|dict_s }}</option>
|
||||
<option value='19.6cm'>{{ 'UI:PrintResolution:LetterPortrait'|dict_s }}</option>
|
||||
<option value='25.9cm'>{{ 'UI:PrintResolution:LetterLandscape'|dict_s }}</option>
|
||||
</select>
|
||||
<div class="explain-printable not-printable">
|
||||
<p>{{'UI:ExplainPrintable'| dict_format('<i class="fas fa-eye"></i>')| raw}}</p>
|
||||
<div id="hiddeable_chapters"></div>
|
||||
<button class="ibo-button ibo-is-regular ibo-is-primary action" onclick="window.print()">{{'UI:Button:GoPrint'| dict_s}}</button>  
|
||||
<button class="ibo-button ibo-is-regular ibo-is-secondary cancel" onclick="window.close()">{{ 'UI:Button:Cancel'| dict_s}}</button>  
|
||||
|
||||
</div>
|
||||
<select name="text" onchange='$(".printable-content").width(this.value);'>
|
||||
<option value='100%'>{{ 'UI:PrintResolution:FullSize'|dict_s }}</option>
|
||||
<option value='19cm'>{{ 'UI:PrintResolution:A4Portrait'|dict_s }}</option>
|
||||
<option value='27.7cm' selected>{{ 'UI:PrintResolution:A4Landscape'|dict_s }}</option>
|
||||
<option value='19.6cm'>{{ 'UI:PrintResolution:LetterPortrait'|dict_s }}</option>
|
||||
<option value='25.9cm'>{{ 'UI:PrintResolution:LetterLandscape'|dict_s }}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
{% endapply %}
|
||||
@@ -1,3 +1,7 @@
|
||||
{# @copyright Copyright (C) 2010-2024 Combodo SAS #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
var oHiddeableChapters = {};
|
||||
{% apply spaceless %}
|
||||
|
||||
var oHiddeableChapters = {};
|
||||
|
||||
{% endapply %}
|
||||
@@ -1,5 +1,7 @@
|
||||
{# @copyright Copyright (C) 2010-2024 Combodo SAS #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
{% apply spaceless %}
|
||||
|
||||
var sHiddeableChapters = '<ul role="tablist" class="ibo-block-print--tablist">';
|
||||
for (sId in oHiddeableChapters)
|
||||
{
|
||||
@@ -25,4 +27,6 @@ $('fieldset').each(function() {
|
||||
|
||||
$('legend').css('cursor', 'pointer').on('click', function(){
|
||||
$(this).parent('fieldset').toggleClass('not-printable strikethrough');
|
||||
});
|
||||
});
|
||||
|
||||
{% endapply %}
|
||||
Reference in New Issue
Block a user