mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-15 06:48:41 +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()
|
$mapperQuery = ProfileMapper::get()
|
||||||
->with('account')
|
->with('account')
|
||||||
->with('image')
|
->with('account/locations')
|
||||||
->with('location')
|
->with('image');
|
||||||
->with('contactElements');
|
|
||||||
|
|
||||||
/** @var \Modules\Profile\Models\Profile $profile */
|
/** @var \Modules\Profile\Models\Profile $profile */
|
||||||
$profile = $request->getData('for') !== null
|
$profile = $request->getData('for') !== null
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
<div class="box" id="<?= $this->getId(); ?>-tags" data-limit="0" data-active="true">
|
<div class="box" id="<?= $this->getId(); ?>-tags" data-limit="0" data-active="true">
|
||||||
<template id="<?= $this->getId(); ?>-tagTemplate">
|
<template id="<?= $this->getId(); ?>-tagTemplate">
|
||||||
<span class="tag red" data-tpl-value="/id" data-value="" data-uuid="" data-name="<?= $this->printHtml($this->name); ?>">
|
<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 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="/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>
|
<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'); ?>
|
<th><?= $this->getHtml('Address'); ?>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
$locations = $profile->getLocation();
|
$locations = $profile->account->getLocations();
|
||||||
if (empty($locations)) :
|
if (empty($locations)) :
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -125,7 +125,7 @@ echo $this->getData('nav')->render();
|
||||||
<th><?= $this->getHtml('Contact'); ?>
|
<th><?= $this->getHtml('Contact'); ?>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
$contacts = $profile->getContactElements();
|
$contacts = $profile->account->getContacts();
|
||||||
if (empty($contacts)) :
|
if (empty($contacts)) :
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user