]> git.agnieray.net Git - galette.git/blobdiff - galette/templates/default/gestion_pdf_content.tpl
Factorize replacements legends display
[galette.git] / galette / templates / default / gestion_pdf_content.tpl
index 5315b799f2eee80fdd590d50022b8dc3ac50454b..d8956fcc9d81d663c86aeafdf708754337b4e442 100644 (file)
                 </button>
             </div>
         </form>
-        <div id="legende{$model->id}" class="texts_legend" title="{_T string="Existing variables"}">
-            <h1>{_T string="Existing variables"}</h1>
-            <table>
-{foreach from=$model->getLegend() item=legend}
-                <tr>
-                    <th colspan="4">
-                        {$legend.title}
-                    </th>
-                </tr>
-    {foreach from=$legend.patterns item=pattern name=patternloop}
-        {if $smarty.foreach.patternloop.index % 2 == 0}
-                <tr>
-        {/if}
-                    <th><tt>{$pattern.pattern|trim:'/'}</tt></th>
-                    <td class="back">{if isset($pattern.title)}{$pattern.title}{/if}</td>
-        {if $smarty.foreach.patternloop.index % 2 != 0}
-                </tr>
-        {/if}
-    {/foreach}
-{/foreach}
-            </table>
-        </div>
+        {include file="replacements_legend.tpl" legends=$model->getLegend() cur_ref=$model->id}
\ No newline at end of file