]> git.agnieray.net Git - galette.git/blob - galette/templates/default/mass_choose_type.tpl
Massive add contributions; closes #1381
[galette.git] / galette / templates / default / mass_choose_type.tpl
1 {if isset($mode) && $mode eq 'ajax'}
2 {assign var="extend" value='ajax.tpl'}
3 {else}
4 {assign var="extend" value='page.tpl'}
5 {/if}
6 {extends file=$extend}
7
8 {block name="content"}
9 <div id="mass_contributions"{if $mode neq 'ajax'} class="center"{else} title="{$page_title}"{/if}>
10 <form action="{$form_url}" method="post">
11 {if $mode neq 'ajax'}<h2>{$page_title}</h2>{/if}
12 <label for="type">{_T string="Contribution type"}</label>
13 <select name="type" id="type">
14 <option value="{constant('Galette\Entity\Contribution::TYPE_FEE')}">{_T string="Membership"}</option>
15 <option value="{constant('Galette\Entity\Contribution::TYPE_DONATION')}">{_T string="Donation"}</option>
16 </select>
17 <div class="button-container">
18 <input type="submit" id="masschange" class="button" value="{_T string="OK"}"/>
19 <a href="{$cancel_uri}" class="button" id="btncancel">{_T string="Cancel"}</a>
20 {if $mode eq 'ajax'}<input type="hidden" name="ajax" value="true"/>{/if}
21 {foreach $data as $key=>$value}
22 {if is_array($value)}
23 {foreach $value as $val}
24 <input type="hidden" name="{$key}[]" value="{$val}"/>
25 {/foreach}
26 {else}
27 <input type="hidden" name="{$key}" value="{$value}"/>
28 {/if}
29 {/foreach}
30 </div>
31 </form>
32 </div>
33 {/block}