tiki-admin_calendars.tpl 19.7 KB
Newer Older
1
{if !empty($calendarId)}
2
	{title help=Calendar url="tiki-admin_calendars.php?calendarId=$calendarId" admpage="calendar"}{tr}Admin Calendars{/tr}{/title}
sylvieg's avatar
sylvieg committed
3
{else}
4
	{title help=Calendar url="tiki-admin_calendars.php" admpage="calendar"}{tr}Admin Calendars{/tr}{/title}
sylvieg's avatar
sylvieg committed
5
{/if}
6

7
<div class="t_navbar mb-4">
sylvieg's avatar
sylvieg committed
8
	{if !empty($calendarId) && $tiki_p_admin_calendar eq 'y'}
9
		<a role="link" href="tiki-admin_calendars.php?cookietab=2" class="btn btn-link">
10 11
			{icon name="create"} {tr}Create Calendar{/tr}
		</a>
12
	{/if}
13
	<a role="link" href="tiki-calendar.php" class="btn btn-link">
14 15
		{icon name="view"} {tr}View Calendars{/tr}
	</a>
sylvieg's avatar
sylvieg committed
16
	{if $tiki_p_admin_calendar eq 'y'}
17
		<a role="link" href="tiki-calendar_import.php" class="btn btn-link">
18 19
			{icon name="import"} {tr}Import{/tr}
		</a>
sylvieg's avatar
sylvieg committed
20
	{/if}
sylvieg's avatar
sylvieg committed
21
</div>
22

23
{tabset name='tabs_admin_calendars'}
24 25
	{tab name="{tr}Calendars{/tr}"}
		<h2>{tr}Calendars{/tr}</h2>
26

27
		{include file='find.tpl' find_in="<ul><li>{tr}Calendar name{/tr}</li></ul>"}
28
		<div {if $js}class="table-responsive"{/if}>
29
		<table class="table table-striped table-hover">
30 31
			<tr>
				<th>
32 33 34
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'calendarId_desc'}calendarId_asc{else}calendarId_desc{/if}">
						{tr}ID{/tr}
					</a>
35 36
				</th>
				<th>
37 38 39
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">
						{tr}Name{/tr}
					</a>
40 41
				</th>
				<th>
42
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'customlocations_desc'}customlocations_asc{else}customlocations_desc{/if}">
43
						{tr}Location{/tr}
44
					</a>
45 46
				</th>
				<th>
47 48 49
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'customparticipants_desc'}customparticipants_asc{else}customparticipants_desc{/if}">
						{tr}Participants{/tr}
					</a>
50
				</th>
51
{* Table is too wide, causing problems with the action popup, so eliminating some columns
52
				<th>
53
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'customcategories_desc'}customcategories_asc{else}customcategories_desc{/if}">
54
						{tr}Classification{/tr}
55
					</a>
56
				</th>
57
*}
58
				<th>
59
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'customlanguages_desc'}customlanguages_asc{else}customlanguages_desc{/if}">
60
						{tr}Language{/tr}
61
					</a>
62
				</th>
63
{*
64
				<th>{tr}URL{/tr}</th>
65
				<th>
66
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'custompriorities_desc'}custompriorities_asc{else}custompriorities_desc{/if}">
67
						{tr}Priority{/tr}
68
					</a>
69 70
				</th>
				<th>
71 72 73
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'customsubscription_desc'}customsubscription_asc{else}customsubscription_desc{/if}">
						{tr}Subscription{/tr}
					</a>
74
				</th>
75
*}
76
				<th>
77
					<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'personal_desc'}personal_asc{else}personal_desc{/if}">
78
						{tr}Personal{/tr}
79
					</a>
80
				</th>
81
				<th></th>
82 83 84
			</tr>

			{foreach key=id item=cal from=$calendars}
85
				<tr>
86 87 88
					<td class="id">{$id}</td>
					<td class="text">
						<a class="tablename" href="tiki-admin_calendars.php?calendarId={$id}&cookietab=2" title="{tr}Edit{/tr}">{$cal.name|escape}</a>
