]> git.agnieray.net Git - galette.git/blob - galette/templates/default/gestion_textes.tpl
Remove extra character
[galette.git] / galette / templates / default / gestion_textes.tpl
1 {extends file="page.tpl"}
2
3 {block name="content"}
4 <div id="listfilter">
5 <form action="{path_for name="changeText"}" method="post" enctype="multipart/form-data">
6 <p>
7 <strong>{_T string="Choose an entry"}</strong><br/>
8 <label for="sel_lang">{_T string="Language:"}</label>
9 <select name="sel_lang" id="sel_lang" class="lang">
10 {foreach item=langue from=$langlist}
11 <option value="{$langue->getID()}" {if $cur_lang eq $langue->getID()}selected="selected"{/if}>{$langue->getName()}</option>
12 {/foreach}
13 </select>
14
15 <label for="sel_ref">{_T string="Reference:"}</label>
16 <select name="sel_ref" id="sel_ref">
17 {foreach item=ref from=$reflist}
18 <option value="{$ref.tref}" {if $cur_ref eq $ref.tref}selected="selected"{/if} >{$ref.tcomment}</option>
19 {/foreach}
20 </select>
21 <noscript> <span><input type="submit" value="{_T string="Change"}" /></span></noscript>
22 </p>
23 </form>
24 </div>
25
26 <form action="{path_for name="texts"}" method="post" enctype="multipart/form-data">
27 <div class="bigtable">
28 <fieldset class="cssform" id="{$mtxt->tlang}">
29 <legend class="ui-state-active ui-corner-top">{$mtxt->tcomment}</legend>
30 <p>
31 <label for="tsubject" class="bline">{_T string="Email Subject"}</label>
32 <input type="text" name="text_subject" id="tsubject" value="{$mtxt->tsubject}" maxlength="255" size="32"/> <span class="exemple">{_T string="(Max 255 characters)"}</span>
33 </p>
34 <p>
35 <label id="body_label" for="text_body" class="bline vtop">{_T string="Email Body:"}</label>
36 <textarea name="text_body" id="text_body" cols="64" rows="15">{$mtxt->tbody}</textarea>
37 </p>
38 </fieldset>
39 </div>
40 <div class="button-container">
41 <input type="hidden" name="cur_lang" value="{$cur_lang}"/>
42 <input type="hidden" name="cur_ref" value="{$cur_ref}"/>
43 <input type="hidden" name="valid" id="valid" value="1"/>
44 <button type="submit" class="action">
45 <i class="fas fa-save fa-fw"></i> {_T string="Save"}
46 </button>
47 </div>
48 </form>
49 <div id="legende" class="texts_legend" title="{_T string="Existing variables"}">
50 <h1>{_T string="Existing variables"}</h1>
51 <table>
52 <tr>
53 <th colspan="4">
54 {_T string="Globally available"}
55 </th>
56 </tr>
57 <tr>
58 <th><tt>{ldelim}ASSO_NAME{rdelim}</tt></th>
59 <td>{_T string="Your organisation name"}</td>
60 <th><tt>{ldelim}ASSO_SLOGAN{rdelim}</tt></th>
61 <td>{_T string="Your organisation slogan"}</td>
62 </tr>
63 <tr>
64 <th><tt>{ldelim}LOGIN_URI{rdelim}</tt></th>
65 <td>{_T string="Galette's login URI"}</td>
66 <th></th>
67 <td></td>
68 </tr>
69 <tr>
70 <th><tt>{ldelim}BR{rdelim}</tt></th>
71 <td>{_T string="Insert a carriage return"}</td>
72 <th><tt>{ldelim}NEWLINE{rdelim}</tt></th>
73 <td>{_T string="Insert a new blank line"}</td>
74 </tr>
75 <tr>
76 <th colspan="4">
77 {_T string="Available with reservations"}
78 </th>
79 </tr>
80 <tr>
81 <th><tt>{ldelim}NAME_ADH{rdelim}</tt></th>
82 <td>{_T string="Member's first and last name"}</td>
83 <th><tt>{ldelim}MAIL_ADH{rdelim}</tt></th>
84 <td>{_T string="Member's email address"}</td>
85 </tr>
86 <tr>
87 <th><tt>{ldelim}LASTNAME_ADH{rdelim}</tt></th>
88 <td>{_T string="Member's last name"}</td>
89 <th><tt>{ldelim}FIRSTNAME_ADH{rdelim}</tt></th>
90 <td>{_T string="Member's first name"}</td>
91 </tr>
92 <tr>
93 <th><tt>{ldelim}ID_ADH{rdelim}</tt></th>
94 <td>{_T string="Member's ID"}</td>
95 <th><tt>{ldelim}LOGIN{rdelim}</tt></th>
96 <td>{_T string="Member's login"}</td>
97 </tr>
98 <tr>
99 <th colspan="4">
100 {_T string="Available only for new password request"}
101 </th>
102 </tr>
103 <tr>
104 <th><tt>{ldelim}CHG_PWD_URI{rdelim}</tt></th>
105 <td>{_T string="Galette's change password URI"}</td>
106 <th><tt>{ldelim}LINK_VALIDITY{rdelim}</tt></th>
107 <td>{_T string="Link validity"}</td>
108 </tr>
109 <tr>
110 <th colspan="4">
111 {_T string="Available only for new contributions"}
112 </th>
113 </tr>
114 <tr>
115 <th><tt>{ldelim}DEADLINE{rdelim}</tt></th>
116 <td>{_T string="Member's deadline"}</td>
117 <th><tt>{ldelim}CONTRIB_INFO{rdelim}</tt></th>
118 <td>{_T string="Contribution information"}</td>
119 </tr>
120 <tr>
121 <th><tt>{ldelim}CONTRIB_AMOUNT{rdelim}</tt></th>
122 <td>{_T string="Contribution amount"}</td>
123 <th><tt>{ldelim}CONTRIB_TYPE{rdelim}</tt></th>
124 <td>{_T string="Contribution type"}</td>
125 </tr>
126 <tr>
127 <th><tt>{ldelim}LINK_MEMBERCARD{rdelim}</tt></th>
128 <td class="back">{_T string="Direct link for member card download"}</td>
129 <th><tt>{ldelim}LINK_CONTRIBPDF{rdelim}</tt></th>
130 <td class="back">{_T string="Direct link for invoice/receipt download"}</td>
131 </tr>
132 <tr>
133 <th colspan="4">
134 {_T string="Available only for reminders"}
135 </th>
136 </tr>
137 <tr>
138 <th><tt>{ldelim}DAYS_REMAINING{rdelim}</tt></th>
139 <td>{_T string="Membership remaining days"}</td>
140 <th><tt>{ldelim}DAYS_EXPIRED{rdelim}</tt></th>
141 <td>{_T string="Membership expired since"}</td>
142 </tr>
143 </table>
144 </div>
145 {/block}
146
147 {block name="javascripts"}
148 <script type="text/javascript">
149 $(function() {
150 $('#sel_ref, #sel_lang').change(function() {
151 $(':input[type="submit"]').attr('disabled', 'disabled');
152 //Change the input[@id='value'] ; we do not want to validate, but to change lang/ref
153 $('#valid').attr('value', (this.id === 'sel_lang') ? 'change_lang' : 'change_text');
154 this.form.submit();
155 });
156
157
158 $('fieldset').prepend('<a id="btnlegend" class="tab-button tooltip action" title="{_T string="Show existing variables"}"><i class="fas fa-info-circle fa-2x"></i> <span class="sr-only">{_T string="Show existing variables" escape="js"}</span></a>');
159 $('#legende h1').remove();
160 $('#legende').dialog({
161 autoOpen: false,
162 modal: true,
163 hide: 'fold',
164 width: '40%',
165 create: function (event, ui) {
166 if ($(window ).width() < 767) {
167 $(this).dialog('option', {
168 'width': '95%',
169 'draggable': false
170 });
171 }
172 }
173 }).dialog('close');
174
175 $('#btnlegend').click(function(){
176 $('#legende').dialog('open');
177 return false;
178 });
179 });
180 </script>
181 {/block}