working on forwarding mail
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
<h1>Widerhall List Creation</h1>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
<h1>Widerhall front page</h1>
|
||||
If you are looking for you mailing lists, <a href="web/index">Go to the /web page</a>...
|
||||
<fieldset>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
«messages()»
|
||||
|
||||
@@ -6,11 +6,24 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
«messages()»
|
||||
<h1>Widerhall '«data.list»' Details</h1>
|
||||
«listmembers()»
|
||||
<form method="POST">
|
||||
<fieldset>
|
||||
<legend>Options for «data.list»</legend>
|
||||
<label>
|
||||
<input type="checkbox" name="forward_from">
|
||||
Forward using original sender
|
||||
</label>
|
||||
<button type="submit">Save</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
loadListDetail('«data.list»');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -27,6 +27,10 @@ function hideList(listEmail){
|
||||
$.post('/api/list/hide',{list:listEmail},showListResult,'json');
|
||||
}
|
||||
|
||||
function loadListDetail(listEmail){
|
||||
$.post('/api/list/detail',{list:listEmail},showListDetail,'json');
|
||||
}
|
||||
|
||||
function loadListOfEditableLists(){
|
||||
$.getJSON('/api/list/editable', showListOfEditableLists);
|
||||
}
|
||||
@@ -51,6 +55,10 @@ function showList(listEmail){
|
||||
$.post('/api/list/show',{list:listEmail},showListResult,'json');
|
||||
}
|
||||
|
||||
function showListDetail(data){
|
||||
console.log(data);
|
||||
}
|
||||
|
||||
function showListOfEditableLists(data){
|
||||
for (let i in data.lists){
|
||||
let list = data.lists[i];
|
||||
@@ -63,7 +71,11 @@ function showListOfEditableLists(data){
|
||||
td = $('<td/>');
|
||||
$('<a/>',{href:inspect}).text(addr).appendTo(td)
|
||||
td.appendTo(row);
|
||||
$('<td/>').text(list.state).appendTo(row);
|
||||
let states = [];
|
||||
for (let state in list.state){
|
||||
if (list.state[state] > 0) states.push(state);
|
||||
}
|
||||
$('<td/>').text(states.toString()).appendTo(row);
|
||||
|
||||
let select = $('<select/>',{name:addr}).change(function () {
|
||||
let action = $(this).children("option:selected").val();
|
||||
@@ -99,7 +111,11 @@ function showListList(data){
|
||||
$('<td/>',{class:'right'}).text(list.email.prefix).appendTo(row);
|
||||
$('<td/>',{class:'right'}).text('@').appendTo(row);
|
||||
$('<td/>').text(list.email.domain).appendTo(row);
|
||||
$('<td/>').text(list.state).appendTo(row);
|
||||
let states = [];
|
||||
for (let state in list.state){
|
||||
if (list.state[state] > 0) states.push(state);
|
||||
}
|
||||
$('<td/>').text(states.toString()).appendTo(row);
|
||||
let td = $('<td/>',{class:'actions'});
|
||||
$('<button/>',{onclick:"subscribeTo('"+list.email.domain+"', '"+list.email.prefix+"');"}).text('subscribe').appendTo(td);
|
||||
$('<button/>',{onclick:"unsubscribeFrom('"+list.email.domain+"', '"+list.email.prefix+"');"}).text('unsubcribe').appendTo(td);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«messages()»
|
||||
<h1>Widerhall login</h1>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
<h1>Widerhall user registration</h1>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
«messages()»
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
«messages()»
|
||||
|
||||
Reference in New Issue
Block a user