89
						{if $cal.show_calname eq 'y'} {icon name="list-alt" class="tips" title="{tr}Name{/tr}:{tr}Field will show in popup{/tr}"}{/if}
90 91
					</td>
					<td class="text">
92
						{$cal.customlocations|yesno}{if $cal.show_location eq 'y'}{icon name="list-alt" class="tips" title="{tr}Custom location{/tr}:{tr}Field will show in popup{/tr}"}{/if}
93 94
					</td>
					<td class="text">
95
						{$cal.customparticipants|yesno}{if $cal.show_participants eq 'y'}{icon name="list-alt" class="tips" title="{tr}Custom participants{/tr}:{tr}Field will show in popup{/tr}"}{/if}
96
					</td>
97
{*
98
					<td class="text">
99
						{$cal.customcategories|yesno}{if $cal.show_category eq 'y'}{icon name="list-alt" class="tips" title="{tr}Custom categories{/tr}:{tr}Field will show in popup{/tr}"}{/if}
100
					</td>
101
*}
102
					<td class="text">
103
						{$cal.customlanguages|yesno}{if $cal.show_language eq 'y'}{icon name="list-alt" class="tips" title="{tr}Custom languages{/tr}:{tr}Field will show in popup{/tr}"}{/if}
104
					</td>
105
{*
106
					<td class="text">
107
						{$cal.customurl|yesno}{if $cal.show_url eq 'y'}{icon name="list-alt" class="tips" title="{tr}Custom URL{/tr}:{tr}Field will show in popup{/tr}"}{/if}
108 109 110
					</td>
					<td class="text">{$cal.custompriorities|yesno}</td>
					<td class="text">{$cal.customsubscription|yesno}</td>
111
*}
112 113
					<td class="text">{$cal.personal|yesno}</td>
					<td class="action">
114
						{actions}
