Skip to content
Snippets Groups Projects
Commit 99e15248 authored by Daniel Windloff's avatar Daniel Windloff Committed by Anja Leichsenring
Browse files

[TASK] Streamline ElementInformation template

- Change "Show" button to btn-default
- Use infobox for missing files
- Streamline button order and groups
    - preview / edit
    - history
    - opens list module

Resolves: #78864
Releases: master
Change-Id: I1e74b5e5d75a0678ab385b40f53802a30028980a
Reviewed-on: https://review.typo3.org/50851


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 01285331
Branches
Tags
No related merge requests found
......@@ -6,12 +6,7 @@
</f:if>
</h1>
<f:if condition="{missingFile}">
<p>
<span class="label label-danger">
<f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:warning.file_missing" />
</span>
&nbsp;{missingFile}<br />
</p>
<f:be.infobox title="{f:translate(key:'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:warning.file_missing')}" state="1">{missingFile}</f:be.infobox>
</f:if>
<f:if condition="{fileRenderer}">
<p>
......@@ -28,7 +23,7 @@
</f:if>
<f:if condition="{url}">
<p>
<a class="btn btn-primary" href="{url}" target="_blank">
<a class="btn btn-default" href="{url}" target="_blank">
<core:icon identifier="actions-document-view" size="small" alternativeMarkupIdentifier="inline" />
<f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.show" />
</a>
......@@ -189,19 +184,25 @@
<f:section name="action">
<div class="btn-group" role="group">
<f:if condition="{line.webListUrl}">
<a class="btn btn-default btn-sm" href="#" onclick="{line.viewOnClick}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:labels.showPage')}">
<core:icon identifier="actions-document-view" size="small" />
</a>
</f:if>
<a class="btn btn-default btn-sm" href="{line.recordEditUrl}">
<core:icon identifier="actions-open" size="small" />
</a>
</div>
<div class="btn-group" role="group">
<a class="btn btn-default btn-sm" href="{line.recordHistoryUrl}">
<core:icon identifier="actions-document-history-open" size="small" />
</a>
<f:if condition="{line.webListUrl}">
</div>
<f:if condition="{line.webListUrl}">
<div class="btn-group" role="group">
<a class="btn btn-default btn-sm" href="{line.webListUrl}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:labels.showList')}">
<core:icon identifier="actions-system-list-open" size="small" />
</a>
<a class="btn btn-default btn-sm" href="#" onclick="{line.viewOnClick}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:labels.showPage')}">
<core:icon identifier="actions-document-view" size="small" />
</a>
</f:if>
</div>
</div>
</f:if>
</f:section>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment