mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#5135 emlak24 new project
This commit is contained in:
parent
ed55fde460
commit
048a67bc50
@ -100,7 +100,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
border-radius: 4px;
|
border-radius: 0;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
border: 1px solid #E5E5E5;
|
border: 1px solid #E5E5E5;
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
@ -112,7 +112,6 @@
|
|||||||
|
|
||||||
.account--disable--content {
|
.account--disable--content {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
height: 58px;
|
|
||||||
background-color: #f3f5f6;
|
background-color: #f3f5f6;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
@ -123,9 +122,10 @@
|
|||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button, a {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
height: 34px;
|
white-space: nowrap;
|
||||||
|
border-radius: 13px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<img src="{{ img('visiosoft.module.profile::images/nav-menu.svg').url }}" alt="nav icon" id="navbarSideButton"
|
<img src="{{ img('visiosoft.module.profile::images/nav-menu.svg').url }}" alt="nav icon" id="navbarSideButton"
|
||||||
class="ml-2">
|
class="ml-2">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-10 col-sm-6 col-md-3 profile-navigation border rounded navbar-side" id="navbarSide">
|
<div class="col-10 col-sm-6 col-md-3 profile-navigation border navbar-side" id="navbarSide">
|
||||||
<span class="px-3 mb-2 link-unstyled">
|
<span class="px-3 mb-2 link-unstyled">
|
||||||
{{ img('visiosoft.module.profile::images/interface.svg').data|raw }}
|
{{ img('visiosoft.module.profile::images/interface.svg').data|raw }}
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@ -47,20 +47,20 @@
|
|||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<div class="profile--form--area">
|
<div class="profile--form--area">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label font-weight-bold">
|
<label class="control-label mb-1">
|
||||||
{{ trans("visiosoft.module.profile::field.first_name.name") }}
|
{{ trans("visiosoft.module.profile::field.first_name.name") }}
|
||||||
</label>
|
</label>
|
||||||
{{ userForm.fields.first_name.input|raw }}
|
{{ userForm.fields.first_name.input|raw }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label font-weight-bold">
|
<label class="control-label mb-1">
|
||||||
{{ trans("visiosoft.module.profile::field.last_name.name") }}
|
{{ trans("visiosoft.module.profile::field.last_name.name") }}
|
||||||
</label>
|
</label>
|
||||||
{{ userForm.fields.last_name.input|raw }}
|
{{ userForm.fields.last_name.input|raw }}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label font-weight-bold">
|
<label class="control-label mb-1">
|
||||||
{{ trans("visiosoft.module.profile::field.email.name") }}
|
{{ trans("visiosoft.module.profile::field.email.name") }}
|
||||||
</label>
|
</label>
|
||||||
{{ userForm.fields.email.input|raw }}
|
{{ userForm.fields.email.input|raw }}
|
||||||
|
|||||||
@ -0,0 +1,27 @@
|
|||||||
|
<?php namespace Visiosoft\ProfileModule\Profile\Command;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
|
|
||||||
|
class UserInitials
|
||||||
|
{
|
||||||
|
use DispatchesJobs;
|
||||||
|
|
||||||
|
protected $user;
|
||||||
|
|
||||||
|
public function __construct($user)
|
||||||
|
{
|
||||||
|
$this->user = $user;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
$words = explode(" ", $this->user->name());
|
||||||
|
$acronym = "";
|
||||||
|
|
||||||
|
foreach ($words as $w) {
|
||||||
|
$acronym .= $w[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $acronym;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -5,6 +5,7 @@ use Visiosoft\ProfileModule\Adress\Command\GetAddress;
|
|||||||
use Visiosoft\ProfileModule\Adress\Command\GetAddressByUser;
|
use Visiosoft\ProfileModule\Adress\Command\GetAddressByUser;
|
||||||
use Visiosoft\ProfileModule\Profile\Command\GetProfileDetail;
|
use Visiosoft\ProfileModule\Profile\Command\GetProfileDetail;
|
||||||
use Visiosoft\ProfileModule\Profile\Command\GetProfilePhotoURL;
|
use Visiosoft\ProfileModule\Profile\Command\GetProfilePhotoURL;
|
||||||
|
use Visiosoft\ProfileModule\Profile\Command\UserInitials;
|
||||||
|
|
||||||
class ProfileModulePlugin extends Plugin
|
class ProfileModulePlugin extends Plugin
|
||||||
{
|
{
|
||||||
@ -50,6 +51,12 @@ class ProfileModulePlugin extends Plugin
|
|||||||
return $this->dispatch(new GetProfilePhotoURL($user));
|
return $this->dispatch(new GetProfilePhotoURL($user));
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
new \Twig_SimpleFunction(
|
||||||
|
'user_initials',
|
||||||
|
function ($user) {
|
||||||
|
return $this->dispatch(new UserInitials($user));
|
||||||
|
}
|
||||||
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user