refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
62
resources/views/people/work/edit.blade.php
Normal file
62
resources/views/people/work/edit.blade.php
Normal file
@@ -0,0 +1,62 @@
|
||||
@extends('layouts.skeleton')
|
||||
|
||||
@section('content')
|
||||
<div class="people-show">
|
||||
|
||||
{{-- Breadcrumb --}}
|
||||
<div class="breadcrumb">
|
||||
<div class="{{ Auth::user()->getFluidLayout() }}">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<ul class="horizontal">
|
||||
<li>
|
||||
<a href="{{ route('dashboard.index') }}">{{ trans('app.breadcrumb_dashboard') }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('people.index') }}">{{ trans('app.breadcrumb_list_contacts') }}</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ $contact->name }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="main-content central-form">
|
||||
<div class="{{ Auth::user()->getFluidLayout() }}">
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-6 offset-sm-3 offset-sm-3-right">
|
||||
<form method="POST" action="{{ route('people.work.update', $contact) }}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
@include('partials.errors')
|
||||
|
||||
<h2>{{ trans('people.work_edit_title', ['name' => $contact->first_name]) }}</h2>
|
||||
|
||||
{{-- Job --}}
|
||||
<div class="form-group">
|
||||
<label for="job">{{ trans('people.work_edit_job') }}</label>
|
||||
<input type="text" class="form-control" name="job" id="job" value="{{ $contact->job }}" autofocus>
|
||||
</div>
|
||||
|
||||
{{-- Company --}}
|
||||
<div class="form-group">
|
||||
<label for="company">{{ trans('people.work_edit_company') }}</label>
|
||||
<input type="text" class="form-control" name="company" id="company" value="{{ $contact->company }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group actions">
|
||||
<button type="submit" class="btn btn-primary">{{ trans('app.save') }}</button>
|
||||
<a href="{{ route('people.show', $contact) }}" class="btn btn-secondary">{{ trans('app.cancel') }}</a>
|
||||
</div> <!-- .form-group -->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
35
resources/views/people/work/index.blade.php
Normal file
35
resources/views/people/work/index.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="sidebar-box">
|
||||
|
||||
<div class="sidebar-box-title">
|
||||
<h3>{{ trans('people.work_information') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="work">
|
||||
<ul>
|
||||
|
||||
{{-- Work information --}}
|
||||
<li>
|
||||
<i class="fa fa-building-o" aria-hidden="true"></i>
|
||||
@if (is_null($contact->job) and is_null($contact->company))
|
||||
{{ trans('people.information_no_work_defined') }}
|
||||
@else
|
||||
@if (!is_null($contact->job))
|
||||
{{ $contact->job }}
|
||||
|
||||
@if (!is_null($contact->company))
|
||||
{{ trans('people.information_work_at', ['company' => $contact->company]) }}
|
||||
@endif
|
||||
@else
|
||||
{{ $contact->company }}
|
||||
@endif
|
||||
|
||||
@endif
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p class="sidebar-box-paragraph">
|
||||
<a href="{{ route('people.work.edit', $contact) }}">{{ trans('people.work_add_cta') }}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user