Skip to content

Commit

Permalink
Merge pull request #908 from owlchester/character-organisations-delet…
Browse files Browse the repository at this point in the history
…e-form

Character Organisation form now has delete button
  • Loading branch information
ilestis authored Jul 5, 2024
2 parents 2f4b8f6 + 28476bc commit f4ca5b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function mentions(): HasMany
return $this->hasMany(ImageMention::class, 'image_id', 'id')
->with('entity')
->with('post')
;
;
}

public function inEntities(): array
Expand Down
2 changes: 2 additions & 0 deletions resources/views/characters/organisations/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@include('partials.forms.form', [
'title' => __('characters.organisations.edit.title', ['name' => $model->name]),
'content' => 'characters.organisations._form',
'deleteID' => '#delete-character-organisation-' . $member->id,
'dialog' => true,
'dropdownParent' => '#primary-dialog',
])
Expand All @@ -22,6 +23,7 @@
<input type="hidden" name="from" value="{{ request()->get('from') }}" />
@endif
</x-form>
<x-form method="DELETE" :action="['characters.character_organisations.destroy', $campaign, $model->id, $member->id]" id="delete-character-organisation-{{ $member->id }}" />

@endsection

0 comments on commit f4ca5b6

Please sign in to comment.