fix: offer scope sections — add blue EN / red CZ language badges on title labels
Matches PHP styling with offers-lang-badge and offers-lang-badge-cz classes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -992,23 +992,23 @@ export default function OfferDetail() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="admin-form-row">
|
<div className="admin-form-row">
|
||||||
<FormField label="[EN] Název sekce">
|
<FormField label={<><span className="offers-lang-badge">EN</span>Název sekce</>}>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={section.title}
|
value={section.title}
|
||||||
onChange={(e) => setSections(prev => prev.map((s, i) => i === idx ? { ...s, title: e.target.value } : s))}
|
onChange={(e) => setSections(prev => prev.map((s, i) => i === idx ? { ...s, title: e.target.value } : s))}
|
||||||
className="admin-form-input"
|
className="admin-form-input"
|
||||||
placeholder="Section title (EN)"
|
placeholder="Název sekce (anglicky)"
|
||||||
readOnly={isInvalidated}
|
readOnly={isInvalidated}
|
||||||
/>
|
/>
|
||||||
</FormField>
|
</FormField>
|
||||||
<FormField label="[CZ] Název sekce">
|
<FormField label={<><span className="offers-lang-badge offers-lang-badge-cz">CZ</span>Název sekce</>}>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={section.title_cz}
|
value={section.title_cz}
|
||||||
onChange={(e) => setSections(prev => prev.map((s, i) => i === idx ? { ...s, title_cz: e.target.value } : s))}
|
onChange={(e) => setSections(prev => prev.map((s, i) => i === idx ? { ...s, title_cz: e.target.value } : s))}
|
||||||
className="admin-form-input"
|
className="admin-form-input"
|
||||||
placeholder="Název sekce (CZ)"
|
placeholder="Název sekce (česky)"
|
||||||
readOnly={isInvalidated}
|
readOnly={isInvalidated}
|
||||||
/>
|
/>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|||||||
Reference in New Issue
Block a user