Skip to content

Commit

Permalink
- add position in English (#386)
Browse files Browse the repository at this point in the history
* - add position in English

* - add "Text us" section in carbon project

* - cs fix
  • Loading branch information
EwelinaSkrzypacz authored Oct 29, 2024
1 parent 1c4103d commit 719a9e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Filament/Resources/ReferenceResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ public static function form(Form $form): Form
"male" => "Mężczyzna",
"female" => "Kobieta",
]),
Forms\Components\TextInput::make("position")
->label("Stanowisko")
->maxLength(255),
TranslatableContainer::make(
Forms\Components\TextInput::make("position")
->label("Stanowisko")
->maxLength(255),
)->requiredLocales(config("app.translatable_locales")),
Forms\Components\TextInput::make("company")
->label("Firma")
->maxLength(255),
Expand Down
1 change: 1 addition & 0 deletions app/Models/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Reference extends Model

public $translatable = [
"description",
"position",
];
protected $fillable = [
"creator_name",
Expand Down
2 changes: 2 additions & 0 deletions resources/views/projects/carbon.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ class="max-w-[350px] 2xl:place-items-start pr-4">
</section>

<x-projects.image src="{{ asset('images/projects/carbon/desktop.png') }}" alt="{{ __('projects.carbon.alt.desktop') }}" />

<x-text-us-section/>
@endsection

0 comments on commit 719a9e5

Please sign in to comment.