houdini/app/views/nonprofits/dashboard/_payments_chart.html.erb
2020-06-15 10:26:57 -05:00

22 lines
906 B
Text

<%- # 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 -%>
<form class='pastelBox--grey u-marginBottom--10 u-padding--10 u-centered'>
<!--= on 'change' (updateChartParams form_object) -->
<select name='timeSpan' class='select u-width--100 u-margin--0'>
<option value='day'>Daily</option>
<option value='week'>Weekly</option>
<option selected value='month'>Monthly</option>
<option value='year'>Yearly</option>
</select>
records of payments made between
<input class='u-width--100 u-margin--0' id='js-paymentsChart-startDate'
name='startDate' type='text'>
and
<input class='input--100 u-margin--0' id='js-paymentsChart-endDate'
name='endDate' type='text'>
</form>
<div>
<canvas id='js-paymentsChart'></canvas>
</div>
<!--= add_class_if loading_chart 'loading--overlay' -->