1 <form action="{path_for name="pdfModels"}" method="post" enctype="multipart/form-data">
2 <fieldset class="cssform">
3 <legend>{$model->name}</legend>
6 <label class="bline" for="title_{$model->id}">{_T string="Title"}</label>
7 <input type="text" name="model_title" id="title_{$model->id}" class="large" value="{$model->title|escape}"/>
10 <label class="bline" for="subtitle_{$model->id}">{_T string="Subtitle"}</label>
11 <input type="text" name="model_subtitle" id="subtitle_{$model->id}" class="large" value="{$model->subtitle|escape}"/>
15 <label class="bline vtop" for="header_{$model->id}">{_T string="Header"}</label>
16 <textarea name="model_header" id="header_{$model->id}">{$model->header}</textarea>
19 <label class="bline vtop" for="footer_{$model->id}">{_T string="Footer"}</label>
20 <textarea name="model_footer" id="footer_{$model->id}">{$model->footer}</textarea>
24 <label class="bline vtop" for="body_{$model->id}">{_T string="Body"}</label>
25 <textarea name="model_body" id="body_{$model->id}">{$model->body}</textarea>
29 <label class="bline vtop" for="styles_{$model->id}">{_T string="CSS styles"}</label>
30 <textarea name="model_styles" id="styles_{$model->id}">{$model->styles}</textarea>
34 <label class="bline vtop" for="type_{$model->id}">{_T string="Type"}</label>
35 <select name="model_type" id="type_{$model->id}" required>
36 <option value="">{_T string="Select"}</option>
37 <option value="{Galette\Entity\PdfModel::INVOICE_MODEL}">{_T string="Invoice"}</option>
38 <option value="{Galette\Entity\PdfModel::RECEIPT_MODEL}">{_T string="Receipt"}</option>
39 <option value="{Galette\Entity\PdfModel::ADHESION_FORM_MODEL}">{_T string="Adhesion Form"}</option>
44 <div class="button-container">
45 <input type="hidden" name="store" value="true"/>
46 <input type="hidden" name="model_id" value="{$model->id}"/>
48 <input type="hidden" name="model_type" value="{$model->type}"/>
50 <button type="submit" class="action">
51 <i class="fas fa-save fa-fw"></i> {_T string="Save"}
55 <div id="legende{$model->id}" class="texts_legend" title="{_T string="Existing variables"}">
56 <h1>{_T string="Existing variables"}</h1>
58 {foreach from=$model->getLegend() item=legend}
64 {foreach from=$legend.patterns item=pattern name=patternloop}
65 {if $smarty.foreach.patternloop.index % 2 == 0}
68 <th><tt>{$pattern.pattern|trim:'/'}</tt></th>
69 <td class="back">{if isset($pattern.title)}{$pattern.title}{/if}</td>
70 {if $smarty.foreach.patternloop.index % 2 != 0}