{title url="tiki-edit_programmed_content.php?contentId=$contentId"}{tr}Program dynamic content for block:{/tr} {$contentId}{/title}
{button href="?contentId=$contentId" class="btn btn-primary" _text="{tr}Create New Block{/tr}"} {button href="tiki-list_contents.php" class="btn btn-primary" _text="{tr}Return to block listing{/tr}"}

{tr}Block description: {/tr}{$description}

{if $data} {tr}Edit{/tr} {else} {tr}Create{/tr} {/if} {tr}content{/tr}

{if $pId} {tr}You are editing block:{/tr} {$pId}
{/if}
{html_select_date time=$publishDate end_year="+1" field_order=$prefs.display_field_order} {tr}at{/tr} {html_select_time time=$publishDate display_seconds=false use_24_hours=$use_24hr_clock}
{jq} $('.type-selector').change( function( e ) { $('.type-cond').hide(); var val = $('.type-selector').val(); $('.for-' + val).show(); } ).trigger('change'); {/jq}

{tr}Versions{/tr}

{if $listpages or ($find ne '')} {include file='find.tpl'} {/if}
{* table-responsive class cuts off css drop-down menus *} {section name=changes loop=$listpages} {if $actual eq $listpages[changes].publishDate} {assign var=class value=third} {else} {if $actual > $listpages[changes].publishDate} {assign var=class value=odd} {else} {assign var=class value=even} {/if} {/if} {sectionelse} {norecords _colspan=4} {/section}
{self_link _sort_arg='sort_mode' _sort_field='pId'}{tr}Id{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='publishDate'}{tr}Publishing Date{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='data'}{tr}Data{/tr}{/self_link}
 {$listpages[changes].pId}   {$listpages[changes].publishDate|tiki_short_datetime}   {$listpages[changes].data|escape:'html'|nl2br}  {actions} {strip} {icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/strip} {/actions}
{pagination_links cant=$cant step=$prefs.maxRecords offset=$offset}{/pagination_links}