Skip to content
Snippets Groups Projects
Commit 6c64b407 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixing some namespace errors

parent 1a483b24
No related branches found
No related tags found
No related merge requests found
......@@ -43,5 +43,4 @@ class EditOnClickViewHelper extends AbstractViewHelper {
public function render($table, $uid, $new = FALSE) {
return BackendUtility::editOnClick('&edit[' . $table . '][' . $uid . ']=' . ($new ? 'new' : 'edit'), '', -1);
}
}
\ No newline at end of file
......@@ -5,9 +5,11 @@
includeRequireJsModules="{
0: 'TYPO3/CMS/Backend/AjaxDataHandler',
1: '{f:if(condition: \'{typo3Version} < 8000000 \', then: \'TYPO3/CMS/Backend/ClickMenu\', else: \'TYPO3/CMS/Backend/ContextMenu\')}',
2: 'TYPO3/CMS/Backend/Tooltip'}">
2: 'TYPO3/CMS/Backend/Tooltip'}"
includeJsFiles="{
0: '{f:uri.resource(path: \'Scripts/Backend.js\')}'
}">
<sg:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Backend.js')}" />
<div class="module" data-module-id="" data-module-name="">
<div class="module-docheader t3js-module-docheader">
<div class="module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation">
......
<div class="btn-toolbar" role="toolbar" aria-label="">
<f:for each="{buttons}" as="buttonGroup">
<f:if condition="{buttonGroup -> f:count()} > 1">
<f:then>
<div class="btn-group" role="group" aria-label="">
<f:for each="{buttonGroup}" as="button">
{button -> f:format.raw()}
</f:for>
</div>
</f:then>
<f:else>
{buttonGroup.0 -> f:format.raw()}
</f:else>
</f:if>
</f:for>
</div>
{namespace sg=SGalinski\SgJobs\ViewHelpers}
<div class="form-group">
<a href="#" class="btn btn-default" onclick="{sg:backend.editOnClick(table: 'tx_sgjobs_domain_model_job', uid: rootPageUid, new: 1)}">
<span class="t3js-icon icon icon-size-small icon-state-default icon-actions-document-new">
<span class="icon-markup">
<img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-new.svg" width="16" height="16">
</span>
</span>
<f:translate key="backend.button_create_job" />
</a>
<a href="#" class="btn btn-default" onclick="{sg:backend.editOnClick(table: 'tx_sgjobs_domain_model_location', uid: rootPageUid, new: 1)}">
<span class="t3js-icon icon icon-size-small icon-state-default icon-actions-document-new">
<span class="icon-markup">
<img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-new.svg" width="16" height="16">
</span>
</span>
<f:translate key="backend.button_create_location" />
</a>
</div>
\ No newline at end of file
{namespace sg=SGalinski\SgJobs\ViewHelpers}
<p>
<f:translate key="backend.message.sorting" />
</p>
<div class="panel panel-default recordlist">
<div class="table-fit">
<table data-table="tx_sgroutes_domain_model_job" class="table table-striped table-hover">
<table data-table="tx_sgjobs_domain_model_job" class="table table-striped table-hover">
<sg:backend.widget.paginate objects="{jobs}" as="paginatedJobs" configuration="{insertAbove: 1, itemsPerPage: 20}">
<tbody>
<f:for each="{paginatedJobs}" as="job">
{sg:backend.editOnClick(table: 'tx_sgroutes_domain_model_job', uid: job.uid) -> sg:set(name: 'editOnClick')}
{sg:backend.editOnClick(table: 'tx_sgjobs_domain_model_job', uid: job.uid) -> sg:set(name: 'editOnClick')}
<tr data-uid="{job.uid}">
<td style="white-space: normal;">
<a href="#" onclick="{editOnClick}">
......
......@@ -13,6 +13,14 @@
<source>New</source>
<target>Neu</target>
</trans-unit>
<trans-unit id="backend.button_create_job" approved="yes">
<source>New job</source>
<target>Neue Stellenanzeige</target>
</trans-unit>
<trans-unit id="backend.button_create_location" approved="yes">
<source>New location</source>
<target>Neuer Arbeitsort</target>
</trans-unit>
<trans-unit id="backend.filter" approved="yes">
<source>Filter</source>
<target>Filter</target>
......@@ -21,6 +29,11 @@
<source>Locations</source>
<target>Arbeitsorte</target>
</trans-unit>
<trans-unit id="backend.filters.locations.description" approved="yes" xml:space="preserve">
<source>(Use the ctrl or cmd keys to deselect an option or to select multiple options) </source>
<target>Benutze die STRG oder CMD-Tasten, um eine Option abzuwählen oder mehrere anzuwählen
</target>
</trans-unit>
<trans-unit id="backend.filters.search" approved="yes">
<source>Search</source>
<target>Suchen</target>
......
......@@ -12,12 +12,21 @@
<trans-unit id="backend.button_create">
<source>New</source>
</trans-unit>
<trans-unit id="backend.button_create_job">
<source>New job</source>
</trans-unit>
<trans-unit id="backend.button_create_location">
<source>New location</source>
</trans-unit>
<trans-unit id="backend.filter">
<source>Filter</source>
</trans-unit>
<trans-unit id="backend.filters.locations">
<source>Locations</source>
</trans-unit>
<trans-unit id="backend.filters.locations.description">
<source>(Use the ctrl or cmd keys to deselect an option or to select multiple options) </source>
</trans-unit>
<trans-unit id="backend.filters.search">
<source>Search</source>
</trans-unit>
......
......@@ -11,6 +11,7 @@
<f:if condition="{rootPageUid}">
<f:then>
<f:render partial="Filter" arguments="{filters: filters, locationOptions: locationOptions}" />
<f:render partial="CreateJob" arguments="{rootPageUid:rootPageUid}" />
<f:if condition="{jobs}">
<f:then>
<f:render partial="JobList" arguments="{jobs: jobs}" />
......
......@@ -10,7 +10,6 @@
$(document).ready(function() {
$('.btn-delete-all').on('click', deleteAllListener);
$.get(TYPO3.settings.ajaxUrls['sg_routes::ajaxPing']);
});
})(TYPO3.jQuery);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment