Ordermanager/views/smarty/admin/Requirements/d3ordermanager_requ_otherjob.tpl

45 lines
3.0 KiB
Smarty
Raw Normal View History

2024-01-22 14:06:08 +01:00
[{block name="ordermanager_admin_requ_otherjob"}]
<dl class="[{$blActionRestriction}]">
[{include file="@d3ordermanager/admin/inc/d3ordermanager_activeswitch.tpl" oActionRequ=$oRequ blActionRestriction=$blActionRestriction readonly=$readonly}]
<dd>
[{if $oView->isEditMode()}]
[{block name="ordermanager_admin_requ_otherjob_editor"}]
<label for="RequOtherJobName">[{oxmultilang ident="D3_ORDERMANAGER_REQU_OTHERJOB_NAME"}]</label>
<SELECT class="editinput" name="value[sOtherJob_ID]" id="RequOtherJobName" [{$blActionRestriction}] [{$readonly}]>
[{assign var="blUnknownJobId" value=true}]
[{foreach from=$oView->getJobList() item="oJob"}]
[{if $oJob->getId() == $edit->getValue('sOtherJob_ID')}]
[{assign var="blSelected" value=true}]
[{assign var="blUnknownJobId" value=false}]
[{else}]
[{assign var="blSelected" value=false}]
[{/if}]
<option value="[{$oJob->getId()}]" [{if $blSelected}]selected[{/if}]>[{$oJob->getFieldData('oxtitle')}]</option>
[{/foreach}]
[{if $edit->getValue('sOtherJob_ID') && $blUnknownJobId}]
<option value="[{$edit->getValue('sOtherJob_ID')}]" selected>[{oxmultilang ident="D3_ORDERMANAGER_REQU_OTHERJOB_UNKNOWNJOBID"}] "[{$edit->getValue('sOtherJob_ID')}]"</option>
[{/if}]
</SELECT>
<label for="RequOtherJobType" style="position: absolute; left: -2000px">[{oxmultilang ident="D3_ORDERMANAGER_REQU_OTHERJOB"}]</label>
<SELECT class="editinput" name="value[sOtherJob_Type]" id="RequOtherJobType" [{$blActionRestriction}] [{$readonly}]>
[{foreach from=$oRequ->getTypeList() key="type" item="translation"}]
<option value="[{$type}]" [{if $type == $edit->getValue('sOtherJob_Type')}]selected[{/if}]>[{oxmultilang ident=$translation}]</option>
[{/foreach}]
</SELECT>
[{/block}]
[{else}]
[{block name="ordermanager_admin_requ_otherjob_viewer"}]
[{oxmultilang ident="D3_ORDERMANAGER_REQU_OTHERJOB_NAME"}] "[{$oView->getManagerTitle($edit->getValue('sOtherJob_ID'))}]"&nbsp;
[{foreach from=$oRequ->getTypeList() key="type" item="translation"}]
[{if $edit->getValue('sOtherJob_Type') == $type}]
[{oxmultilang ident=$translation}]
[{/if}]
[{/foreach}]
[{/block}]
[{/if}]
[{oxinputhelp ident="D3_ORDERMANAGER_REQU_OTHERJOB_DESC"}]
</dd>
<div class="spacer"></div>
</dl>
[{/block}]