SME Server's panel to create simple list. It works like groups email, except that you can enter raw (including external) email addresses instead of having to select existing user accounts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.7 KiB

12 years ago
#!/usr/bin/perl -wT
# vim: ft=xml ts=4 sw=4 et:
#----------------------------------------------------------------------
# heading : Collaboration
# description : MINILIST
# navigation : 2200 2400
#----------------------------------------------------------------------
#----------------------------------------------------------------------
# copyright (C) 2012 Firewall Services
# daniel@firewall-services.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::minilist;
my $f = esmith::FormMagick::Panel::minilist->new();
$f->display();
__DATA__
<form title="FORM_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()">
<subroutine src="show_initial()"/>
</page>
<page name="CreateList" pre-event="turn_off_buttons()"
post-event="create_list()">
<title>CREATE_LIST</title>
<description>DESC_NAME</description>
<field type="text" id="listName"
validation="validate_list_name">
<label>LABEL_NAME</label>
</field>
<field type="text" id="listDesc" validation="validate_description">
<label>LABEL_DESC</label>
<description>DESC_DESC</description>
</field>
<field type="textarea" id="members" validation="validate_list_members()"
rows="12">
<label>LABEL_MEMBERS</label>
<description>DESC_MEMBERS</description>
</field>
<subroutine src="print_button('VALIDATE')" />
</page>
<page name="Delete" pre-event="turn_off_buttons()"
post-event="delete_list()">
<title>REMOVE_LIST</title>
<field type="literal" id="listName" value="$q->param('listName')">
<label>LABEL_NAME</label>
<description>DESC_REMOVE</description>
</field>
<field type="literal" id="listDesc" value="get_description()">
<label>LABEL_DESC</label>
</field>
<field type="literal" id="members" value="get_html_members()">
<label>LABEL_MEMBERS</label>
</field>
<subroutine src="print_button('REMOVE')" />
</page>
<page name="Modify" pre-event="turn_off_buttons()"
post-event="modify_list()">
<title>MODIFY_LIST</title>
<field type="literal" id="listName" value="$q->param('listName')">
<label>LABEL_NAME</label>
</field>
<field type="text" id="listDesc" value="get_description()"
validation="validate_list_description">
<label>LABEL_DESC</label>
</field>
<field type="textarea" id="members" validation="validate_list_members()"
value="get_members()" rows="12">
<label>LABEL_MEMBERS</label>
<description>DESC_MEMBERS</description>
</field>
<subroutine src="print_button('VALIDATE')" />
</page>
</form>