Merge branch 'main' into lang_de
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 Listen-Erzeugung</h1>
|
||||
@@ -43,6 +43,10 @@
|
||||
<input type="password" name="imap_pass" value="«data.imap_pass»" id="imap_pass" />
|
||||
Passwort
|
||||
</label>
|
||||
<label>
|
||||
<input type="text" name="inbox" value="«if(data.inbox)»«data.inbox»«else»INBOX«endif»" id="imap_inbox" />
|
||||
Inbox name
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>SMTP-Protokoll</legend>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
<h1>Widerhall Startseite</h1>
|
||||
Falls du zu den Mailing-Listen willst, <a href="web/index">Gehe zur Seite /web</a>...
|
||||
<fieldset>
|
||||
@@ -35,5 +35,6 @@
|
||||
Das ist alles.
|
||||
</p>
|
||||
</fieldset>
|
||||
«footer()»
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
«messages()»
|
||||
|
||||
@@ -6,11 +6,28 @@
|
||||
<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>
|
||||
<label>
|
||||
<input type="checkbox" name="forward_attached">
|
||||
Append original message as attachment
|
||||
</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,12 @@ function showList(listEmail){
|
||||
$.post('/api/list/show',{list:listEmail},showListResult,'json');
|
||||
}
|
||||
|
||||
function showListDetail(data){
|
||||
console.log(data);
|
||||
if (data.forward_from) $('input[name="forward_from"]').prop('checked',true);
|
||||
if (data.forward_attached) $('input[name="forward_attached"]').prop('checked',true);
|
||||
}
|
||||
|
||||
function showListOfEditableLists(data){
|
||||
for (let i in data.lists){
|
||||
let list = data.lists[i];
|
||||
@@ -63,7 +73,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();
|
||||
@@ -78,6 +92,7 @@ function showListOfEditableLists(data){
|
||||
$('<td/>').text(list.imap_host).appendTo(row);
|
||||
$('<td/>').text(list.imap_port).appendTo(row);
|
||||
$('<td/>').text(list.imap_user).appendTo(row);
|
||||
$('<td/>').text(list.inbox).appendTo(row);
|
||||
$('<td/>').text(list.smtp_host).appendTo(row);
|
||||
$('<td/>').text(list.smtp_port).appendTo(row);
|
||||
$('<td/>').text(list.smtp_user).appendTo(row);
|
||||
@@ -98,7 +113,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('abonnieren').appendTo(td);
|
||||
$('<button/>',{onclick:"unsubscribeFrom('"+list.email.domain+"', '"+list.email.prefix+"');"}).text('abbestellen').appendTo(td);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<legend>Liste der (bearbeitbaren) Mailing-Listen</legend>
|
||||
<table id="listlist">
|
||||
<tr>
|
||||
<th colspan="4">Liste</th>
|
||||
<th colspan="3">IMAP</th>
|
||||
<th colspan="4">List</th>
|
||||
<th colspan="4">IMAP</th>
|
||||
<th colspan="3">SMTP</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -14,6 +14,7 @@
|
||||
<th>Host</th>
|
||||
<th>Port</th>
|
||||
<th>Benutzername</th>
|
||||
<th>Posteingang</th>
|
||||
<th>Host</th>
|
||||
<th>Port</th>
|
||||
<th>Benutzername</th>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="js"></script>
|
||||
<link rel="stylesheet" href="css" />
|
||||
</head>
|
||||
<body id="login">
|
||||
<body>
|
||||
«navigation()»
|
||||
«userinfo()»
|
||||
<h1>Widerhall Nutzer-Registrierung</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