update
This commit is contained in:
202
Admin/template/partial/Structure/Edit.tpl
Normal file
202
Admin/template/partial/Structure/Edit.tpl
Normal file
@@ -0,0 +1,202 @@
|
||||
<h1>Edytuj element</h1>
|
||||
<form action="{url label=editStructure id=$objElement->GetId()}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
<input type="hidden" name="id" value="{$objElement->GetId()}" />
|
||||
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
|
||||
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
|
||||
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
|
||||
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
|
||||
<input type="hidden" name="location" value="{$location}" />
|
||||
<input type="hidden" name="type" value="1" />
|
||||
{dropDownContainer title='Ogólne'}
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Nazwa elementu:</td>
|
||||
<td class="left">{formField name='elementName' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetElementName'}
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError" class="validate">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tytuł strony:</td>
|
||||
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetName'}
|
||||
{if isset($error.title)}<div style="color: red;" id="actionError" class="validate">{$error.title}</div>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Subtytuł strony:</td>
|
||||
<td class="left">{formField name='subname' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetSubname'}
|
||||
{if isset($error.subname)}<div style="color: red;" id="actionError" class="validate">{$error.subname}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Tytuł w przeglądarce:</td>
|
||||
<td class="left"><input class="input420" type="text" name="browser_title" id="browser_title" value="{$objElement->GetName()|escape}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Data publikacji:</td>
|
||||
<td class="left"><input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a> <input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Dostęp:</td>
|
||||
<td class="left">
|
||||
<select>
|
||||
<option>
|
||||
Wszyscy
|
||||
</option>
|
||||
<option>
|
||||
Administratorzy
|
||||
</option>
|
||||
<option>
|
||||
Redaktorzy
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>*}
|
||||
|
||||
<tr>
|
||||
<td>Typ:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<select name="type">
|
||||
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
|
||||
Menu Top
|
||||
</option>
|
||||
{*<option value="3" {if $objElement->GetType() == '3'}selected{/if}>
|
||||
Menu Left
|
||||
</option>*}
|
||||
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
|
||||
Pozostałe
|
||||
</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $lang != 'pl'}
|
||||
<tr>
|
||||
<td>Odpowiednik w wersji polskiej:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<select name="idStructurePl">
|
||||
<option value="0" >
|
||||
</option>
|
||||
{foreach from=$arrayStructurePl item=structureName key=idStructurePl}
|
||||
<option value="{$idStructurePl}" {if $slectedLang == $idStructurePl} selected{/if} >
|
||||
{$structureName}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td style="width:30%">Publikuj:</td>
|
||||
<td>
|
||||
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:30%">Publikuj w menu:</td>
|
||||
<td>
|
||||
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" {if $objElement->GetPublicationMenu()}checked{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title='Właściwości (SEO)' isClose=true}
|
||||
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Url</td>
|
||||
<td>
|
||||
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tytuł w menu:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()|escape}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Description:<br /></td>
|
||||
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()|escape}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Keywords:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()|escape}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Skrypt statystyk*:<br /></td>
|
||||
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->GetStatistic()}</textarea> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{assign var=EditImgList value=true}
|
||||
{assign var=TitleImgList value='Zdjecie na listy'}
|
||||
{if $objModule->Getid() == 3 || $objModule->Getid() == 4}
|
||||
{assign var=EditImgList value=false}
|
||||
{assign var=TitleImgList value='Zdjecie na listy'}
|
||||
{/if}
|
||||
{dropDownContainer title=$TitleImgList isClose=false isHidden=$EditImgList}
|
||||
|
||||
{*<div class="floatLeft">
|
||||
{if $objElement->GetPicture()}<img src="{$objElement->GetPictureUrl()}" />{/if}
|
||||
</div>*}
|
||||
<div class="floatLeft" style="margin-left: 10px;">
|
||||
{if $objElement->GetPicture()}<img src="{$objElement->GetPictureUrl()}" />{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="checkbox" name="deletePhoto" > Usuń obrazek
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{if $objModule->GetList() != 1}
|
||||
{if isset($zoneContent)}
|
||||
{$zoneContent}
|
||||
{/if}
|
||||
{/if}
|
||||
000
|
||||
{if isset($editStructureArticle)}
|
||||
{$editStructureArticle}
|
||||
{/if}
|
||||
111
|
||||
{if isset($editStructureProject)}
|
||||
{$editStructureProject}
|
||||
{/if}
|
||||
222
|
||||
{if isset($editStructure)}
|
||||
{$editStructure}
|
||||
{/if}
|
||||
333
|
||||
{if isset($editStructureFile)}
|
||||
{$editStructureFile}
|
||||
{/if}
|
||||
444
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="javascript:document.location.href = '{url label=current}'"/>
|
||||
|
||||
<input type="submit" value="Zapisz" name="EditStructureForm"/>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
Reference in New Issue
Block a user