Skip to content

Commit

Permalink
Fix & in some forms
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Jan 9, 2025
1 parent 9c931a2 commit 5b1488f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/cruds/fields/pronouns.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<x-forms.field
field="pronouns"
:label="__('characters.fields.pronouns')">
<input type="text" name="pronouns" value="{!! htmlspecialchars(old('pronouns', $source->pronouns ?? $model->pronouns ?? '')) !!}"
<input type="text" name="pronouns" value="{!! htmlspecialchars(old('pronouns', str_replace('&amp;', '&', $source->pronouns ?? $model->pronouns ?? ''))) !!}"
placeholder="{{ __('characters.placeholders.pronouns') }}" maxlength="45" spellcheck="true" />
</x-forms.field>
2 changes: 1 addition & 1 deletion resources/views/cruds/fields/sex.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
field="sex"
:label="__('characters.fields.sex')">

<input type="text" name="sex" value="{!! htmlspecialchars(old('sex', $source->sex ?? $model->sex ?? '')) !!}" placeholder="{{ __('characters.placeholders.sex') }}" list="entity-gender-list" autocomplete="off" maxlength="45" spellcheck="true" />
<input type="text" name="sex" value="{!! htmlspecialchars(old('sex', str_replace('&amp;', '&', $source->sex ?? $model->sex ?? ''))) !!}" placeholder="{{ __('characters.placeholders.sex') }}" list="entity-gender-list" autocomplete="off" maxlength="45" spellcheck="true" />
<datalist id="entity-gender-list">
@foreach (\App\Facades\CharacterCache::genderSuggestion() as $gender)
<option value="{{ $gender }}">{!! $gender !!}</option>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/entities/pages/profile/_character.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
@if ($model->title)
<p class="entity-character-title">
<b>{{ __('characters.fields.title') }}</b><br />
{{ $model->title }}
{!! $model->title !!}
</p>
@endif

@if ($model->type)
<p class="entity-type">
<b>{{ __('crud.fields.type') }}</b><br />
{{ $model->type }}
{!! $model->type !!}
</p>
@endif

Expand Down Expand Up @@ -61,14 +61,14 @@
@if ($model->sex)
<p class="entity-gender">
<b>{{ __('characters.fields.sex') }}</b><br />
{{ $model->sex }}
{!! $model->sex !!}
</p>
@endif

@if ($model->pronouns)
<p class="entity-pronouns">
<b>{{ __('characters.fields.pronouns') }}</b><br />
{{ $model->pronouns }}
{!! $model->pronouns !!}
</p>
@endif
</x-box>
Expand Down

0 comments on commit 5b1488f

Please sign in to comment.