-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add TYPO3 12 support
- Loading branch information
Showing
7 changed files
with
205 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
templates.typo3/cms-form.1698393052 = brosua/form-search:Resources/Private/TemplateOverrides |
1 change: 1 addition & 0 deletions
1
Resources/Private/TemplateOverrides/Partials/Backend/FormManager/Pagination.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../Backend/Partials/FormManager/Pagination.html |
164 changes: 164 additions & 0 deletions
164
Resources/Private/TemplateOverrides/Templates/Backend/FormManager/Index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
<html | ||
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
<f:layout name="Module" /> | ||
|
||
<f:section name="Content"> | ||
|
||
<f:be.pageRenderer | ||
includeCssFiles="{stylesheets}" | ||
/> | ||
|
||
<h1><f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.headline" /></h1> | ||
<f:if condition="{paginator.paginatedItems}"> | ||
<f:then> | ||
<form style="display:inline;" | ||
data-global-event="submit" | ||
data-action-navigate="$form=~s/$value/" | ||
data-navigate-value="{f:uri.action(arguments:'{searchTerm: \'$[value]\'}')}" | ||
data-value-selector="input[name='searchTerm']"> | ||
<div class="row mb-3"> | ||
<div class="col-6"> | ||
<div class="input-group"> | ||
<button class="btn btn-default" type="submit" name="search"> | ||
<core:icon identifier="actions-search" size="small" /> | ||
</button> | ||
<label for="search_field" class="visually-hidden"> | ||
<f:translate id="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.label.searchString"/> | ||
</label> | ||
<input type="search" id="search_field" name="searchTerm" class="form-control" value="{searchTerm}" placeholder="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.enterSearchString')}" /> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
<div class="table-fit"> | ||
<table id="forms" class="table table-striped table-hover"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th><f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.form_name" /></th> | ||
<th><f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.location" /></th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<f:for each="{paginator.paginatedItems}" as="form"> | ||
<tr> | ||
<td class="col-icon"> | ||
<f:if condition="{form.invalid}"> | ||
<f:then> | ||
<span title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.invalid')}"> | ||
<core:icon identifier="overlay-missing" /> | ||
</span> | ||
</f:then> | ||
<f:else if="{form.duplicateIdentifier}"> | ||
<span title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.duplicate_identifier')} {form.identifier}"> | ||
<core:icon identifier="overlay-missing" /> | ||
</span> | ||
</f:else> | ||
<f:else> | ||
<span title="id={form.identifier}"> | ||
<core:icon identifier="content-form" /> | ||
</span> | ||
</f:else> | ||
</f:if> | ||
</td> | ||
<td class="col-title"> | ||
<f:if condition="{form.invalid} || {form.readOnly}"> | ||
<f:then> | ||
<div title="{form.name}">{form.name}</div> | ||
</f:then> | ||
<f:else> | ||
<f:link.action controller="FormEditor" action="index" arguments="{formPersistenceIdentifier: form.persistenceIdentifier}" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.edit_form')}">{form.name}</f:link.action> | ||
</f:else> | ||
</f:if> | ||
</td> | ||
<td><code>{form.persistenceIdentifier}</code></td> | ||
<td> | ||
<f:if condition="{form.referenceCount}"> | ||
<f:then> | ||
<a href="#" data-identifier="showReferences" data-form-persistence-identifier="{form.persistenceIdentifier}" data-form-name="{form.name}"> | ||
<span class="badge badge-info"> | ||
{form.referenceCount} <f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.references"/> | ||
</span> | ||
</a> | ||
</f:then> | ||
<f:else> | ||
<span class="badge badge-default"> | ||
{form.referenceCount} <f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.references"/> | ||
</span> | ||
</f:else> | ||
</f:if> | ||
</td> | ||
<td class="col-control"> | ||
<div class="btn-group" role="group"> | ||
<f:if condition="{form.invalid} || {form.readOnly}"> | ||
<f:then> | ||
<button class="btn btn-default form-record-readonly" disabled="disabled" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.edit_form_not_allowed')}"><core:icon identifier="actions-open" /></button> | ||
</f:then> | ||
<f:else> | ||
<f:link.action controller="FormEditor" action="index" arguments="{formPersistenceIdentifier: form.persistenceIdentifier}" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.edit_form')}" class="btn btn-default form-record-open"><core:icon identifier="actions-open" /></f:link.action> | ||
</f:else> | ||
</f:if> | ||
<f:if condition="{form.invalid}"> | ||
<button class="btn btn-default form-record-readonly" disabled="disabled" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.duplicate_form_not_allowed')}"><core:icon identifier="actions-duplicate" /></button> | ||
</f:if> | ||
<div class="btn-group dropdown"> | ||
<a href="#actions-{form.identifier}" class="btn btn-default dropdown-toggle dropdown-toggle-no-chevron" data-bs-toggle="dropdown" data-bs-boundary="window" aria-expanded="false"><core:icon identifier="actions-menu-alternative" /></a> | ||
<ul id="actions-{form.identifier}" class="dropdown-menu"> | ||
<f:if condition="{form.invalid}"> | ||
<f:else> | ||
<li> | ||
<a href="#" class="dropdown-item" data-bs-original-title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.duplicate_this_form')}" data-identifier="duplicateForm" data-form-persistence-identifier="{form.persistenceIdentifier}" data-form-name="{form.name}"> | ||
<span class="dropdown-item-columns"> | ||
<span class="dropdown-item-column dropdown-item-column-icon text-{cacheAction.severity}"> | ||
<core:icon identifier="actions-duplicate" /> | ||
</span> | ||
<span class="dropdown-item-column dropdown-item-column-text"> | ||
<f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.duplicate_this_form" /> | ||
</span> | ||
</span> | ||
</a> | ||
</li> | ||
</f:else> | ||
</f:if> | ||
<f:if condition="{form.referenceCount}"> | ||
<li> | ||
<a href="#" class="dropdown-item" data-bs-original-title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.show_references')}" data-identifier="showReferences" data-form-persistence-identifier="{form.persistenceIdentifier}" data-form-name="{form.name}"> | ||
<core:icon identifier="actions-eye-link" /> | ||
<f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.show_references" /> | ||
</a> | ||
</li> | ||
</f:if> | ||
<f:if condition="{form.removable} && ({form.invalid} == '0') && ({form.referenceCount} == '0')"> | ||
<li> | ||
<a href="#" class="dropdown-item" data-bs-original-title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.delete_form')}" data-identifier="removeForm" data-form-persistence-identifier="{form.persistenceIdentifier}"> | ||
<core:icon identifier="actions-edit-delete" /> | ||
<f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.delete_form" /> | ||
</a> | ||
</li> | ||
</f:if> | ||
</ul> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</f:for> | ||
</tbody> | ||
</table> | ||
</div> | ||
<f:render partial="Backend/FormManager/Pagination" arguments="{_all}" /> | ||
</f:then> | ||
<f:else> | ||
<f:be.infobox state="-1" title="{f:translate(key: 'LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.forms_not_found.title')}"> | ||
<p><f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.forms_not_found.message" /></p> | ||
<a class="btn btn-primary" href="#" data-identifier="newForm"><f:translate key="LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.create_new_form" /></a> | ||
</f:be.infobox> | ||
</f:else> | ||
</f:if> | ||
|
||
|
||
</f:section> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters