forked from CiviWare/org.agbu.annualgrantbudgets
added fiscal year select box
This commit is contained in:
@ -1,4 +1,9 @@
|
||||
<div class="crm-content-block crm-block">
|
||||
<label>{ts}Fiscal Year: {/ts}</label>
|
||||
<select name="fiscal_year" type="text" id="fiscal_year" class="crm-form-select required crm-select2 six">
|
||||
{$fiscal_year_options}
|
||||
</select>
|
||||
</br></br>
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="row-highlight">
|
||||
<thead class="sticky">
|
||||
<th>{ts}Endowement{/ts}</th>
|
||||
@ -23,3 +28,17 @@
|
||||
</table>
|
||||
{crmButton p="civicrm" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
$('#fiscal_year').change(loadPage);
|
||||
function loadPage() {
|
||||
window.location.href = CRM.url('civicrm/grant/annual/budgets', {
|
||||
reset: '1',
|
||||
fiscalYear: $('#fiscal_year').val()
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
Reference in New Issue
Block a user