refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,44 @@
@extends('layouts.skeleton')
@section('content')
<section class="ph3 ph0-ns">
{{-- Breadcrumb --}}
<div class="mt4 mw7 center mb3">
<p><a href="{{ route('people.show', $contact) }}">< {{ $contact->name }}</a></p>
<h3 class="f3 fw5">{{ trans('people.avatar_change_title') }}</h3>
</div>
<div class="mw7 center br3 ba b--gray-monica bg-white mb5">
<form method="POST" action="{{ route('people.avatar.update', $contact) }}" enctype="multipart/form-data">
@csrf
@include('partials.errors')
{{-- Adorable --}}
<contact-avatar
:avatar="'{{ $contact->avatar_source }}'"
:default-url="'{{ $contact->getAvatarDefaultURL() }}'"
:adorable-url="'{{ $contact->avatar_adorable_data_url }}'"
:gravatar-url="'{{ $contact->avatar_gravatar_url }}'"
:photo-url="'{{ $contact->getAvatarURL() }}'"
:has-reached-account-storage-limit="false"
:max-upload-size="{{ config('monica.max_upload_size') }}"
>
</contact-avatar>
{{-- Form actions --}}
<div class="ph4-ns ph3 pv3 bb b--gray-monica">
<div class="flex-ns justify-between">
<div>
<a href="{{ route('people.show', $contact) }}" class="btn btn-secondary w-auto-ns w-100 mb2 pb0-ns">{{ trans('app.cancel') }}</a>
</div>
<div>
<button class="btn btn-primary w-auto-ns w-100 mb2 pb0-ns" name="save" type="submit">{{ trans('app.save') }}</button>
</div>
</div>
</div>
</form>
</div>
</div>
@endsection