Skip to content

Commit

Permalink
[TASK] Improve docheader in backend module
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwemer committed Mar 13, 2024
1 parent d7351b9 commit d8127bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
7 changes: 7 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
<source><![CDATA[This module cannot be used until you create at least one configuration record. Please refer to the <a href="%s" target="_blank">administrator manual</a> for further information.<br /><br /><a href="%s">Click here</a> to create a configuration record.]]></source>
</trans-unit>

<trans-unit id="module_docheader.configurations.switch">
<source>Switch configuration</source>
</trans-unit>
<trans-unit id="module_docheader.configurations.edit">
<source>Edit current configuration</source>
</trans-unit>

<trans-unit id="module_overview">
<source>Overview</source>
</trans-unit>
Expand Down
19 changes: 12 additions & 7 deletions Resources/Private/Partials/ConfigurationRecords.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@
<f:format.raw>{editLink}</f:format.raw>
</f:then>
<f:else>
<f:form action="{action}" method="post" class="form-inline">
<div class="form-group form-group-sm">
<f:form action="{action}" method="post" class="form-inline;">
<div class="form-group" style="display: flex;">
<f:form.select name="configuration"
options="{configurationRecords}"
value="{currentConfiguration}"
optionValueField="uid"
optionLabelField="name"
class="form-select form-select-sm form-control"/>
class="form-select"
style="display: inline-flex; width: 100%;"/>

<div style="display: inline-block; margin-left: 5px;">
<f:format.raw>{editLink}</f:format.raw>
</div>
<f:form.submit
class="form-submit form-submit-sm form-control"
style="margin-inline-start: 1rem;"
value="{f:translate(key: 'module_docheader.configurations.switch')}"/>

</div>
<div style="margin-block-start: .5rem; display: flex;">
<span style="margin-inline: .375rem;">{f:translate(key: 'module_docheader.configurations.edit')}</span> <f:format.raw>{editLink}</f:format.raw>
</div>
<f:form.submit/>
</f:form>
</f:else>
</f:if>
Expand Down

0 comments on commit d8127bd

Please sign in to comment.