mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-27 22:48:40 +00:00
many small fixes
This commit is contained in:
parent
483b72fc4e
commit
d8656ddd83
|
|
@ -142,9 +142,8 @@ final class BackendController extends Controller
|
|||
|
||||
$mapperQuery = ProfileMapper::get()
|
||||
->with('account')
|
||||
->with('image')
|
||||
->with('location')
|
||||
->with('contactElements');
|
||||
->with('account/locations')
|
||||
->with('image');
|
||||
|
||||
/** @var \Modules\Profile\Models\Profile $profile */
|
||||
$profile = $request->getData('for') !== null
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
<div class="box" id="<?= $this->getId(); ?>-tags" data-limit="0" data-active="true">
|
||||
<template id="<?= $this->getId(); ?>-tagTemplate">
|
||||
<span class="tag red" data-tpl-value="/id" data-value="" data-uuid="" data-name="<?= $this->printHtml($this->name); ?>">
|
||||
<i class="fa fa-times"></i>
|
||||
<i class="fa fa-times close"></i>
|
||||
<span style="display: none;" data-name="type_prefix" data-tpl-value="/type_prefix" data-value=""></span>
|
||||
<span data-tpl-text="/id" data-name="id" data-tpl-value="/id" data-value=""></span>
|
||||
<span data-tpl-text="/name/0" data-tpl-value="/name/0" data-value=""></span>
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ echo $this->getData('nav')->render();
|
|||
<th><?= $this->getHtml('Address'); ?>
|
||||
<td>
|
||||
<?php
|
||||
$locations = $profile->getLocation();
|
||||
$locations = $profile->account->getLocations();
|
||||
if (empty($locations)) :
|
||||
?>
|
||||
<tr>
|
||||
|
|
@ -125,7 +125,7 @@ echo $this->getData('nav')->render();
|
|||
<th><?= $this->getHtml('Contact'); ?>
|
||||
<td>
|
||||
<?php
|
||||
$contacts = $profile->getContactElements();
|
||||
$contacts = $profile->account->getContacts();
|
||||
if (empty($contacts)) :
|
||||
?>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user