Commit 08de4d7c authored by david.verdin's avatar david.verdin
Browse files

[change][Submitted by O. Lumineau, RENATER] Improved web skin with responsive...

[change][Submitted by O. Lumineau, RENATER] Improved web skin with responsive design and several skins bug fixes. You'll note that the Sympa top menu is back. For those of you who preferred the original Massey side menu, you can switch the menu position by simply editing the main.tt2 template. At the beginning, you'll see this: [% top_menu = 1 %]. Simply set this variable value to 0 and the menu will go back on the side and clear up the top window area.

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12182 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 747dfdb7
......@@ -190,6 +190,7 @@ nobase_default_DATA = \
web_tt2/arcsearch_form.tt2 \
web_tt2/arcsearch.tt2 \
web_tt2/arc.tt2 \
web_tt2/aside_menu.tt2 \
web_tt2/auto_signoff.tt2 \
web_tt2/automatic_lists_management_request.tt2 \
web_tt2/automatic_lists_request.tt2 \
......@@ -233,6 +234,9 @@ nobase_default_DATA = \
web_tt2/get_latest_lists.tt2 \
web_tt2/get_biggest_lists.tt2 \
web_tt2/get_pending_lists.tt2 \
web_tt2/header.tt2 \
web_tt2/head_ui.tt2 \
web_tt2/head_javascript.tt2 \
web_tt2/help_admin.tt2 \
web_tt2/help_arc.tt2 \
web_tt2/help_editfile.tt2 \
......@@ -290,6 +294,7 @@ nobase_default_DATA = \
web_tt2/rss_request.tt2 \
web_tt2/rss.tt2 \
web_tt2/scenario_test.tt2 \
web_tt2/search.tt2 \
web_tt2/search_list.tt2 \
web_tt2/search_list_request.tt2 \
web_tt2/search_user.tt2 \
......@@ -308,6 +313,7 @@ nobase_default_DATA = \
web_tt2/subrequest.tt2 \
web_tt2/subscriber_table.tt2 \
web_tt2/suspend_request.tt2 \
web_tt2/sympa_menu.tt2 \
web_tt2/ticket.tt2 \
web_tt2/title.tt2 \
web_tt2/tracking.tt2 \
......@@ -317,6 +323,7 @@ nobase_default_DATA = \
web_tt2/viewmod.tt2 \
web_tt2/view_template.tt2 \
web_tt2/your_lists.tt2 \
web_tt2/which.tt2 \
web_tt2/ja/css.tt2 \
web_tt2/ko/css.tt2 \
web_tt2/zh-CN/css.tt2 \
......
......@@ -14,7 +14,7 @@
<br />
<table class="listOfItems" summary="[%|loc(count)%] The %1 most active lists [%END%][%|loc(for)%] for %1 days [%END%]">
<table class="responsive listOfItems" summary="[%|loc(count)%] The %1 most active lists [%END%][%|loc(for)%] for %1 days [%END%]">
<tr class="color_light">
<th id="list_name"><strong>[%|loc%]List name[%END%]</strong></th>
<th id="message"><strong>[%|loc%]Number of messages[%END%]</strong></th>
......
......@@ -7,10 +7,10 @@
<textarea name="dump" id="dump" cols="80" rows="25" onclick="empty_field('dump','used');" >[%|loc%]email1@dom1 Name1[%END%]
[%|loc%]email2@dom2 Name2[%END%]
...
</textarea>
</textarea>
<br />
<input class="MainMenuLinks" type="submit" name="action_add" value="[%|loc%]Add subscribers[%END%]" />
<label for="quiet">[%|loc%]quiet[%END%]</label> <input id="quiet" type="checkbox" name="quiet" />
<input id="quiet" type="checkbox" name="quiet" /> <label for="quiet">[%|loc%]quiet[%END%]</label>
</fieldset>
</form>
<!-- end add_request.tt2 -->
<!-- $Id$ -->
<div class="block">
<h2>[%|loc%]Advanced Operations[%END%]</h2>
<h2>[%|loc%]Casual administration[%END%]</h2>
<ul>
[% IF is_listmaster || is_owner %]
<li><strong><a href="[% path_cgi %]/edit_list_request/[% list %]">[%|loc%]Edit list config:[%END%]</a></strong> [%|loc%]Use it with care: it allows you to modify some of the list parameters. The list of the parameters you can modify depends on your privileges.[%END%]</li>
[% END %]
[% IF is_listmaster || is_owner || may_del %]
<li><strong><a href="[% path_cgi %]/review/[% list %]">[%|loc%]Manage subscribers:[%END%]</a></strong> [%|loc%]Allows you to add or delete list subscribers, moderate subscriptions and so on.[%END%]</li>
[% IF conf.use_blacklist != 'none' %]
<li><strong><a href="[% path_cgi %]/blacklist/[% list %]" >[%|loc%]Blacklist:[%END%]</a></strong> [%|loc%]Handles the set of black-listed mail addresses for this list.[%END%]</li>
[% END %]
[% END %]
[% IF is_listmaster || is_owner %]
[% IF is_archived %]
<li><strong><a href="[% path_cgi %]/arc_manage/[% list %]">[%|loc%]Manage archives:[%END%]</a></strong> [%|loc%]Allows you to download and delete list archives.[%END%]</li>
[% END %]
[% IF is_listmaster || is_owner || ( is_editor && may_review ) %]
<li><strong><a href="[% path_cgi %]/reviewbouncing/[% list %]">[%|loc%]Bounces:[%END%]</a></strong> [%|loc%]Manages non-delivery reports (also called bounces).[%END%]</li>
[% END %]
[% IF is_priv || is_listmaster %]
<li><strong><a href="[% path_cgi %]/viewlogs/[% list %]/first" >[%|loc%]Logs:[%END%]</a></strong> [%|loc%]A tool for exploring the list logs.[%END%]</li>
[% END %]
[% END %]
</ul>
[% IF is_listmaster || is_owner || is_privileged_owner %]
<h2>[%|loc%]Drastic operations[%END%]</h2>
[% IF is_privileged_owner %]
<div>
<form name="manage_list_status" action="[% path_cgi %]" method="post">
......@@ -10,7 +37,7 @@
<input class="MainMenuLinks" type="submit" name="action_restore_list" value="[%|loc%]Restore List[%END%]" onClick="return request_confirm('[% FILTER escape_quote %][%|loc(list)%]Are you sure you wish to restore list %1?[%END%][%END%]');"/> [%|loc%]This list is currently closed. Clicking this button will make it active again.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
[% ELSE %]
<input class="MainMenuLinks" type="submit" name="action_close_list" value="[%|loc%]Close List[%END%]" onClick="return request_confirm('[% FILTER escape_quote %][%|loc(list)%]Are you sure you wish to close list %1?[%END%][%END%]');"/>
<input class="MainMenuLinks" type="submit" name="action_close_list" value="[%|loc%]Remove List[%END%]" onClick="return request_confirm('[% FILTER escape_quote %][%|loc(list)%]Are you sure you wish to close list %1?[%END%][%END%]');"/> [%|loc%]Completely removes the current list. Listmaster privileges are required to restore a list.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
[% END %]
</fieldset>
......@@ -20,7 +47,7 @@
<form name="manage_list_name" action="[% path_cgi %]" method="post">
<fieldset>
[% IF may_create_list %]
<input class="MainMenuLinks" type="submit" name="action_rename_list_request" value="[%|loc%]Rename List[%END%]"/>
<input class="MainMenuLinks" type="submit" name="action_rename_list_request" value="[%|loc%]Rename List[%END%]"/> [%|loc%]Allows you to change this list's name. Everything related to the list will be relabeled according to the new name, including the mail aliases and the web archives.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
[% END %]
</fieldset>
......@@ -28,16 +55,16 @@
</div><br/>
[% END %]
[% IF is_owner %]
[% IF is_listmaster || is_owner %]
<div>
<form name="manage_shared_status" action="[% path_cgi %]" method="post">
<fieldset>
[% IF shared == 'none' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Create Shared Content[%END%]"/> [%|loc%]Initializes the shared document web space.[%END%]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Create Shared[%END%]"/> [%|loc%]Initializes the shared document web space.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="create"/>
[% ELSIF shared == 'exist' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Delete Shared Documents[%END%]" onClick="return request_confirm('[% FILTER escape_quote %][%|loc(listname)%]Are you sure you wish to delete the shared documents for list %1?[%END%][%END%]');"/></li>
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Delete Shared[%END%]" onClick="return request_confirm('[% FILTER escape_quote %][%|loc(listname)%]Are you sure you wish to delete the shared documents for list %1?[%END%][%END%]');"/> [%|loc%]Closes the shared document web space. It can be restored using "Restore shared" button.[%END%]</li>
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="delete"/>
[% ELSIF shared == 'deleted' %]
......@@ -49,6 +76,45 @@
</form>
</div><br/>
[% END %]
[% END %]
[% IF is_privileged_owner %]
[% TRY %]
[% USE Dokuwiki("groupware_wikis") %]
<div>
<form name="manage_list_wiki" action="[% path_cgi %]" method="post">
<input type="hidden" name="action" value="admin" />
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="plugin.dokuwiki.wikiname" value="[% list %]@[% robot %]" />
<input type="hidden" name="plugin.dokuwiki.template" value="_template_" />
<fieldset>
[% TRY %]
[% done = Dokuwiki.handleform("${list}@${robot}", "${list}") %]
[% IF done %]
[% IF done == 'created' %]
<p class="success">The wiki has been created.</p>
[% END %]
[% IF done == 'deleted' %]
<p class="success">The wiki has been deleted.</p>
[% END %]
[% END %]
[% IF Dokuwiki.exists("${list}@${robot}") %]
<input class="MainMenuLinks" type="submit" name="plugin.dokuwiki.delete_wiki" value="[%|loc%]Delete wiki[%END%]" onClick="return request_confirm('[% FILTER escape_quote %][%|loc(list)%]Are you sure you wish to delete this list's wiki ?[%END%][%END%]');"/> [%|loc%]Warning : deletion is final, data recovery is not possible once done.[%END%]
[% ELSE %]
<input class="MainMenuLinks" type="submit" name="plugin.dokuwiki.create_wiki" value="[%|loc%]Create wiki[%END%]" /> [%|loc%]Please check out <a href="#">the wiki service terms and conditions</a>[%END%]
[% END %]
[% CATCH %]
<p class="error">[% error.info %]</p>
[% END %]
</fieldset>
</form>
</div>
<br/>
[% CATCH %]
<p class="error">[% error.info %]</p>
[% END %]
[% END %]
</div>
<!-- end admin.tt2 -->
<!-- $Id$ -->
<!-- begin : this part is generated by mhonarc using mhonarc-ressources.tt2 -->
<div class="block">
<h2>[%|loc%]List archive[%END%] <a class="input" href="[% path_cgi %]/nomenu/help/arc" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help">[%|loc%]Help[%END%]</a></h2>
<h2>[%|loc%]List archive[%END%] <a href="[% path_cgi %]/nomenu/help/arc" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<br />
[% IF html_content ~%]
[% TRY ~%]
[% html_content | eval %]
[%~ CATCH ~%]
<!-- [% error | html %] -->
[%~ END ~%]
[% IF file_handle %]
[% PROCESS $file_handle %]
[% END %]
</div>
<!-- end of part generated by mhonarc -->
<!-- end arc.tt2 -->
<!-- end arc.tt2 -->
\ No newline at end of file
<!-- $Id$ -->
<div class="block">
<h2>[%|loc%]Archive Management[%END%] <a class="input" href="[% path_cgi %]/nomenu/help/admin#manage_archives" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help">[%|loc%]Help[%END%]</a></h2>
<h2>[%|loc%]Archive Management[%END%] <a href="[% path_cgi %]/nomenu/help/admin#manage_archives" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<br />
[%|loc%]Select below Archives months you want to delete or download (ZiP format):[%END%]
......
<!-- $Id$ -->
<div class="block">
<h2>[%|loc%]List archive[%END%] </h2>
<h4>[%|loc%]Advanced archive search[%END%] <a class="input" href="[% path_cgi %]/nomenu/help/arc#arcsearch" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help">[%|loc%]Help[%END%]</a></h4>
<h4>[%|loc%]Advanced archive search[%END%] <a href="[% path_cgi %]/nomenu/help/arc#arcsearch" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h4>
<form id="bold_label" method="post" action="[% path_cgi %]">
<fieldset>
......@@ -16,38 +16,38 @@
<input class="MainMenuLinks" name="action_arcsearch" type="submit" value="[%|loc%]Search[%END%]" onClick="if (document.getElementsByName('key_word')[0].value.replace(/\s+/g, '')) return true; else return false;" />
<br />
<label>[%|loc%]Search:[%END%]</label>
<label class="inlineLabel" for="how.phrase"><em>[%|loc%]this sentence[%END%]</em> </label> <input id="how.phrase" type="radio" name="how" value="phrase" checked="checked" />
<label class="inlineLabel" for="how.all"><em>[%|loc%]all of these words[%END%]</em> </label> <input id="how.all" type="radio" name="how" value="all" />
<label class="inlineLabel" for="how.any"><em>[%|loc%]one of these words[%END%]</em></label> <input id="how.any" type="radio" name="how" value="any" />
<label>[%|loc%]Search:[%END%] </label>
<input id="how.phrase" type="radio" name="how" value="phrase" checked="checked" /> <label class="inlineLabel" for="how.phrase"><em>[%|loc%]this sentence[%END%]</em> </label>
<input id="how.all" type="radio" name="how" value="all" /> <label class="inlineLabel" for="how.all"><em>[%|loc%]all of these words[%END%]</em> </label>
<input id="how.any" type="radio" name="how" value="any" /> <label class="inlineLabel" for="how.any"><em>[%|loc%]one of these words[%END%]</em></label>
<br />
<label>[%|loc%]Prefer:[%END%] </label>
<label class="inlineLabel" for="age.new"><em>[%|loc%]newest messages[%END%]</em></label> <input id="age.new" type="radio" name="age" value="new" checked="checked" />
<label class="inlineLabel" for="age.old"><em>[%|loc%]oldest messages[%END%]</em></label> <input id="age.old" type="radio" name="age" value="old" />
<input id="age.new" type="radio" name="age" value="new" checked="checked" /> <label class="inlineLabel" for="age.new"><em>[%|loc%]newest messages[%END%]</em></label>
<input id="age.old" type="radio" name="age" value="old" /> <label class="inlineLabel" for="age.old"><em>[%|loc%]oldest messages[%END%]</em></label>
<br />
<label>[%|loc%]Case:[%END%] </label>
<label class="inlineLabel" for="case.off"><em>[%|loc%]insensitive[%END%]</em></label> <input id="case.off" type="radio" name="case" value="off" checked="checked" />
<label class="inlineLabel" for="case.on"><em>[%|loc%]sensitive[%END%]</em></label> <input id="case.on" type="radio" name="case" value="on" />
<input id="case.off" type="radio" name="case" value="off" checked="checked" /> <label class="inlineLabel" for="case.off"><em>[%|loc%]insensitive[%END%]</em></label>
<input id="case.on" type="radio" name="case" value="on" /> <label class="inlineLabel" for="case.on"><em>[%|loc%]sensitive[%END%]</em></label>
<br />
<label>[%|loc%]Check:[%END%] </label>
<label class="inlineLabel" for="match.partial"><em>[%|loc%]part of word[%END%]</em></label> <input id="match.partial" type="radio" name="match" value="partial" checked="checked" />
<label class="inlineLabel" for="match.exact"><em>[%|loc%]entire word[%END%]</em></label> <input id="match.exact" type="radio" name="match" value="exact" />
<input id="match.partial" type="radio" name="match" value="partial" checked="checked" /> <label class="inlineLabel" for="match.partial"><em>[%|loc%]part of word[%END%]</em></label>
<input id="match.exact" type="radio" name="match" value="exact" /> <label class="inlineLabel" for="match.exact"><em>[%|loc%]entire word[%END%]</em></label>
<br />
<label>[%|loc%]Layout:[%END%] </label>
<label class="inlineLabel" for="limit.10"><em>10</em> [%|loc%]results by page[%END%]</label> <input id="limit.10" type="radio" name="limit" value="10" checked="checked" />
<label class="inlineLabel" for="limit.25"><em>25</em> [%|loc%]results by page[%END%]</label> <input id="limit.25" type="radio" name="limit" value="25" />
<label class="inlineLabel" for="limit.50"><em>50</em> [%|loc%]results by page[%END%]</label> <input id="limit.50" type="radio" name="limit" value="50" />
<input id="limit.10" type="radio" name="limit" value="10" checked="checked" /> <label class="inlineLabel" for="limit.10"><em>10</em> [%|loc%]results by page[%END%]</label>
<input id="limit.25" type="radio" name="limit" value="25" /> <label class="inlineLabel" for="limit.25"><em>25</em> [%|loc%]results by page[%END%]</label>
<input id="limit.50" type="radio" name="limit" value="50" /> <label class="inlineLabel" for="limit.50"><em>50</em> [%|loc%]results by page[%END%]</label>
<br />
<label rowspan="2">[%|loc%]Search area:[%END%] </label>
<label class="inlineLabel" for="area.from"><em>[%|loc%]Sender[%END%] </em></label> <input id="area.from" type="checkbox" name="from" value="True" />
<label class="inlineLabel" for="area.subj"><em>[%|loc%]Subject[%END%] </em></label> <input id="area.subj" type="checkbox" name="subj" value="True" checked="checked" />
<label class="inlineLabel" for="area.date"><em>[%|loc%]Date[%END%] </em></label> <input id="area.date" type="checkbox" name="date" value="True" />
<label class="inlineLabel" for="area.body"><em>[%|loc%]Body[%END%] </em></label> <input id="area.body" type="checkbox" name="body" value="True" checked="checked" />
<input id="area.from" type="checkbox" name="from" value="True" /> <label class="inlineLabel" for="area.from"><em>[%|loc%]Sender[%END%] </em></label>
<input id="area.subj" type="checkbox" name="subj" value="True" checked="checked" /> <label class="inlineLabel" for="area.subj"><em>[%|loc%]Subject[%END%] </em></label>
<input id="area.date" type="checkbox" name="date" value="True" /> <label class="inlineLabel" for="area.date"><em>[%|loc%]Date[%END%] </em></label>
<input id="area.body" type="checkbox" name="body" value="True" checked="checked" /> <label class="inlineLabel" for="area.body"><em>[%|loc%]Body[%END%] </em></label>
<br />
<br />
......
<!-- $Id: aside_menu.tt2 11846 2015-01-15 04:15:17Z sikeda $ -->
<div id="top"><a class="displayNone" href="#content-inner">[%|loc%]Skip to Content.[%END%]</a></div>
<aside class="medium-3 columns show-for-medium-up">
[% IF not top_menu %]
[% IF conf.logo_html_definition %]
<div id="logo" >[% conf.logo_html_definition %]</div>
[% ELSE %]
<div id="logo" ><a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" /></a></div>
[% END %]
[% END %]
[% IF not top_menu %]
[% IF user.email %]
<menu class="user">
<ul>
[% PROCESS login_menu.tt2 %]
</ul>
</menu>
[% ELSE %]
<menu class="connect">
<ul>
[% PROCESS loginbanner.tt2 %]
</ul>
</menu>
[% END %]
[% END %]
[% IF list %]
<menu class="list">
<ul>
[% PROCESS list_menu.tt2 %]
</ul>
</menu>
[% END %]
[% IF not top_menu %]
<menu class="sympa">
<ul>
[% PROCESS 'sympa_menu.tt2' %]
</ul>
</menu>
[% END %]
</aside>
<!-- for responsive view -->
[% IF top_menu %]
[% IF list %]
<nav class="top-bar hide-for-medium-up" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>[%|loc%]List Options[%END%] Menu</span></a></li>
</ul>
<section class="top-bar-section hide-for-medium-up">
<ul class="right">
[% PROCESS list_menu.tt2 %]
</ul>
</section>
</nav>
[% END %]
[% ELSE %]
<nav class="top-bar hide-for-medium-up" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
[% IF conf.logo_html_definition %]
[% conf.logo_html_definition %]
[% ELSE %]
<a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" /></a>
[% END %]
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>General Menu</span></a></li>
</ul>
<section class="top-bar-section hide-for-medium-up">
<ul class="right">
[% IF user.email %]
[% PROCESS login_menu.tt2 %]
[% ELSE %]
<li> [% PROCESS loginbanner.tt2 %]</li>
[% END %]
[% IF list %]
[% PROCESS list_menu.tt2 %]
[% END %]
[% PROCESS 'sympa_menu.tt2' %]
</ul>
</section>
</nav>
[% END %]
<!-- end aside_menu.tt2 -->
......@@ -4,21 +4,22 @@
<h2>[%|loc%]Blacklist management[%END%]</h2><br />
<div id="blacklist">
[%|loc(conf.use_blacklist)%]Operation requested by users which email is listed in the blacklist file are rejected. The blacklist is in use for the following operation: %1.[%END%]
[%|loc%]Operation requested by users which email is listed in the blacklist file are rejected. The
blacklist is in use for the following operation:[%END%] [% conf.use_blacklist %].
<br /><br />
[%|loc%]Syntax:[%END%]
<ul>
<li>[%|loc%]only one email or expression by line[%END%]</li>
<li>[%|loc%]number sign (#) introduces a comment[%END%]</li>
<li>[%|loc%]asterisk (*) matches any string. Example: "*@spammer-domain.com" matchs any sender from that exact domain[%END%]</li>
<li>[%|loc%]only one asterisk is allowed in a line[%END%]</li>
<li>[%|loc%]char # introduce a comment[%END%]</li>
<li>[%|loc%]char * match any string. Example: "*@spammer-domain.com" match any sender from that exact domain[%END%]</li>
<li>[%|loc%]only one char * is autorized in a line[%END%]</li>
</ul>
[%end%]
<p>
[% IF rows == '0' %]
[%|loc%]The current blacklist is empty[%END%]
[%|loc%]The current blacklist is empty[%END%]
[% ELSE %]
[%|loc(rows)%]The current blacklist contains %1 line(s)[%END%]
[%|loc(rows)%]The current blacklist contains %1 line(s)[%END%]
[% END %]
</p>
......@@ -27,17 +28,18 @@
[% rows = rows+2 %]
<form class="noborder" action="[% path_cgi %]/blacklist" method="post">
<fieldset>
<textarea name="blacklist" cols="80" rows="[% rows %]">
[%~ blacklist ~%]
</textarea><br />
<input type="hidden" name="action" value="blacklist" />
[% IF list %]
<input type="hidden" name="list" value="[% list %]" />
[% END %]
<br /><input type="submit" class="MainMenuLinks" name="action_blacklist" value="[%|loc%]save[%END%]" />
[% IF saved %]
[%|loc%]Template saved[%END%] ([% time %]) <br /><br />
[% END %]
<textarea name="blacklist" cols="80" rows="[% rows %]">
[% blacklist %]
</textarea><br />
<input type="hidden" name="action" value="blacklist" />
[% IF list %]
<input type="hidden" name="list" value="[% list %]" />
[% END %]
<br /><input type="submit" class="MainMenuLinks" name="action_blacklist" value="[%|loc%]save[%END%]" />
[% IF saved %]
[%|loc%]Template saved[%END%] ([% time %]) <br /><br />
[% END %]
</fieldset>
</form>
</div>
......
<!-- $Id$ -->
<div class="block">
[% IF !subaction %]
<h2>[%|loc%]Sending a message to the list[%END%] <a class="input" href="[% path_cgi %]/nomenu/help/sendmsg" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help">[%|loc%]Help[%END%]</a></h3>
<br />
<h2>[%|loc%]Sending a message to the list[%END%] <a href="[% path_cgi %]/nomenu/help/sendmsg" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
[% END %]
<form class="noborder" action="[% path_cgi %]" method="post" name="compose_mail" enctype="multipart/form-data">
[% IF subaction == "html_news_letter" %]
<h2>[%|loc%]Sending an html page to the list [%END%] <a class="input" href="[% path_cgi %]/nomenu/help/sendmsg" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help">[%|loc%]Help[%END%]</a></h3>
<br />
<h2>[%|loc%]Sending an html page to the list [%END%] <a href="[% path_cgi %]/nomenu/help/sendmsg" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
[% END %]
<form class="noborder" action="[% path_cgi %]" method="post" name="compose_mail" enctype="multipart/form-data">
<fieldset>
[%|loc(user.email)%]From: %1[%END%]<br />
[%|loc(mailto)%]To: %1[%END%]<br />
......@@ -23,7 +16,7 @@
<input type="hidden" name="html_news_letter" value="[% subaction %]" />
[% END %]
<input type="hidden" name="action" value="send_mail"/>
<input class="MainMenuLinks" type="submit" name="sub_action_sendmailtolist" value="[%|loc%]Send to selected recipient[%END%]" [%- IF topic_required -%] onclick="return checkbox_check_topic(compose_mail)" [% END %]/>
<input class="MainMenuLinks" type="submit" name="sub_action_sendmailtolist" value="[%|loc%]Send to selected receipient[%END%]" [%- IF topic_required -%] onclick="return checkbox_check_topic(compose_mail)" [% END %]/>
<input class="MainMenuLinks" type="submit" name="sub_action_sendmailtome" value="[%|loc%]Send to me[%END%]" [%- IF topic_required -%] onclick="return checkbox_check_topic(compose_mail)" [% END %]/>
<br />
......@@ -49,7 +42,7 @@
[%|loc%]Please select one or more topic(s) that corresponds to your message:[%END%]
<br />
[% FOREACH t = available_topics %]
<label for="topic_[%t.name%]">[% t.title %]</label> <input id="topic_[%t.name%]" type="checkbox" name="topic_[%t.name%]" value="1"/>
<input id="topic_[%t.name%]" type="checkbox" name="topic_[%t.name%]" value="1"/> <label for="topic_[%t.name%]">[% t.title %]</label>
<br />
[% END %]
<br />
......@@ -78,20 +71,13 @@
[% END %]
[% END %]
[% IF subaction == "html_news_letter" %]
<h3>[%|loc%]Select the source of your HTML newsletter[%END%]</h3>
<br/>
<br /><h3>[%|loc%]Select the source of your HTML newsletter[%END%]</h3>
<label for="url"><strong>[%|loc%]Send the page from the following URL:[%END%] </strong></label>
<input id="url" type="text" size="55" name="url" value="[% url %]" /><br/>
<input id="url" type="text" size="55" name="url" value="[% url %]" />
<p><strong>[%|loc%]OR[%END%]</strong></p>
<label for="uploaded_file">[%|loc%]<strong>Send an HTML file from your computer:[%END%] </strong></label>
<input id="uploaded_file" type="file" size="45" name="uploaded_file"/>
[% END %]
</fieldset>
</form>
</div>
<!-- end compose_mail.tt2 -->
......@@ -3,42 +3,37 @@
<div class="block" id="create_switch">
<div id="list_create">
<h2>[%|loc%]Create list[%END%] <a class="input" href="[% path_cgi %]/nomenu/help/admin#create_list" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=400')" target="wws_help">[%|loc%]Help[%END%]</a></h2>
<h2><i class="fa fa-plus"></i> [%|loc%]Create list[%END%] <a href="[% path_cgi %]/nomenu/help/admin#create_list" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=400')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<form action="[% path_cgi %]" method="post">
<fieldset>
<div class="form_row"><label for="listname"><strong>[%|loc%]List name:[%END%]</strong></label><input type="text" id="listname" name="listname" size="30" value="[% saved.listname %]" /></div>
<div class="form_row"><label><strong>[%|loc%]Owner:[%END%]</strong></label><code>[% user.email %]</code></div>
<div class="form_row"><label for="list_type"><strong>[%|loc%]List type:[%END%]</strong></label><div style="width:70%; float:left;"><ul id="list_type" style="padding:0;">
[% FOREACH tpl_info = list_list_tpl %]
<li>
<div class="form_row">
<label for="template.[% tpl_info.key %]">
[% IF tpl_info.value.title %]
[% tpl_info.value.title %]
[% ELSE %]
[% tpl_info.key %]
[% END %]
</label>
<input type="radio" name="template" value="[% tpl_info.key %]"
[% IF tpl_info.value.selected || loop.size == 1 %]
checked="checked"
[% END %]
id="template.[% tpl_info.key %]" />
</div>
[% IF tpl_info.value.html_description ~%]
[% TRY ~%]
[% tpl_info.value.html_description | eval %]
[%~ CATCH ~%]
<!-- [% error | html %] -->
[%~ END ~%]
[% END %]
</li>
[% END %]
</ul></div></div>
<div class="form_row"><label for="subject"><strong>[%|loc%]Subject:[%END%]</strong></label><input type="text" name="subject" id="subject" size="60" value="[% saved.subject %]" /></div>
<label for="listname">[%|loc%]List name:[%END%]</label><input type="text" id="listname" name="listname" size="30" value="[% saved.listname %]" />
<label for="owner">[%|loc%]Owner:[%END%]</label> <span>[% user.email %]</span>
<label for="list_type">[%|loc%]List type:[%END%]</label><ul id="list_type">
[% FOREACH template = list_list_tpl %]
[% IF template.value.comment %]
<li>
<input type="radio" name="template" value="[% template.key %]"
[% IF template.value.selected || loop.size == 1 %]
checked="checked"
[% END %]
id="template.[% template.key %]"
/>
[% PROCESS $template.value.comment %]
</li>
[% ELSE %]
<li>
<input type="radio" name="template" value="[% template.key %]"
[% IF template.value.selected %]
checked="checked"
[% END %]
id="template.[% template.key %]"
/> <label for="template.[% template.key %]">[% template.key %]</label>
</li>
[% END %]
[% END %]
</ul>
<label for="subject">[%|loc%]Subject:[%END%]</label><input type="text" name="subject" id="subject" size="60" value="[% saved.subject %]" />
[% SET single_topic = "other" %]
[% FOREACH topic = list_of_topics %]
......@@ -55,43 +50,41 @@
[% IF single_topic != "" %]
<input id="topics" name="topics" type="hidden" value="[% single_topic %]" />
[% ELSE %]
<div class="form_row">
<label for="topics"><strong>[%|loc%]Audience:[%END%]</strong></label>
<select id="topics" name="topics">
<option value="">[%|loc%]-- Select an Audience --[%END%]</option>
[% SET topic_other = 0 %]
[% FOREACH topic = list_of_topics %]
[% IF topic.key == "other" %][% SET topic_other = 1 %][% END %]
<option value="[% topic.key %]"
[% IF topic.value.selected %]
selected="selected"
[% END %]
>[% topic.value.current_title %]</option>
[% IF topic.value.sub %]
[% FOREACH subtopic = topic.value.sub %]
<option value="[% topic.key %]/[% subtopic.key %]">[% topic.value.current_title %] / [% subtopic.value.current_title %]</option>
[% END %]
[% END %]
[% END %]
[% UNLESS topic_other %]
<option value="other">[%|loc%]Other[%END%]</option>
[% END %]
</select>
</div>
<br />
<label for="topics">[%|loc%]Audience:[%END%]</label>
<select id="topics" name="topics">
<option value="">[%|loc%]-- Select an Audience --[%END%]</option>
[% SET topic_other = 0 %]
[% FOREACH topic = list_of_topics %]
[% IF topic.key == "other" %][% SET topic_other = 1 %][% END %]
<option value="[% topic.key %]"
[% IF topic.value.selected %]
selected="selected"
[% END %]
>[% topic.value.current_title %]</option>
[% IF topic.value.sub %]
[% FOREACH subtopic = topic.value.sub %]
<option value="[% topic.key %]/[% subtopic.key %]">[% topic.value.current_title %] / [% subtopic.value.current_title %]</option>
[% END %]
[% END %]
[% END %]
[% UNLESS topic_other %]
<option value="other">[%|loc%]Other[%END%]</option>
[% END %]
</select>
<br />
[% END %]
<div class="form_row"><label for="info" class="align_top"><strong>[%|loc%]Description:[%END%]</strong></label><textarea class="desc" id="info" name="info" rows="10" cols="80">[% saved.info %]</textarea></div>
<div class="form_row"><input class="MainMenuLinks" type="submit" name="action_create_list" value="[%|loc%]Submit your creation request[%END%]" /></div>
<label for="info" class="align_top">[%|loc%]Description:[%END%]</label><textarea class="desc" id="info" name="info" rows="10" cols="80">[% saved.info %]</textarea>
<input class="MainMenuLinks" type="submit" name="action_create_list" value="[%|loc%]Submit your creation request[%END%]" />
</fieldset>
</form>
</div>
[% IF all_lists.size > 0 %]
<div id="list_copy">
<div id="list_copy">
<h2>[%|loc%]Copy an existing list.[%END%]</h2>
<br />
<br />
[%|loc%]You can create a list, using an existing list as a template; the list configuration of the source list will be copied to create the new one. Note that neither list members, nor archives or shared documents are duplicated. The source lists you can use are limited to lists you own.[%END%]