summaryrefslogtreecommitdiff
path: root/templates/admin_boards.tpl
blob: 2cb1d08eafe78ba0004ad09b5c0c5956b7c0535b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{strip}
{form}
{*
	{legend legend="Home Message Board"}
		<input type="hidden" name="page" value="{$page}" />
		<div class="form-group">
			{formlabel label="Home BitBoards (main board)" for="homeBitBoards"}
			{forminput}
				<select name="homeBitBoards" id="homeBitBoards">
					{section name=ix loop=$boards}
						<option value="{$boards[ix].boards_id|escape}" {if $boards[ix].boards_id eq $home_bitboard}selected="selected"{/if}>{$boards[ix].title|escape|truncate:20:"...":true}</option>
					{sectionelse}
						<option>No records found</option>
					{/section}
				</select>
			{/forminput}
		</div>

		<div class="form-group submit">
			<input type="submit" class="btn btn-default" name="homeTabSubmit" value="Change preferences" />
		</div>
	{/legend}
*}
	{legend legend="List Settings"}
		<input type="hidden" name="page" value="{$page|default:''}" />
		{foreach from=$formBitBoardsLists key=item item=output}
			<div class="form-group">
				{formlabel label=$output.label for=$item}
				{forminput label="checkbox"}
					{html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item}
					{formhelp note=$output.note page=$output.page|default:''}
				{/forminput}
			</div>
		{/foreach}
	{/legend}

	{legend legend="Mailing List Synchronization"}
		<div class="form-group">
			{forminput}
		<h2>List to Board Sync</h2>
		<p>List to Board Sync allows a bitweaver board to mirror messages that are posted to a mailing list. A single, master email inbox entered below is used for *all* email list subscriptions. Then, configure individual boards to indicate which mailing list to which it is subscribed. The Board Sync cron script will import messages from the master email inbox.</p>
			{/forminput}
		</div>
		{foreach from=$formBitBoardsSync key=item item=output}
			<div class="form-group">
				{formlabel label=$output.label for=$item}
				{forminput}
					<input type="text" class="form-control" name="{$item}" value="{$gBitSystem->getConfig($item)}" id={$item}" />
					{formhelp note=$output.note page=$output.page|default:''}
				{/forminput}
			</div>
		{/foreach}

		<div class="form-group">
			{forminput}
		<h2>Board to List Sync</h2>
		<p>Board to List Sync is the opposite of the above. It allows a bitweaver board to send a message to mailing list. You must complete the "List to Board Sync" configuration above for this feature to work. Please see <a href="https://www.bitweaver.org/wiki/BoardsEmailListConfig">configuration requirements</a> prior to utilizing this feature.</p>
			{/forminput}
		</div>

		<div class="form-group">
			{forminput}
				
			{/forminput}
		</div>

		{foreach from=$formGroupEmailList key=item item=output}
			<div class="form-group">
				{formlabel label=$output.label for=$item}
				{forminput label="checkbox"}
					{html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item}
					{formhelp note=$output.note page=$output.page|default:''}
				{/forminput}
			</div>
		{/foreach}

		<div class="form-group">
			{formlabel label="Email Host" for='boards_email_host'}
			{forminput}
				<input type="text" class="form-control" name="boards_email_host" value="{$gBitSystem->getConfig('boards_email_host',$gBitSystem->getConfig('kernel_server_name'))}" />
				{formhelp note="Enter the host name to which all mailing lists will be hosted and addressed."}
			{/forminput}
		</div>
		<div class="form-group">
			{formlabel label="Administrator Email" for='boards_email_admin'}
			{forminput}
				<input type="text" class="form-control" name="boards_email_admin" value="{$gBitSystem->getConfig('boards_email_admin',$gBitSystem->getConfig('site_sender_email'))}" />
				{formhelp note="This is the email for the master administrator for all mailing lists."}
			{/forminput}
		</div>

		<div class="form-group">
			{formlabel label="Mailman bin Path" for='server_mailman_bin'}
			{forminput}
				<input type="text" class="form-control" name="server_mailman_bin" value="{$gBitSystem->getConfig('server_mailman_bin')|escape}" />
				{formhelp note="Path to mailman applications, typically: /usr/lib/mailman/bin/"}
				{if !$gBitSystem->getConfig('server_mailman_bin')}
					{formfeedback error="This setting is required to use mailing lists."}
				{/if}
			{/forminput}
		</div>
		<div class="form-group">
			{formlabel label="Mailman Command Path" for='mailman_cmd'}
			{forminput}
				<input type="text" class="form-control" name="server_mailman_cmd" value="{$gBitSystem->getConfig('server_mailman_cmd', '/usr/lib/mailman/mail/mailman')|escape}" />
				{formhelp note="Path to mailman binary, typically: /usr/lib/mailman/mail/mailman"}
			{/forminput}
		</div>
		<div class="form-group">
			{formlabel label="Newaliases command" for='server_newaliases_cmd'}
			{forminput}
				<input type="text" class="form-control" name="server_newaliases_cmd" value="{$gBitSystem->getConfig('server_newaliases_cmd', '/usr/bin/newaliases')|escape}" />
				{formhelp note="Path to the command to tell the mail server to reload the aliases file. For sendmail typically: /usr/bin/newaliases"}
			{/forminput}
		</div>
		<div class="form-group">
			{formlabel label="MTA Aliases Map" for='server_aliases_file'}
			{forminput}
				<input type="text" class="form-control" name="server_aliases_file" value="{$gBitSystem->getConfig('server_aliases_file', '/etc/aliases')|escape}" />
				{formhelp note="Path to the command to tell the mail server to reload the aliases file. For sendmail typically: /usr/bin/newaliases"}
			{/forminput}
		</div>
	{/legend}
	<div class="form-group submit">
		<input type="submit" class="btn btn-default" name="listTabSubmit" value="Change preferences" />
	</div>
{/form}
{/strip}