115
							{strip}
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
								<action>
									<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;calendarId={$id}&cookietab=2">
										{icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"}
									</a>
								</action>
								<action>
									<a href="tiki-calendar.php?calIds[]={$id}">
										{icon name='view' _menu_text='y' _menu_icon='y' alt="{tr}View{/tr}"}
									</a>
								</action>
								<action>
									<a href="tiki-calendar_edit_item.php?calendarId={$id}">
										{icon name='create' _menu_text='y' _menu_icon='y' alt="{tr}Add event{/tr}"}
									</a>
								</action>
								<action>
									{permission_link mode=text type=calendar id=$id title=$cal.name}
								</action>
								<action>
lindonb's avatar
lindonb committed
135 136 137
									<a href="tiki-admin_calendars.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;drop={$id}&amp;calendarId={$id}"
										onclick="confirmSimple(event, '{tr}Delete calendar?{/tr}', '{ticket mode=get}')"
									>
138 139 140
										{icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Delete{/tr}"}
									</a>
								</action>
141
							{/strip}
142
						{/actions}
143
					</td>
144
				</tr>
145 146 147 148
			{foreachelse}
				{norecords _colspan=12}
			{/foreach}
		</table>
149
		</div>
150
		{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links}
151
	{/tab}
152

153 154 155 156 157 158 159
	{if $calendarId gt 0}
		{assign var="edtab" value="{tr}Edit Calendar{/tr}"}
	{else}
		{assign var="edtab" value="{tr}Create Calendar{/tr}"}
	{/if}
	{tab name=$edtab}
		<h2>{$edtab}</h2>
160

chibaguy's avatar
chibaguy committed
161
		<form action="tiki-admin_calendars.php" method="post" class="form-horizontal" role="form">
162
			{ticket}
163
			<fieldset>
164
			<input type="hidden" name="calendarId" value="{$calendarId|escape}">
165
			{if $tiki_p_modify_object_categories eq 'y'}
166
				<div class="form-group row">
167 168 169 170
					<div class="col-sm-12">
						{include file='categorize.tpl'}
					</div>
				</div>
chibaguy's avatar
chibaguy committed
171
			{/if}
172
			<div class="form-group row">
173
				<label class="col-sm-3 col-form-label" for="calendarName">
174 175
					{tr}Name{/tr}
				</label>
176
				<div class="col-sm-6">
chibaguy's avatar
chibaguy committed
177
					<input type="text" class="form-control" name="name" id="calendarName" value="{$name|escape}">
178 179
				</div>
				<div class="checkbox col-sm-3">
180 181 182 183
					<label for="showCalnamePopup">
						<input type="checkbox" name="show[calname]" id="showCalnamePopup" value="on"{if $show_calname eq 'y'} checked="checked"{/if}>
						{tr}Show in popup box{/tr}
					</label>
184 185
				</div>
			</div>
186
			<div class="form-group row">
187
				<label class="col-sm-3 col-form-label" for="calendarDescription">
188 189
					{tr}Description{/tr}
				</label>
190
				<div class="col-sm-6">
191
					<textarea name="description" rows="5" wrap="virtual" class="form-control" id="calendarDescription">
192 193
						{$description|escape}
					</textarea>
194 195
				</div>
				<div class="checkbox col-sm-3">
196
					<label for="showCalDescriptionPopup" class="col-form-label">
197
						<input type="checkbox" id="showCalDescriptionPopup" name="show[description]" value="on"{if $show_description eq 'y'} checked="checked"{/if}>
198 199
						{tr}Show in popup box{/tr}
					</label>
chibaguy's avatar
chibaguy committed
200
				</div>
201
			</div>
202
			<div class="form-group row">
203
				<label class="col-sm-3 col-form-label" for="customlocations">
204
					{tr}Custom location{/tr}
205
				</label>
206
				<div class="col-sm-2">
chibaguy's avatar
chibaguy committed
207
					<select name="customlocations" id="customlocations" class="form-control">
208
						<option value='y' {if $customlocations eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
chibaguy's avatar
chibaguy committed
209 210
						<option value='n' {if $customlocations eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
211 212
				</div>
				<div class="checkbox col-sm-3">
213 214 215 216
					<label>
						<input type="checkbox" name="show[location]" id="showCustomLocationsPopup" value="on"{if $show_location eq 'y'} checked="checked"{/if}>
						{tr}Show in popup box{/tr}
					</label>
217 218
				</div>
			</div>
219
			<div class="form-group row">
220
				<label class="col-sm-3 col-form-label" for="customparticipants">
221
					{tr}Custom participants{/tr}
222
				</label>
223
				<div class="col-sm-2">
224
					<select name="customparticipants" id="customparticipants" class="form-control">
chibaguy's avatar
chibaguy committed
225 226 227
						<option value='y' {if $customparticipants eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
						<option value='n' {if $customparticipants eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
228 229
				</div>
				<div class="checkbox col-sm-3">
230 231 232 233
					<label>
						<input type="checkbox" name="show[participants]" value="on"{if $show_participants eq 'y'} checked="checked"{/if}>
						{tr}Show in popup box{/tr}
					</label>
234 235
				</div>
			</div>
236
			<div class="form-group row">
237
				<label class="col-sm-3 col-form-label" for="customcategories">
238
					{tr}Custom classification{/tr}
239
				</label>
240
				<div class="col-sm-2">
chibaguy's avatar
chibaguy committed
241 242 243 244
					<select name="customcategories" id="customcategories" class="form-control">
						<option value='y' {if $customcategories eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
						<option value='n' {if $customcategories eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
245 246
				</div>
				<div class="checkbox col-sm-3">
247 248 249 250
					<label>
						<input type="checkbox" name="show[category]" value="on"{if $show_category eq 'y'} checked="checked"{/if}>
						{tr}Show in popup box{/tr}
					</label>
251 252
				</div>
			</div>
253
			<div class="form-group row">
254
				<label class="col-sm-3 col-form-label" for="customlanguages">
255
					{tr}Custom language{/tr}
256
				</label>
257
				<div class="col-sm-2">
chibaguy's avatar
chibaguy committed
258 259 260 261
					<select name="customlanguages" id="customlanguages" class="form-control">
						<option value='y' {if $customlanguages eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
						<option value='n' {if $customlanguages eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
262 263
				</div>
				<div class="checkbox col-sm-3">
264 265 266 267
					<label for="showlanguagepopup">
						<input type="checkbox" name="show[language]" id="showlanguagepopup" value="on"{if $show_language eq 'y'} checked="checked"{/if}>
						{tr}Show in popup box{/tr}
					</label>
268 269
				</div>
			</div>
270
			<div class="form-group row">
271
				<label class="col-sm-3 col-form-label" for="customurl">
272 273
					{tr}Custom URL{/tr}
				</label>
274
				<div class="col-sm-2">
chibaguy's avatar
chibaguy committed
275 276 277 278
					<select name="options[customurl]" id="customurl" class="form-control">
						<option value='y' {if $customurl eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
						<option value='n' {if $customurl eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
279 280
				</div>
				<div class="checkbox col-sm-3">
281
					<label for="showurlpopup" class="col-form-label">
282 283 284
						<input type="checkbox" id="showurlpopup" name="show[url]" value="on"{if $show_url eq 'y'} checked="checked"{/if}>
						{tr}Show in popup box{/tr}
					</label>
285 286 287
				</div>
			</div>
			{if $prefs.feature_newsletters eq 'y'}
288
				<div class="form-group row">
289
					<label class="col-sm-3 col-form-label" for="customsubscription">
290
						{tr}Custom subscription list{/tr}
291
					</label>
292 293
					<div class="col-sm-2">
						<select name="customsubscription" id="customsubscription" class="form-control">
chibaguy's avatar
chibaguy committed
294 295
							<option value='y' {if $customsubscription eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
							<option value='n' {if $customsubscription eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
296
						</select>
297 298
					</div>
				</div>
chibaguy's avatar
chibaguy committed
299
			{/if}
300
			<div class="form-group row">
301
				<label class="col-sm-3 col-form-label" for="custompriorities">
302
					{tr}Custom priority{/tr}
303
				</label>
304
				<div class="col-sm-2">
chibaguy's avatar
chibaguy committed
305 306 307 308
					<select name="custompriorities" id="custompriorities" class="form-control">
						<option value='y' {if $custompriorities eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
						<option value='n' {if $custompriorities eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
309 310
				</div>
			</div>
311
			<div class="form-group row">
312
				<label class="col-sm-3 col-form-label" for="personal">
313 314
					{tr}Personal Calendar{/tr}
				</label>
315
				<div class="col-sm-2">
chibaguy's avatar
chibaguy committed
316 317 318 319
					<select name="personal" id="personal" class="form-control">
						<option value='y' {if $personal eq 'y'}selected="selected"{/if}>{tr}Yes{/tr}</option>
						<option value='n' {if $personal eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
320 321
				</div>
			</div>
322
			<div class="form-group row">
323
				<label class="col-sm-3 col-form-label" for="customcategories">
324 325
					{tr}Start of day{/tr}
				</label>
326
				<div class="col-sm-2">
chibaguy's avatar
chibaguy committed
327
					{html_select_time prefix="startday_" time=$info.startday display_minutes=false display_seconds=false use_24_hours=$use_24hr_clock}
328 329
				</div>
			</div>
330
			<div class="form-group row">
331
				<label class="col-sm-3 col-form-label" for="customcategories">
332 333
					{tr}End of day{/tr}
				</label>
334
				<div class="col-sm-9">
chibaguy's avatar
chibaguy committed
335
					{html_select_time prefix="endday_" time=$info.endday display_minutes=false display_seconds=false use_24_hours=$use_24hr_clock}
336 337
				</div>
			</div>
338
			<div class="form-group row">
339
				<label class="col-sm-3 col-form-label" for="customcategories">
340 341
					{tr}Days to display{/tr}
				</label>
342
				<div class="col-sm-9">
chibaguy's avatar
chibaguy committed
343
					{section name="viewdays" start=0 loop=7}
344
					<div>
345
						<label class="col-form-label"><input type="checkbox" name="viewdays[]" value="{$smarty.section.viewdays.index}" {if !empty($info.viewdays) && in_array($smarty.section.viewdays.index,$info.viewdays)} checked="checked" {/if}>
346 347
							{$days_names[$smarty.section.viewdays.index]}
						</label>
chibaguy's avatar
chibaguy committed
348
					</div>
349 350 351
					{/section}
				</div>
			</div>
352
			<div class="form-group row">
353
				<label class="col-sm-3 col-form-label" for="customcategories">
354
					{tr}Standard color{/tr}
355 356
				</label>
				<div class="col-sm-2">
357
					<select class="form-control" id="customcategories" name="options[customcolors]" onChange="javascript:document.getElementById('fgColorField').disabled=(this.options[this.selectedIndex].value != 0);document.getElementById('bgColorField').disabled=(this.options[this.selectedIndex].value != 0);">
chibaguy's avatar
chibaguy committed
358 359 360 361 362 363 364 365
						<option value="" />
						<option value="008400-99fa99" style="background-color:#99fa99;color:#008400" {if ($customColors) eq '008400-99fa99'}selected{/if}>{tr}Green{/tr}</option>
						<option value="3333ff-aaccff" style="background-color:#aaccff;color:#3333ff" {if ($customColors) eq '3333ff-aaccff'}selected{/if}>{tr}Blue{/tr}</option>
						<option value="996699-c2a6d2" style="background-color:#e0cae5;color:#996699" {if ($customColors) eq '996699-c2a6d2'}selected{/if}>{tr}Purple{/tr}</option>
						<option value="cc0000-ff9966" style="background-color:#ff9966;color:#cc0000" {if ($customColors) eq 'cc0000-ff9966'}selected{/if}>{tr}Red{/tr}</option>
						<option value="996600-ffcc66" style="background-color:#ffcc66;color:#996600" {if ($customColors) eq '996600-ffcc66'}selected{/if}>{tr}Orange{/tr}</option>
						<option value="666600-ffff00" style="background-color:#ffff00;color:#666600" {if ($customColors) eq '666600-ffff00'}selected{/if}>{tr}Yellow{/tr}</option>
					</select>
366 367
				</div>
			</div>
368
			<div class="form-group row">
369
				<label class="col-sm-3 col-form-label" for="fgColorField">
370 371
					{tr}Custom foreground color{/tr}
				</label>
372
				<div class="col-sm-9">
373
					<input id="fgColorField" type="text" name="options[customfgcolor]" value="{$customfgcolor}" size="6"> <i>{tr}Example:{/tr} FFFFFF</i>
374 375
				</div>
			</div>
376
			<div class="form-group row">
377
				<label class="col-sm-3 col-form-label" for="bgColorField">
378 379
					{tr}Custom background color{/tr}
				</label>
380
				<div class="col-sm-9">
381
					<input id="bgColorField" type="text" name="options[custombgcolor]" value="{$custombgcolor}" size="6"> <i>{tr}Example:{/tr} 000000</i>
382 383
				</div>
			</div>
384
			<div class="form-group row">
385
				<label class="col-sm-3 col-form-label" for="customstatus">
386 387 388
					{tr}Status{/tr}
				</label>
				<div class="col-sm-2">
389
					<select name="customstatus" id="customstatus" class="form-control">
chibaguy's avatar
chibaguy committed
390 391 392
						<option value='y' {if $info.customstatus ne 'n'}selected="selected"{/if}>{tr}Yes{/tr}</option>
						<option value='n' {if $info.customstatus eq 'n'}selected="selected"{/if}>{tr}No{/tr}</option>
					</select>
393 394
				</div>
			</div>
395
			<div class="form-group row">
396
				<label class="col-sm-3 col-form-label">
397 398
					{tr}Default event status:{/tr}
				</label>
399
				<div class="col-sm-3">
lindonb's avatar
lindonb committed
400
					{html_options class="form-control" name='options[defaulteventstatus]' options=$eventstatus selected=$defaulteventstatus}
401 402
				</div>
			</div>
403
			<div class="form-group row">
404
				<div class="checkbox col-sm-4 col-sm-offset-3">
405
					<label class="col-form-label">
406 407 408
						<input type="checkbox" name="show[status]" value="on"{if $info.show_status eq 'y'} checked="checked"{/if}>
						{tr}Show in popup view{/tr}
					</label>
409 410
				</div>
			</div>
411
			<div class="form-group row">
412
				<div class="checkbox col-sm-4 col-sm-offset-3">
413
					<label class="col-form-label">
414 415 416
						<input type="checkbox" name="show[status_calview]" value="on"{if $info.show_status_calview ne 'n'} checked="checked"{/if}>
						{tr}Show in calendar view{/tr}
					</label>
417 418 419
				</div>
			</div>
			{if $prefs.feature_groupalert eq 'y'}
420
				<div class="form-group row">
421
					<label class="col-sm-3 col-form-label" for="groupforAlert">
422 423 424 425
						{tr}Group of users alerted when calendar event is modified{/tr}
					</label>
					<div class="col-sm-2">
						<select id="groupforAlert" name="groupforAlert" class="form-control">
426 427 428 429 430 431 432
							<option value="">&nbsp;</option>
							{foreach key=k item=i from=$groupforAlertList}
								<option value="{$k|escape}" {$i}>{$k|escape}</option>
							{/foreach}
						</select>
					</div>
				</div>
433
				<div class="form-group row">
434
					<label class="col-sm-3 col-form-label" for="showeachuser">
435 436 437
						{tr}Allows each user to be selected for small groups{/tr}
					</label>
					<div class="col-sm-2">
438
						<input type="checkbox" name="showeachuser" id="showeachuser" {if $showeachuser eq 'y'}checked="checked"{/if}>
439 440 441
					</div>
				</div>
			{/if}
442
			<div class="form-group row">
443
				<label class="col-sm-3 col-form-label" for="allday">
444
					{tr}Default length of events is all day{/tr}
445 446
				</label>
				<div class="col-sm-9">
447
					<input type="checkbox" id="allday" name="allday"{if $info.allday eq 'y'} checked="checked"{/if}>
448 449
				</div>
			</div>
450
			<div class="form-group row">
451
				<label class="col-sm-3 col-form-label" for="nameoneachday">
452 453 454
					{tr}Event name on each day in calendar view{/tr}
				</label>
				<div class="col-sm-9">
455 456 457
					<input type="checkbox" name="nameoneachday"{if $info.nameoneachday eq 'y'} checked="checked"{/if}>
				</div>
			</div>
458
			<div class="form-group row">
459
				<input type="submit" class="btn btn-secondary col-sm-offset-3" \name="save" value="{tr}Save{/tr}">
chibaguy's avatar
chibaguy committed
460
			</div>
461 462 463
			</fieldset>
			<fieldset>
				<legend>Delete old events</legend>
464
				<div class="form-group row">
465
					<label class="col-sm-3 col-form-label" for="days">
466 467
						{tr}Delete events older than:{/tr}
					</label>
lindonb's avatar
lindonb committed
468
					<div class="col-sm-2 input-group">
469
						<input type="text" name="days" id="days" value="0" class="form-control">
470 471 472 473 474
						<div class="input-group-append">
							<span class="input-group-text">
								{tr}days{/tr}
							</span>
						</div>
lindonb's avatar
lindonb committed
475
					</div>
476
				</div>
477
				<div class="form-group row">
lindonb's avatar
lindonb committed
478 479 480 481 482 483 484 485
					<input
						type="submit"
						class="btn btn-warning col-sm-offset-3"
						name="clean"
						value="{tr}Delete{/tr}"
						onclick="confirmSimple(event, '{tr}Delete old events?{/tr}', '{ticket mode=get}')"
					>
				</div>
486
			</fieldset>
487 488
		</form>
	{/tab}
489
{/tabset}