mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify into muammer
This commit is contained in:
commit
8caff286d3
@ -25,3 +25,10 @@ if (!function_exists('get_buyables'))
|
|||||||
return dispatch_now(new GetBuyables());
|
return dispatch_now(new GetBuyables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!function_exists('auth_id_if_null'))
|
||||||
|
{
|
||||||
|
function auth_id_if_null($userId) {
|
||||||
|
return $userId ?: auth()->id();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -4,7 +4,10 @@
|
|||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Visiosoft\\ProfileModule\\": "src/"
|
"Visiosoft\\ProfileModule\\": "src/"
|
||||||
}
|
},
|
||||||
|
"files": [
|
||||||
|
"src/Support/_helpers.php"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"maatwebsite/excel": "*"
|
"maatwebsite/excel": "*"
|
||||||
|
|||||||
@ -114,4 +114,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nav-details {
|
||||||
|
.birthday-field .input-group-addon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -55,6 +55,9 @@ return [
|
|||||||
'register_type' => [
|
'register_type' => [
|
||||||
'name' => 'Register Type'
|
'name' => 'Register Type'
|
||||||
],
|
],
|
||||||
|
'birthday' => [
|
||||||
|
'name' => 'Birthday'
|
||||||
|
],
|
||||||
'identification_number' => [
|
'identification_number' => [
|
||||||
'name' => 'Identification Number'
|
'name' => 'Identification Number'
|
||||||
],
|
],
|
||||||
|
|||||||
@ -96,6 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{ userForm.close()|raw }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="nav-details" role="tabpanel"
|
<div class="tab-pane fade" id="nav-details" role="tabpanel"
|
||||||
@ -140,15 +141,25 @@
|
|||||||
{{ profileForm.fields.land_phone.input|raw }}
|
{{ profileForm.fields.land_phone.input|raw }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group birthday-field">
|
||||||
|
<label class="control-label font-weight-bold">
|
||||||
|
{{ trans("visiosoft.module.profile::field.birthday.name") }}
|
||||||
|
</label>
|
||||||
|
{{ profileForm.fields.birthday.input|raw }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label font-weight-bold">{{ trans("visiosoft.module.profile::field.register_type.name") }}</label>
|
<label class="control-label font-weight-bold">
|
||||||
|
{{ trans("visiosoft.module.profile::field.register_type.name") }}
|
||||||
|
</label>
|
||||||
{{ profileForm.fields.register_type.input|raw }}
|
{{ profileForm.fields.register_type.input|raw }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 text-right">
|
<div class="col-md-12 text-right">
|
||||||
<div class="form-group d-flex align-items-center justify-content-end">
|
<div class="form-group d-flex align-items-center justify-content-end">
|
||||||
{{ addBlock('profile/detail/profile-detail-form/actions', {'user': user})|raw }}
|
{{ addBlock('profile/detail/profile-detail-form/actions')|raw }}
|
||||||
|
|
||||||
{{ profileForm.actions|raw }}
|
{{ profileForm.actions|raw }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -14,4 +14,9 @@ class UserActivatedByMail
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
return $this->user;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -13,6 +13,7 @@ class ProfileFormBuilder extends FormBuilder
|
|||||||
'office_phone',
|
'office_phone',
|
||||||
'land_phone',
|
'land_phone',
|
||||||
'identification_number',
|
'identification_number',
|
||||||
|
'birthday',
|
||||||
'register_type'
|
'register_type'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -21,6 +21,7 @@ class ProfileFormHandler
|
|||||||
'office_phone' => $builder->getPostValue('office_phone'),
|
'office_phone' => $builder->getPostValue('office_phone'),
|
||||||
'land_phone' => $builder->getPostValue('land_phone'),
|
'land_phone' => $builder->getPostValue('land_phone'),
|
||||||
'identification_number' => $builder->getPostValue('identification_number'),
|
'identification_number' => $builder->getPostValue('identification_number'),
|
||||||
|
'birthday' => $builder->getPostValue('birthday'),
|
||||||
'register_type' => $builder->getPostValue('register_type'),
|
'register_type' => $builder->getPostValue('register_type'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -3,11 +3,9 @@
|
|||||||
use Anomaly\Streams\Platform\Assignment\AssignmentModelTranslation;
|
use Anomaly\Streams\Platform\Assignment\AssignmentModelTranslation;
|
||||||
use Anomaly\Streams\Platform\Assignment\Contract\AssignmentRepositoryInterface;
|
use Anomaly\Streams\Platform\Assignment\Contract\AssignmentRepositoryInterface;
|
||||||
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
|
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
|
||||||
use Anomaly\Streams\Platform\Entry\EntryTranslationsModel;
|
|
||||||
use Anomaly\Streams\Platform\Field\Contract\FieldRepositoryInterface;
|
use Anomaly\Streams\Platform\Field\Contract\FieldRepositoryInterface;
|
||||||
use Anomaly\Streams\Platform\Field\FieldModelTranslation;
|
use Anomaly\Streams\Platform\Field\FieldModelTranslation;
|
||||||
use Anomaly\Streams\Platform\Stream\Contract\StreamRepositoryInterface;
|
use Anomaly\Streams\Platform\Stream\Contract\StreamRepositoryInterface;
|
||||||
use Anomaly\Streams\Platform\Stream\StreamModelTranslation;
|
|
||||||
use Visiosoft\LocationModule\Country\CountryModel;
|
use Visiosoft\LocationModule\Country\CountryModel;
|
||||||
|
|
||||||
class UsersFieldsSeeder extends Seeder
|
class UsersFieldsSeeder extends Seeder
|
||||||
@ -144,6 +142,15 @@ class UsersFieldsSeeder extends Seeder
|
|||||||
'separator' => ':',
|
'separator' => ':',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
14 => [
|
||||||
|
'name' => trans('visiosoft.module.profile::field.birthday.name'),
|
||||||
|
'slug' => 'birthday',
|
||||||
|
'type' => 'anomaly.field_type.datetime',
|
||||||
|
'config' => [
|
||||||
|
"mode" => "date",
|
||||||
|
"picker" => true,
|
||||||
|
]
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($customFields as $customField) {
|
foreach ($customFields as $customField) {
|
||||||
|
|||||||
@ -0,0 +1,12 @@
|
|||||||
|
<?php namespace Visiosoft\ProfileModule\Support\Command;
|
||||||
|
|
||||||
|
use Anomaly\UsersModule\Role\Contract\RoleRepositoryInterface;
|
||||||
|
|
||||||
|
class getAdmins
|
||||||
|
{
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
$adminRole = app(RoleRepositoryInterface::class)->findBySlug('admin');
|
||||||
|
return $adminRole->getUsers();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Visiosoft\ProfileModule\Support\Command\getAdmins;
|
||||||
|
|
||||||
|
if (!function_exists('get_admins'))
|
||||||
|
{
|
||||||
|
function getAdmins() {
|
||||||
|
return dispatch_now(new getAdmins());
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user