tiki-admin_html_page_content.tpl 3.39 KB
Newer Older
1
{title}{tr}Admin HTML Page Dynamic Zones{/tr}{/title}
ohertel's avatar
ohertel committed
2

changi67's avatar
changi67 committed
3
<h2>{tr}Page:{/tr} {$pageName}</h2>
4

5
<div class="t_navbar btn-group">
6
	{button href="tiki-admin_html_pages.php" class="btn btn-default" _icon_name="cog" _text="{tr}Admin HTML pages{/tr}"}
7
	{assign var='pname' value=$pageName|escape:"url"}
8 9
	{button href="tiki-admin_html_pages.php?pageName=$pname" class="btn btn-default" _icon_name="edit" _text="{tr}Edit this page{/tr}"}
	{button href="tiki-page.php?pageName=$pname" class="btn btn-default" _icon_name="view" _text="{tr}View page{/tr}"}
10
</div>
ohertel's avatar
ohertel committed
11 12

{if $zone}
13
	<h2>{tr}Edit zone{/tr}</h2>
14
	<form action="tiki-admin_html_page_content.php" method="post" class="form-horizontal">
15 16
		<input type="hidden" name="pageName" value="{$pageName|escape}">
		<input type="hidden" name="zone" value="{$zone|escape}">
17 18 19
		<div class="form-group">
			<label class="col-sm-3 control-label">{tr}Zone{/tr}</label>
			<div class="col-sm-7 col-sm-offset-1">
20 21 22 23
				<p>{$zone} Teste</p>
			</div>
		</div>
		<div class="form-group">
24 25
			<label class="col-sm-3 control-label">{tr}Content:{/tr}</label>
			<div class="col-sm-7 col-sm-offset-1">
26
				{if $type eq 'ta'}
27 28 29 30
					<textarea rows="5" cols="15" name="content" class="form-control">{$content|escape}</textarea>
				{else}
					<input type="text" name="content" value="{$content|escape}" class="form-control">
				{/if}
31 32 33
			</div>
		</div>
		<div class="form-group">
34 35 36 37 38
			<div class="col-sm-3"></div>
			<div class="col-sm-7 col-sm-offset-1 margin-bottom-sm">
				<input type="submit" class="btn btn-primary btn-sm" name="save" value="{tr}Save{/tr}">
			</div>
		</div>
39
	</form>
ohertel's avatar
ohertel committed
40 41 42
{/if}

<h2>{tr}Dynamic zones{/tr}</h2>
43

44
{include file='find.tpl'}
45

46
<form action="tiki-admin_html_page_content.php" method="post" class="form-horizontal">
47 48
	<input type="hidden" name="pageName" value="{$pageName|escape}">
	<input type="hidden" name="zone" value="{$zone|escape}">
49
	<table class="table table-striped table-hover">
50 51 52 53 54 55 56
		<tr>
			<th>
				<a href="tiki-admin_html_page_content.php?pageName={$pageName|escape:"url"}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'zone_desc'}zone_asc{else}zone_desc{/if}">{tr}zone{/tr}</a>
			</th>
			<th>
				<a href="tiki-admin_html_page_content.php?pageName={$pageName|escape:"url"}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'content_desc'}content_asc{else}content_desc{/if}">{tr}content{/tr}</a>
			</th>
57
			<th></th>
58
		</tr>
59

60
		{section name=user loop=$channels}
61
			<tr>
62 63
				<td class="text">{$channels[user].zone}</td>
				<td class="text">
64
					{if $channels[user].type eq 'ta'}
65
						<textarea name="{$channels[user].zone|escape}" cols="20" rows="4" class="form-control">{$channels[user].content|escape}</textarea>
66
					{else}
67
						<input type="text" name="{$channels[user].zone|escape}" value="{$channels[user].content|escape}" class="form-control">
68 69
					{/if}
				</td>
70
				<td class="action text-center">
71 72 73
					<a title=":{tr}Edit{/tr}" class="tips" href="tiki-admin_html_page_content.php?pageName={$pageName|escape:"url"}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;zone={$channels[user].zone}">
						{icon name='edit'}
					</a>
74 75 76 77 78
				</td>
			</tr>
		{/section}
	</table>

79 80 81 82 83
	<div class="form-group">
		<div class="col-sm-3"></div>
		<div class="col-sm-7 col-sm-offset-2">
			<input type="submit" class="btn btn-default btn-sm" name="editmany" value="{tr}Mass update{/tr}">
		</div>
84
	</div>
ohertel's avatar
ohertel committed
85 86
</form>

87
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}