Skip to content

Commit 5a41868

Browse files
author
roadiz-ci
committed
style: add badge in search button
1 parent f5e4815 commit 5a41868

16 files changed

Lines changed: 155 additions & 3 deletions
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@
5353
>
5454
{% set search_dialog_id = "search_dialog_id" %}
5555
<div class="rz-header__li">
56+
{% import "@RoadizRozier/macros/rz_badge.html.twig" as rz_badge %}
5657
{{
5758
header.button({
5859
label: "search"|trans,
5960
icon: "rz-icon-ri--search-line",
61+
rightIcon: "rz-icon-ri--arrow-right-up-line",
6062
tag: 'button',
6163
opentarget: search_dialog_id,
62-
component: "rz-button"
64+
component: "rz-button",
65+
rightElement: rz_badge.item({ label: 'Cmd+k', size: 'sm', color: 'default', class: 'rz-header-nav-item__right-el' }),
6366
})
6467
}}
6568
</div>

templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<body>
3636
<div class="rz-app" id="app">
3737
<header is="rz-header" class="rz-header">
38-
{% include '@RoadizRozier/panels/header.html.twig' with {
38+
{% include '@RoadizRozier/admin/rz_header.html.twig' with {
3939
'backofficeEntries':backofficeEntries,
4040
} only %}
4141
</header>

templates/macros/rz_header.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
<{{ tag }}
2626
class="{{ buttonClass }}"
27-
title="{{ label }}"
2827
{% if href is defined and href %} href="{{ href }}"{% endif %}
2928
{% if tag == 'button' %}aria-expanded="false"{% endif %}
3029
{% if component %}
@@ -43,5 +42,8 @@
4342
{% elseif hasChildren %}
4443
<span class="rz-header-nav-item__arrow rz-icon-ri--arrow-down-s-line"></span>
4544
{% endif %}
45+
{% if buttonOptions.rightElement %}
46+
{{ buttonOptions.rightElement|raw }}
47+
{% endif %}
4648
</{{ tag }}>
4749
{% endmacro %}

translations/rozier/messages.ar.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,18 @@
618618
<source>remove.user.%name%.from.group.%group%</source>
619619
<target state="final">إزالة.المستخدم.%name%.من.المجموعة.%group%</target>
620620
</trans-unit>
621+
<trans-unit xml:space="preserve" id="color.system" approved="yes">
622+
<source>color.system</source>
623+
<target state="final">النظام</target>
624+
</trans-unit>
625+
<trans-unit xml:space="preserve" id="color.light" approved="yes">
626+
<source>color.light</source>
627+
<target state="final">فاتح</target>
628+
</trans-unit>
629+
<trans-unit xml:space="preserve" id="color.dark" approved="yes">
630+
<source>color.dark</source>
631+
<target state="final">داكن</target>
632+
</trans-unit>
621633
<!-- Count translations -->
622634
<!-- Node type fields datatypes -->
623635
<!-- Dynamic button in nodeTree add.a.%nodeType% -->

translations/rozier/messages.de.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,18 @@
779779
<source>email.alreadyExists</source>
780780
<target state="final">E-Mail-Adresse wird bereits verwendet</target>
781781
</trans-unit>
782+
<trans-unit xml:space="preserve" id="color.system" approved="yes">
783+
<source>color.system</source>
784+
<target state="final">System</target>
785+
</trans-unit>
786+
<trans-unit xml:space="preserve" id="color.light" approved="yes">
787+
<source>color.light</source>
788+
<target state="final">Hell</target>
789+
</trans-unit>
790+
<trans-unit xml:space="preserve" id="color.dark" approved="yes">
791+
<source>color.dark</source>
792+
<target state="final">Dunkel</target>
793+
</trans-unit>
782794
<!-- Tag multiple children creation -->
783795
<!-- Raw documents -->
784796
<!-- Bulk tags -->

translations/rozier/messages.en.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3939,6 +3939,18 @@
39393939
<source>nodeType.name.alreadyExists</source>
39403940
<target state="final">Node-type name already exists</target>
39413941
</trans-unit>
3942+
<trans-unit xml:space="preserve" id="color.system" approved="yes">
3943+
<source>color.system</source>
3944+
<target state="final">System</target>
3945+
</trans-unit>
3946+
<trans-unit xml:space="preserve" id="color.light" approved="yes">
3947+
<source>color.light</source>
3948+
<target state="final">Light</target>
3949+
</trans-unit>
3950+
<trans-unit xml:space="preserve" id="color.dark" approved="yes">
3951+
<source>color.dark</source>
3952+
<target state="final">Dark</target>
3953+
</trans-unit>
39423954
<trans-unit xml:space="preserve" id="color.should.be.formatted.in.hexadecimal" approved="yes">
39433955
<source>color.should.be.formatted.in.hexadecimal</source>
39443956
<target state="final">Color should be formatted using hexadecimal notation</target>

translations/rozier/messages.es.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3541,6 +3541,18 @@
35413541
<source>nodeType.name.alreadyExists</source>
35423542
<target state="final">El tipo de nodo ya está en uso</target>
35433543
</trans-unit>
3544+
<trans-unit xml:space="preserve" id="color.system" approved="yes">
3545+
<source>color.system</source>
3546+
<target state="final">Sistema</target>
3547+
</trans-unit>
3548+
<trans-unit xml:space="preserve" id="color.light" approved="yes">
3549+
<source>color.light</source>
3550+
<target state="final">Claro</target>
3551+
</trans-unit>
3552+
<trans-unit xml:space="preserve" id="color.dark" approved="yes">
3553+
<source>color.dark</source>
3554+
<target state="final">Oscuro</target>
3555+
</trans-unit>
35443556
<trans-unit xml:space="preserve" id="color.should.be.formatted.in.hexadecimal" approved="yes">
35453557
<source>color.should.be.formatted.in.hexadecimal</source>
35463558
<target state="final">El color debe utilizar un formato en notación hexadecimal</target>

translations/rozier/messages.fr.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3939,6 +3939,18 @@
39393939
<source>nodeType.name.alreadyExists</source>
39403940
<target state="final">Le nom du type de nœud est déjà utilisé</target>
39413941
</trans-unit>
3942+
<trans-unit xml:space="preserve" id="color.system" approved="yes">
3943+
<source>color.system</source>
3944+
<target state="final">Système</target>
3945+
</trans-unit>
3946+
<trans-unit xml:space="preserve" id="color.light" approved="yes">
3947+
<source>color.light</source>
3948+
<target state="final">Clair</target>
3949+
</trans-unit>
3950+
<trans-unit xml:space="preserve" id="color.dark" approved="yes">
3951+
<source>color.dark</source>
3952+
<target state="final">Sombre</target>
3953+
</trans-unit>
39423954
<trans-unit xml:space="preserve" id="color.should.be.formatted.in.hexadecimal" approved="yes">
39433955
<source>color.should.be.formatted.in.hexadecimal</source>
39443956
<target state="final">La couleur doit être écrite en notation hexadécimale</target>

translations/rozier/messages.id.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3517,6 +3517,18 @@
35173517
<source>nodeType.name.alreadyExists</source>
35183518
<target state="final">Nama tipe node sudah ada</target>
35193519
</trans-unit>
3520+
<trans-unit xml:space="preserve" id="color.system" approved="yes">
3521+
<source>color.system</source>
3522+
<target state="final">Sistem</target>
3523+
</trans-unit>
3524+
<trans-unit xml:space="preserve" id="color.light" approved="yes">
3525+
<source>color.light</source>
3526+
<target state="final">Terang</target>
3527+
</trans-unit>
3528+
<trans-unit xml:space="preserve" id="color.dark" approved="yes">
3529+
<source>color.dark</source>
3530+
<target state="final">Gelap</target>
3531+
</trans-unit>
35203532
<trans-unit xml:space="preserve" id="color.should.be.formatted.in.hexadecimal" approved="yes">
35213533
<source>color.should.be.formatted.in.hexadecimal</source>
35223534
<target state="final">Warna harus diformat dengan menggunakan notasi heksadesimal</target>

translations/rozier/messages.it.xlf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3576,6 +3576,18 @@
35763576
<source>nodeType.name.alreadyExists</source>
35773577
<target state="final">Il nome del tipo di nodo è già in uso</target>
35783578
</trans-unit>
3579+
<trans-unit xml:space="preserve" id="color.system" approved="yes">
3580+
<source>color.system</source>
3581+
<target state="final">Sistema</target>
3582+
</trans-unit>
3583+
<trans-unit xml:space="preserve" id="color.light" approved="yes">
3584+
<source>color.light</source>
3585+
<target state="final">Chiaro</target>
3586+
</trans-unit>
3587+
<trans-unit xml:space="preserve" id="color.dark" approved="yes">
3588+
<source>color.dark</source>
3589+
<target state="final">Scuro</target>
3590+
</trans-unit>
35793591
<trans-unit xml:space="preserve" id="color.should.be.formatted.in.hexadecimal" approved="yes">
35803592
<source>color.should.be.formatted.in.hexadecimal</source>
35813593
<target state="final">Il colore dovrebbe essere formattato usando la notazione esadecimale </target>

0 commit comments

Comments
 (0)