1 {extends file="page.tpl"}
3 {if not $hide_telemetry and not $GALETTE_MODE eq 'DEMO'}
5 <header class="ui-state-default ui-state-active">
6 {_T string="Help us know about you!"}
10 {_T string="Take a moment to share some information with us so we can know better Galette's uses."}<br/>
12 {if not $telemetry_sent}
13 <a id="telemetry" href="#" title="{_T string="Send anonymous and imprecise data about your Galette instance"}">{_T string="Telemetry"}</a>
16 <a id="register" href="{$smarty.const.GALETTE_TELEMETRY_URI}reference?showmodal&uuid={$reguuid}" title="{_T string="Register your organization as a Galette user"}" target="_blank">{_T string="Register"}</a>
18 <p class="center" title="{_T string="The panel will be automatically hidden once you have registered and send telemetry data. Check the box if you want to hide it anyways."}">
19 <input type="checkbox" name="hide_telemetry" id="hide_telemetry" value="1"{if $hide_telemetry} checked="checked"{/if}/>
20 <label for="hide_telemetry">{_T string="Hide this panel"}</label>
24 <section id="desktop">
25 <header class="ui-state-default ui-state-active">
26 {_T string="Activities"}
29 {if $login->isAdmin() or $login->isStaff() or $login->isGroupManager()}
30 <a id="members" href="{path_for name="members"}" title="{_T string="View, search into and filter member's list"}">{_T string="Members"}</a>
31 <a id="groups" href="{path_for name="groups"}" title="{_T string="View and manage groups"}">{_T string="Groups"}</a>
32 {if $login->isAdmin() or $login->isStaff()}
33 <a id="contribs" href="{path_for name="contributions" data=["type" => "contributions"]}" title="{_T string="View and filter contributions"}">{_T string="Contributions"}</a>
34 <a id="transactions" href="{path_for name="contributions" data=["type" => "transactions"]}" title="{_T string="View and filter transactions"}">{_T string="Transactions"}</a>
35 <a id="mailings" href="{path_for name="mailings"}" title="{_T string="Manage mailings that has been sent"}">{_T string="Mailings"}</a>
36 <a id="reminder" href="{path_for name="reminders"}" title="{_T string="Send reminders to late members"}">{_T string="Reminders"}</a>
38 {if $login->isAdmin()}
39 <a id="prefs" href="{path_for name="preferences"}" title="{_T string="Set applications preferences (address, website, member's cards configuration, ...)"}">{_T string="Settings"}</a>
40 <a id="plugins" href="{path_for name="plugins"}" title="{_T string="Information about available plugins"}">{_T string="Plugins"}</a>
41 {* Include plugins user dashboard *}
42 {$plugins->getDashboard($tpl)}
46 <a id="members" href="{path_for name="me"}" title="{_T string="View my member card"}">{_T string="My information"}</a>
47 <a id="contribs" href="{path_for name="contributions" data=["type" => "contributions"]}" title="{_T string="View and filter all my contributions"}">{_T string="My contributions"}</a>
48 <a id="transactions" href="{path_for name="contributions" data=["type" => "transactions"]}" title="{_T string="View and filter all my transactions"}">{_T string="My transactions"}</a>
49 {* Include plugins user dashboard *}
50 {$plugins->getMemberDashboard($tpl)}
56 <header class="ui-state-default ui-state-active">
60 {foreach from=$news item=post}
62 <a href="{$post.url}" target="_blank">{$post.title}</a>
69 <input type="checkbox" name="show_dashboard" id="show_dashboard" value="1"{if $show_dashboard} checked="checked"{/if}/>
70 <label for="show_dashboard">{_T string="Show dashboard on login"}</label>
73 {if not $hide_telemetry and not $telemetry_sent}
74 {include file="telemetry.tpl" part="dialog"}
78 {block name="javascripts"}
81 $('#show_dashboard').change(function(){
82 var _checked = $(this).is(':checked');
84 'show_galette_dashboard',
92 var _url = '{path_for name="members"}';
93 window.location.replace(_url);
97 {if not $hide_telemetry}
98 $('#hide_telemetry').change(function(){
99 var _checked = $(this).is(':checked');
101 'hide_galette_telemetry',
108 var _url = '{path_for name="dashboard"}';
109 window.location.replace(_url);
112 {if not $telemetry_sent}
113 {include file="telemetry.tpl" part="jsdialog" orig="desktop"}
116 {include file="telemetry.tpl" part="jsregister" orig="desktop"}