summaryrefslogtreecommitdiff
path: root/templates/admin_columns.tpl
blob: 4d9bf28a1c0fed168d31b904d08e87d8bd7ac87c (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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{strip}

{form}
{formfeedback hash=$feedback}

	{jstabs}
		{jstab title="Theme Layout"}
			<p class="help">
				{tr}Here you can pick the layout of the site style. this will basically rearrange the positions of the three columns.
				<br />Please note that not all styles support this method of layout selection. Themes that support the style layout selection have a note of it in the description.
				<br />For more information on the layouts and how to tweak them, please visit the <a class="external" href="https://www.bitweaver.org/wiki/ThemeLayouts">ThemeLayouts</a>{/tr}
			</p>

			{legend legend="Theme Layout"}
				<div class="form-group">
					{formlabel label="Header Layout"}
					{forminput}
					<select name="layout-header">
						<option value="">{tr}Fixed Width{/tr}</option>
						<option value="-fluid" {if $gBitSystem->getConfig('layout-header')}selected="selected"{/if}>{tr}Fluid Full Width{/tr}</option>
					</select>
					{/forminput}
				</div>
				<div class="form-group">
					{formlabel label="Main Content Section Layout"}
					{forminput}
					<select name="layout-body">
						<option value="">{tr}Fixed Width{/tr}</option>
						<option value="-fluid" {if $gBitSystem->getConfig('layout-body')}selected="selected"{/if}>{tr}Fluid Full Width{/tr}</option>
					</select>
					{/forminput}
				</div>
				<div class="form-group">
					{formlabel label="Footer Layout"}
					{forminput}
					<select name="layout-footer">
						<option value="">{tr}Fixed Width{/tr}</option>
						<option value="-fluid" {if $gBitSystem->getConfig('layout-footer')}selected="selected"{/if}>{tr}Fluid Full Width{/tr}</option>
					</select>
					{/forminput}
				</div>
			{/legend}
		{/jstab}

		{jstab title="Columns"}
			<input type="hidden" name="page" value="{$page}" />
	    	
			{legend legend="Visible Columns and Areas"}
				{formhelp warning="If checked, the column is visible."}
				{foreach from=$activeColumns key=feature item=output}
					<div class="form-group">
						{formlabel label=$output.label for=$feature}
						{forminput}
							{html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature}
							{formhelp hash=$output}
						{/forminput}
					</div>
				{/foreach}
			{/legend}
		{/jstab}
		
		
		{jstab title="Package"}
			
			{legend legend="Column visibility in packages"}
				{formhelp warning="If checked, the column is invisible."}
				<table id="hidecolumnsinpackages" summary="{tr}List of visible columns in packages{/tr}">
					<thead>
						<tr>
							<th>{tr}Package{/tr}</th>
							{foreach from=$hideableAreas item=areaname key=area}
								<th class="width15p">{tr}{$areaname}{/tr}</th>
							{/foreach}
						</tr>
					</thead>
					<tbody>
						{foreach from=$packageColumns item=name key=package}
							<tr class="{cycle values="odd,even"}">
								<td>{$name}</td>
								{foreach from=$hideableAreas item=areaname key=area}
									<td>
										<input type="checkbox" name="hide[{$package}_hide_{$area}_col]" value="y" {if $gBitSystem->isFeatureActive("`$package`_hide_`$area`_col")}checked="checked"{/if} />
									</td>
								{/foreach}
							</tr>
						{/foreach}
					</tbody>
				</table>
			{/legend}
		{/jstab}


		{jstab title="Mode"}
			{legend legend="Column visibility based on display mode"}
				{formhelp warning="If checked, the column is invisible."}
				<table id="hidecolumnsinmodes" summary="{tr}List of visible columns based on display mode{/tr}">
					<thead>
						<tr>
							<th>{tr}Mode{/tr}</th>
							{foreach from=$hideableAreas item=areaname key=area}
								<th class="width15p">{tr}{$areaname}{/tr}</th>
							{/foreach}
						</tr>
					</thead>
					<tbody>
						{foreach from=$displayModes item=modename key=mode}
							<tr class="{cycle values="odd,even"}">
								<td><abbr title="{$modename}"><strong>{$mode|capitalize}</strong></abbe></td>
								{foreach from=$hideableAreas item=areaname key=area}
									<td>
										<input type="checkbox" name="hide[{$mode}_hide_{$area}_col]" value="y" {if $gBitSystem->isFeatureActive("`$mode`_hide_`$area`_col")}checked="checked"{/if} />
									</td>
								{/foreach}
							</tr>
						{/foreach}
					</tbody>
				</table>
			{/legend}
		{/jstab}

				
		{jstab title="Package/Mode"}
			{legend legend="Column visibility in Packages based on Display Mode"}
				{formhelp warning="If checked, the column is invisible."}
				<table id="hidecolumnsinpackages" summary="{tr}List of visible columns in packages based on display mode{/tr}">
					<thead>
						<tr>
							<th>{tr}Package{/tr}</th>
							{foreach from=$hideableAreas item=areaname key=area}
								<th colspan="5">{tr}{$areaname}{/tr}</th>
							{/foreach}
						</tr>
					</thead>
					<tbody>
						<tr>
							<td></td>
							{foreach from=$hideableAreas item=areaname key=area name=areas}
								{foreach from=$displayModes item=modename key=mode name=modes}
									<th><abbr title="{$mode}">{$mode|replace:"display":"Di"|replace:"list":"Li"|replace:"edit":"Ed"|replace:"upload":"Up"|replace:"admin":"Ad"}</abbr></th>
								{/foreach}
							{/foreach}
						</tr>
		
						{foreach from=$packageColumns item=name key=package name=packages}
							<tr class="{cycle values='odd,even'}">
								<td>{$name}</td>
								{foreach from=$hideableAreas item=areaname key=area name=areas}
									{foreach from=$displayModes item=modename key=mode name=modes}
										<td class="{if $smarty.foreach.modes.last && !$smarty.foreach.areas.last}splitstyle{/if}">
											<input type="checkbox" name="hide[{$package}_{$mode}_hide_{$area}_col]" value="y" {if $gBitSystem->isFeatureActive("`$package`_`$mode`_hide_`$area`_col")}checked="checked"{/if} />
										</td>
									{/foreach}
								{/foreach}
							</tr>
						{/foreach}
					</tbody>
				</table>
				
				<dl>
					{foreach from=$displayModes item=modename key=mode name=modes}
						<dt><abbr title="{$mode}">{$mode|replace:"display":"Di"|replace:"list":"Li"|replace:"edit":"Ed"|replace:"upload":"Up"|replace:"admin":"Ad"}</abbr></dt>
						<dd><strong>{$mode}</strong></dd>
						<dd>{$modename}</dd>
					{/foreach}
				</dl>
				
			{/legend}
		{/jstab}
		
	{/jstabs}
	
	<div class="form-group submit">
		<input type="submit" class="btn btn-default" name="reset_columns" value="{tr}Reset column settings{/tr}" />
		<input type="submit" class="btn btn-default" name="column_control" value="{tr}Save settings{/tr}" />
	</div>

{/form}

{/strip}