2020-06-12 20:03:43 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<div class='modal fullScreen' id='manageGiftOptionsModal'>
|
|
|
|
|
2021-03-19 18:23:04 +00:00
|
|
|
<%= render 'common/modal_header', title: t('campaign_gift_options.manage_gift_options') %>
|
2018-03-25 17:30:42 +00:00
|
|
|
|
|
|
|
<section class='modal-body'>
|
|
|
|
<p>
|
|
|
|
<a class='button'>
|
|
|
|
<!--= on 'click' gift_options.open_new -->
|
2021-03-19 18:23:04 +00:00
|
|
|
<i class='fa fa-plus'></i> <%= t('campaign_gift_options.new_gift_option')%>
|
2018-03-25 17:30:42 +00:00
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class='noResults'>
|
|
|
|
<!--= show_if (empty gift_options.data) -->
|
2021-03-19 18:23:04 +00:00
|
|
|
<%= t('campaign_gift_options.no_gift_options') %>
|
2018-03-25 17:30:42 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
<table class='table'>
|
|
|
|
<!--= show_if (length gift_options.data) -->
|
|
|
|
<thead>
|
|
|
|
<th></th>
|
2021-03-19 18:23:04 +00:00
|
|
|
<th><%= t('campaign_gift_options.name')%></th>
|
|
|
|
<th><%= t('campaign_gift_options.one_time_br_amount')%></th>
|
|
|
|
<th><%= t('campaign_gift_options.recurring_br_amount')%></th>
|
2018-03-25 17:30:42 +00:00
|
|
|
<th>
|
|
|
|
<!--= show_if gift_options.has_any_quantities -->
|
2021-03-19 18:23:04 +00:00
|
|
|
<%= t('campaign_gift_options.limit')%>
|
2018-03-25 17:30:42 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<!--= show_if gift_options.has_any_quantities -->
|
2021-03-19 18:23:04 +00:00
|
|
|
<%= t('campaign_gift_options.remaining')%>
|
2018-03-25 17:30:42 +00:00
|
|
|
</th>
|
2021-03-19 18:23:04 +00:00
|
|
|
<th><%= t('campaign_gift_options.id') %></th>
|
2018-03-25 17:30:42 +00:00
|
|
|
<th></th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id='js-reorderGifts'>
|
|
|
|
<tr class='u-width--full draggable-item'>
|
|
|
|
<!--= repeat gift_options.data -->
|
|
|
|
<td class='u-paddingX--0'>
|
|
|
|
<i class='draggable-grip'></i>
|
|
|
|
<input type='hidden' name='id'></input>
|
|
|
|
<!--= set_value this.id -->
|
|
|
|
</td>
|
|
|
|
<td class='u-paddingLeft--0'>
|
|
|
|
<strong><!--= put this.name --></strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span>
|
|
|
|
<!--= show_if this.amount_one_time -->
|
|
|
|
$<!--= put (cents_to_dollars this.amount_one_time) -->
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span>
|
|
|
|
<!--= show_if this.amount_recurring -->
|
|
|
|
$<!--= put (cents_to_dollars this.amount_recurring) -->
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<!--= show_if gift_options.has_any_quantities -->
|
|
|
|
<!--= put this.quantity -->
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<!--= show_if gift_options.has_any_quantities -->
|
|
|
|
<!--= put this.remaining -->
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<!--= put this.id -->
|
|
|
|
</td>
|
|
|
|
<td style='width: 200px'>
|
|
|
|
<a class='button--tiny edit u-marginRight--10'>
|
|
|
|
<!--= on 'click' (gift_options.open_edit this)-->
|
2021-03-19 18:23:04 +00:00
|
|
|
<i class='fa fa-pencil'></i> <%= t('ui.edit') %>
|
2018-03-25 17:30:42 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class='button--tiny red'>
|
|
|
|
<!--= on 'click' (confirm (ajax_gift_options.del this.id)) -->
|
2021-03-19 18:23:04 +00:00
|
|
|
<i class='fa fa-times'></i> <%= t('ui.remove') %>
|
2018-03-25 17:30:42 +00:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|