added new state bits to MailingList, implemented form for editing those
This commit is contained in:
@@ -11,37 +11,54 @@
|
||||
«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="reply_to_list">
|
||||
Set list adddress in "ReplyTo" header
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="open">
|
||||
Allow non-members to send mails via list (Danger!)
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="forward_attached">
|
||||
Append original message as attachment
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="hide_receivers">
|
||||
Hide receivers (using BCC)
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="archive">
|
||||
Collect messages in public archive
|
||||
</label>
|
||||
<legend>Settings</legend>
|
||||
<fieldset>
|
||||
<legend>Forward permissions</legend>
|
||||
<p>
|
||||
Who is allowed to distribute mails via «data.list»?
|
||||
</p>
|
||||
✓ Oweners and Moderators
|
||||
<label>
|
||||
<input type="checkbox" name="open_for_subscribers">
|
||||
All subscribers
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="open_for_guests">
|
||||
Everyone (i.e. non members, DANGER!)
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Forward options</legend>
|
||||
<label>
|
||||
<input type="checkbox" name="forward_from">
|
||||
Forward using original sender
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="reply_to_list">
|
||||
Set list adddress in "ReplyTo" header
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="forward_attached">
|
||||
Append original message as attachment
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="hide_receivers">
|
||||
Hide receivers (using BCC)
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Archive options</legend>
|
||||
<label>
|
||||
<input type="checkbox" name="archive">
|
||||
Collect messages in public archive
|
||||
</label>
|
||||
</fieldset>
|
||||
<button type="submit">Save</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
«listmembers()»
|
||||
<script type="text/javascript">
|
||||
loadListDetail('«data.list»');
|
||||
</script>
|
||||
|
||||
@@ -74,12 +74,11 @@ function showListArchive(data){
|
||||
}
|
||||
|
||||
function showListDetail(data){
|
||||
if (data.forward_from) $('input[name="forward_from"]').prop('checked',true);
|
||||
if (data.forward_attached) $('input[name="forward_attached"]').prop('checked',true);
|
||||
if (data.hide_receivers) $('input[name="hide_receivers"]').prop('checked',true);
|
||||
if (data.reply_to_list) $('input[name="reply_to_list"]').prop('checked',true);
|
||||
if (data.open) $('input[name="open"]').prop('checked',true);
|
||||
if (data.archive) $('input[name="archive"]').prop('checked',true);
|
||||
var options = ['forward_from','forward_attached','hide_receivers','reply_to_list','open_for_guests','open_for_subscribers','archive'];
|
||||
options.forEach(function(option,index,array){
|
||||
console.log(option,'→',data[option]);
|
||||
if (data[option]) $('input[name="'+option+'"]').prop('checked',true);
|
||||
});
|
||||
}
|
||||
|
||||
function showListOfEditableLists(data){
|
||||
|
||||
Reference in New Issue
Block a user