Stephan Richter
3 years ago
15 changed files with 277 additions and 98 deletions
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
package de.srsoftware.widerhall.mail; |
||||
|
||||
import javax.mail.MessagingException; |
||||
|
||||
public interface ProblemListener { |
||||
public void onImapException(MessagingException e); |
||||
} |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<meta charset="utf-8" /> |
||||
<script src="jquery"></script> |
||||
<script src="js"></script> |
||||
<link rel="stylesheet" href="css" /> |
||||
</head> |
||||
<body> |
||||
«navigation()» |
||||
«userinfo()» |
||||
«messages()» |
||||
<h1>Widerhall List Setup</h1> |
||||
«list_data_form()» |
||||
«footer()» |
||||
</body> |
||||
</html> |
@ -0,0 +1,59 @@
@@ -0,0 +1,59 @@
|
||||
<form id="list_data" method="POST"> |
||||
<fieldset> |
||||
<legend>Listen-Konfiguration</legend> |
||||
<fieldset> |
||||
<legend>Basisdaten</legend> |
||||
<label> |
||||
<input type="text" name="name" value="«if(data.name)»«data.name»«else»«data.list.name»«endif»" id="name" /> |
||||
Name der Mailing-Liste |
||||
</label> |
||||
<label> |
||||
<input type="text" name="email" value="«if(data.email)»«data.email»«else»«data.list.email.prefix»@«data.list.email.domain»«endif»" id="email" /> |
||||
Email-Adresse der ML |
||||
</label> |
||||
</fieldset> |
||||
<fieldset> |
||||
<legend>IMAP-Protocoll</legend> |
||||
<label> |
||||
<input type="text" name="imap_host" value="«if(data.imap_host)»«data.imap_host»«else»«data.list.imap_host»«endif»" id="imap_host" /> |
||||
Hostname |
||||
</label> |
||||
<label> |
||||
<input type="number" name="imap_port" value="«if(data.imap_port)»«data.imap_port»«else»«data.list.imap_port»«endif»" id="imap_port" /> |
||||
Port |
||||
</label> |
||||
<label> |
||||
<input type="text" name="imap_user" value="«if(data.imap_user)»«data.imap_user»«else»«data.list.imap_user»«endif»" id="imap_user" /> |
||||
Benutzername |
||||
</label> |
||||
<label> |
||||
<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" /> |
||||
Name des Posteingangs-Ordners |
||||
</label> |
||||
</fieldset> |
||||
<fieldset> |
||||
<legend>SMTP-Protocoll</legend> |
||||
<label> |
||||
<input type="text" name="smtp_host" value="«if(data.smtp_host)»«data.smtp_host»«else»«data.list.smtp_host»«endif»" id="smtp_host" /> |
||||
Hostname |
||||
</label> |
||||
<label> |
||||
<input type="number" name="smtp_port" value="«if(data.smtp_port)»«data.smtp_port»«else»«data.list.smtp_port»«endif»" id="smtp_port" /> |
||||
Port |
||||
</label> |
||||
<label> |
||||
<input type="text" name="smtp_user" value="«if(data.smtp_user)»«data.smtp_user»«else»«data.list.smtp_user»«endif»" id="smtp_user" /> |
||||
Benutzername |
||||
</label> |
||||
<label> |
||||
<input type="password" name="smtp_pass" value="«data.smtp_pass»" id="smtp_pass" /> |
||||
Passwort |
||||
</label> |
||||
</fieldset> |
||||
<button type="submit">Mailing-Liste speichern</button> |
||||
</fieldset> |
||||
</form> |
@ -1,5 +1,9 @@
@@ -1,5 +1,9 @@
|
||||
<nav> |
||||
<a href="index">Home</a> |
||||
<a href="admin">Administration</a> |
||||
<!-- a class="button" href="reload" />Templates neu laden</a --> |
||||
<script type="text/javascript"> |
||||
if ('«data.user.permissions»'.includes('admin')){ |
||||
$('<a/>',{class:'button',href:'reload'}).text('Templates neu laden').appendTo($('nav')); |
||||
} |
||||
</script> |
||||
</nav> |
Loading…
Reference in new issue