{*
 * Copyright (c) 2004-2015 OIC Group, Inc.
 *
 * This file is part of Exponent
 *
 * Exponent is free software; you can redistribute
 * it and/or modify it under the terms of the GNU
 * General Public License as published by the Free
 * Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * GPL: http://www.gnu.org/licenses/gpl.txt
 *
 *}

<div class="form_header">
    <div class="info-header">
        <div class="related-actions">
            {help text="Get Help with"|gettext|cat:" "|cat:("Form Report Settings"|gettext) module="form-report-settings"}
        </div>
        <h2>{"Form Report Settings"|gettext}</h2>
    </div>
</div>
{control type="checkbox" name="unrestrict_view" label="Enable Data Viewing by Users without Permissions?"|gettext value=1 checked=$config.unrestrict_view description='Enable this setting to allow everyone to view data'|gettext}
{control type=text name='report_name' label='Report Title'|gettext value=$config.report_name}
{control type=html name='report_desc' label='Report Description'|gettext value=$config.report_desc}
{control type=text name='report_filter' label='Report Filter'|gettext value=$config.report_filter description='SQL Statement to limit records returned. Empty returns all records.'|gettext}
{group label='Multi-Record Tabular View Configuration'|gettext}
    {control type="listbuilder" name="column_names_list" label="Columns for View Data" values=$column_names source=$fields description='Selecting NO columns is equal to selecting first five columns'|gettext}
{/group}
{group label='Custom View Configuration'|gettext}
    {control type=editor name='report_def' label='Custom E-Mail, Single and Portfolio View Template'|gettext value=$config.report_def rows=10 cols=60
        plugin="fieldinsert" additionalConfig="fieldinsert_list : `$fieldlist`,"
        description='Leave blank to display all fields.  Use \'Fields\' dropdown to insert fields'}
    {control type="dropdown" name="order" label="Sort records by"|gettext items=$fields value=$config.order|default:'id'}
{/group}