<div class='page-header'>
	<h1><tmpl_var name="list_head_txt"></h1>
</div>
<p><tmpl_var name="list_desc_txt"></p>
<legend>Digest</legend>

<div class="form-group" title="{tmpl_var name='digestsub_desc_txt'}">
	<label for="digestsub" class="col-sm-3 control-label">{tmpl_var name='digestsub_txt'}</label>
	<div class="col-sm-9">
		{tmpl_var name='digestsub'}
	</div>
</div>
<div class="form-group digestCapability" title="{tmpl_var name='digestinterval_desc_txt'}">
	<label class="col-sm-3 control-label">{tmpl_var name='digestinterval_txt'}</label>
	<div class="col-sm-9">
		<input type="number" type="text" name="digestinterval" id="digestinterval" value="{tmpl_var name='digestinterval'}" class="form-control" />
	</div>
</div>
<div class="form-group digestCapability" title="{tmpl_var name='digestmaxmails_desc_txt'}">
	<label class="col-sm-3 control-label">{tmpl_var name='digestmaxmails_txt'}</label>
	<div class="col-sm-9">
		<input type="number" type="text" name="digestmaxmails" id="digestmaxmails" value="{tmpl_var name='digestmaxmails'}" class="form-control" />
	</div>
</div>
<div class="form-group digestCapability" title="{tmpl_var name='digesttext_desc_txt'}">
	<label for="digesttext" class="col-sm-3 control-label">{tmpl_var name='digesttext_txt'}</label>
	<div class="col-sm-9">
		{tmpl_var name='digesttext'}
	</div>
</div>

<input type="hidden" name="id" value="{tmpl_var name='id'}">

<div class="clear"><div class="right">
		<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="mail/mail_mailinglist_edit.php">{tmpl_var name='btn_save_txt'}</button>
		<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="mail/mail_mailinglist_list.php">{tmpl_var name='btn_cancel_txt'}</button>
</div>

<script language="JavaScript" type="text/javascript">
	$('#digestsub').change(digestStatus);
	digestStatus();

	function digestStatus() {
		if($('#digestsub').is(':checked'))
			$('.digestCapability:hidden').show();
		else $('.digestCapability:visible').hide();
	}
</script>
