#!/usr/bin/perl -wT
# vim: ft=xml:
#----------------------------------------------------------------------
# heading : Mozus
# description : Mozilla AddOns Server
# navigation  : 5300 5350
#----------------------------------------------------------------------
#
# copyright (C) Decaux Nicolas Aka 'GawiNDX'
# contributor: Nicolas Decaux <decauxnico@gmail.com>
#
# This program 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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
#----------------------------------------------------------------------
use strict;
use esmith::FormMagick::Panel::Mozus_addons;

my $fm = esmith::FormMagick::Panel::Mozus_addons->new();

$fm->display();

=pod

=head1 NAME

addons -- create/modify/delete domains

=head2 DESCRIPTION

This screen allows the administrator to create, modify or delete 
domains.

=cut

__DATA__
<form title="MOZUS_ADDONS_TITLE" 
    header="/etc/e-smith/web/common/head.tmpl" 
    footer="/etc/e-smith/web/common/foot.tmpl">

    <page name="First" 
		pre-event="print_status_message()">

        <description>MOZUS_ADDONS_DESCRIPTION</description>
		
		<subroutine src="prepare_locale()" />		
		<subroutine src="import_mod()" />
        <subroutine src="print_addons_table()" />
		<field type="literal" id="button_add_addons" >
			<label> </label>
			<description>BUTTON_ADD_ADDON</description>
        </field>
		
		<field type="literal" id="button_paramjs" >
					<label> </label>
          <description>BUTTON_PARAM_SITEJS</description>
        </field>

	
    </page>
	
	<page name="ADDONS_PAGE_MODIFY"
            pre-event="turn_off_buttons()"
            post-event="addons_delete_modify('modify')" >

        <description>ADDONS_MODIFY_TITLE</description>

		<field type="literal" id="Addon_name"
              value="get_addon_name()" >
			<label> </label>
			<description>ADVERT_MODIFY</description>
        </field>
		
		<field type="select" id="Active_Module"
			options="'disabled' => 'NO', 'enabled' => 'YES'"
            value="get_module_status()">
            <label>MODULE_STATUS</label>
			<description>SELECT_MODULE_STATUS</description>
        </field>

        <subroutine src="print_button('MODIFY')" />
    </page>
	
	<page name="ADDONS_PAGE_REMOVE"
            pre-event="turn_off_buttons()"
            post-event="addons_delete_modify('delete')" >

        <description>ADDONS_MODIFY_TITLE</description>
		
		<field type="literal" id="Addon_name"
              value="get_addon_name()" >
		  <description>ADVERT_DELETE</description>
          <label> </label>
        </field>

		
        <subroutine src="print_button('REMOVE')" />
    </page>
	
	<page name="PARAM_SITEJS" 
		pre-event="turn_off_buttons()"
		post-event="save_param()">

        <description>MOZUS_PARAMJS_DESCRIPTION</description>
        
		<field type="textarea" id="list_prefs"
			value="get_sitejs()" rows="20">
		<label> </label>
	    <description>DESC_SITEJS_PREFS</description>	    
        </field>
		
		<field type="textarea" id="list_custom_prefs"
			value="get_custom_prefs()" rows="20">
		<label> </label>
	    <description>DESC_CUSTOM_PREFS</description>	    
        </field>
	
		<subroutine src="print_button('SAVE')" />
    </page>	
</form>
