Merge branch 'develop' into chore/sc-28173
# Conflicts: # resources/views/settings/saml.blade.php # resources/views/settings/security.blade.php # resources/views/setup/user.blade.php
This commit is contained in:
commit
0797c4ac97
56 changed files with 300 additions and 225 deletions
|
@ -55,11 +55,11 @@ class AccessoriesFilesController extends Controller
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->route('accessories.show', $accessory->id)->with('error', trans('general.no_files_uploaded'));
|
return redirect()->route('accessories.show', $accessory->id)->withFragment('files')->with('error', trans('general.no_files_uploaded'));
|
||||||
}
|
}
|
||||||
// Prepare the error message
|
// Prepare the error message
|
||||||
return redirect()->route('accessories.index')
|
return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist'));
|
||||||
->with('error', trans('general.file_does_not_exist'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,30 +72,28 @@ class AccessoriesFilesController extends Controller
|
||||||
*/
|
*/
|
||||||
public function destroy($accessoryId = null, $fileId = null) : RedirectResponse
|
public function destroy($accessoryId = null, $fileId = null) : RedirectResponse
|
||||||
{
|
{
|
||||||
$accessory = Accessory::find($accessoryId);
|
if ($accessory = Accessory::find($accessoryId)) {
|
||||||
|
|
||||||
// the asset is valid
|
|
||||||
if (isset($accessory->id)) {
|
|
||||||
$this->authorize('update', $accessory);
|
$this->authorize('update', $accessory);
|
||||||
$log = Actionlog::find($fileId);
|
|
||||||
|
|
||||||
// Remove the file if one exists
|
if ($log = Actionlog::find($fileId)) {
|
||||||
if (Storage::exists('accessories/'.$log->filename)) {
|
|
||||||
|
if (Storage::exists('private_uploads/accessories/'.$log->filename)) {
|
||||||
try {
|
try {
|
||||||
Storage::delete('accessories/'.$log->filename);
|
Storage::delete('private_uploads/accessories/' . $log->filename);
|
||||||
|
$log->delete();
|
||||||
|
return redirect()->back()->withFragment('files')->with('success', trans('admin/hardware/message.deletefile.success'));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Log::debug($e);
|
Log::debug($e);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$log->delete();
|
|
||||||
|
|
||||||
return redirect()->back()->withFragment('files')->with('success', trans('admin/hardware/message.deletefile.success'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Redirect to the licence management page
|
|
||||||
return redirect()->route('accessories.index')->with('error', trans('general.file_does_not_exist'));
|
return redirect()->route('accessories.index')->with('error', trans('general.file_does_not_exist'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return redirect()->route('accessories.show', ['accessory' => $accessory])->withFragment('files')->with('error', trans('general.log_record_not_found'));
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows the selected file to be viewed.
|
* Allows the selected file to be viewed.
|
||||||
|
@ -124,10 +122,11 @@ class AccessoriesFilesController extends Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->route('accessories.show', ['accessory' => $accessory])->with('error', trans('general.log_record_not_found'));
|
return redirect()->route('accessories.show', ['accessory' => $accessory])->withFragment('files')->with('error', trans('general.log_record_not_found'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->route('accessories.index')->with('error', trans('general.file_not_found'));
|
return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist'));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -535,7 +535,7 @@ class AssetsController extends Controller
|
||||||
{
|
{
|
||||||
$settings = Setting::getSettings();
|
$settings = Setting::getSettings();
|
||||||
|
|
||||||
if ($settings->qr_code == '1') {
|
if (($settings->qr_code === '1') && ($settings->label2_2d_type !== 'none')) {
|
||||||
$asset = Asset::withTrashed()->find($assetId);
|
$asset = Asset::withTrashed()->find($assetId);
|
||||||
if ($asset) {
|
if ($asset) {
|
||||||
$size = Helper::barcodeDimensions($settings->label2_2d_type);
|
$size = Helper::barcodeDimensions($settings->label2_2d_type);
|
||||||
|
|
|
@ -62,7 +62,7 @@ class SettingsSamlRequest extends FormRequest
|
||||||
$custom_privateKey = '';
|
$custom_privateKey = '';
|
||||||
$custom_x509certNew = '';
|
$custom_x509certNew = '';
|
||||||
if (! empty($this->input('saml_custom_settings'))) {
|
if (! empty($this->input('saml_custom_settings'))) {
|
||||||
$req_custom_settings = preg_split('/\r\n|\r|\n/', $this->input('saml_custom_settings'));
|
$req_custom_settings = preg_split('/\r\n|\r|\n/', $this->input('saml_custom_settings', ''));
|
||||||
$custom_settings = [];
|
$custom_settings = [];
|
||||||
|
|
||||||
foreach ($req_custom_settings as $custom_setting) {
|
foreach ($req_custom_settings as $custom_setting) {
|
||||||
|
|
|
@ -106,7 +106,13 @@ class CheckoutableListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ClientException $e) {
|
} catch (ClientException $e) {
|
||||||
|
if (strpos($e->getMessage(), 'channel_not_found') !== false) {
|
||||||
|
Log::warning(Setting::getSettings()->webhook_selected." notification failed: " . $e->getMessage());
|
||||||
|
return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_channel_not_found') );
|
||||||
|
}
|
||||||
|
else {
|
||||||
Log::error("ClientException caught during checkin notification: " . $e->getMessage());
|
Log::error("ClientException caught during checkin notification: " . $e->getMessage());
|
||||||
|
}
|
||||||
return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_fail') );
|
return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_fail') );
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::error(ucfirst(Setting::getSettings()->webhook_selected) . ' webhook notification failed:', [
|
Log::error(ucfirst(Setting::getSettings()->webhook_selected) . ' webhook notification failed:', [
|
||||||
|
@ -156,7 +162,7 @@ class CheckoutableListener
|
||||||
$ccEmails = array_filter($adminCcEmailsArray);
|
$ccEmails = array_filter($adminCcEmailsArray);
|
||||||
$mailable = $this->getCheckinMailType($event);
|
$mailable = $this->getCheckinMailType($event);
|
||||||
$notifiable = $this->getNotifiables($event);
|
$notifiable = $this->getNotifiables($event);
|
||||||
if ($event->checkedOutTo->locale){
|
if ($event->checkedOutTo?->locale) {
|
||||||
$mailable->locale($event->checkedOutTo->locale);
|
$mailable->locale($event->checkedOutTo->locale);
|
||||||
}
|
}
|
||||||
// Send email notifications
|
// Send email notifications
|
||||||
|
@ -196,8 +202,14 @@ class CheckoutableListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ClientException $e) {
|
} catch (ClientException $e) {
|
||||||
|
if (strpos($e->getMessage(), 'channel_not_found') !== false) {
|
||||||
|
Log::warning(Setting::getSettings()->webhook_selected." notification failed: " . $e->getMessage());
|
||||||
|
return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_channel_not_found') );
|
||||||
|
}
|
||||||
|
else {
|
||||||
Log::error("ClientException caught during checkin notification: " . $e->getMessage());
|
Log::error("ClientException caught during checkin notification: " . $e->getMessage());
|
||||||
return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) . trans('admin/settings/message.webhook.webhook_fail'));
|
return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) . trans('admin/settings/message.webhook.webhook_fail'));
|
||||||
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::error(ucfirst(Setting::getSettings()->webhook_selected) . ' webhook notification failed:', [
|
Log::error(ucfirst(Setting::getSettings()->webhook_selected) . ' webhook notification failed:', [
|
||||||
'error' => $e->getMessage(),
|
'error' => $e->getMessage(),
|
||||||
|
|
|
@ -307,7 +307,7 @@ class CustomField extends Model
|
||||||
public function formatFieldValuesAsArray()
|
public function formatFieldValuesAsArray()
|
||||||
{
|
{
|
||||||
$result = [];
|
$result = [];
|
||||||
$arr = preg_split('/\\r\\n|\\r|\\n/', $this->field_values);
|
$arr = preg_split('/\\r\\n|\\r|\\n/', $this->field_values ?? '');
|
||||||
|
|
||||||
if (($this->element != 'checkbox') && ($this->element != 'radio')) {
|
if (($this->element != 'checkbox') && ($this->element != 'radio')) {
|
||||||
$result[''] = 'Select '.strtolower($this->format);
|
$result[''] = 'Select '.strtolower($this->format);
|
||||||
|
|
|
@ -79,7 +79,7 @@ class CheckinAssetNotification extends Notification
|
||||||
|
|
||||||
$fields = [
|
$fields = [
|
||||||
trans('general.administrator') => '<'.$admin->present()->viewUrl().'|'.$admin->present()->fullName().'>',
|
trans('general.administrator') => '<'.$admin->present()->viewUrl().'|'.$admin->present()->fullName().'>',
|
||||||
trans('general.status') => $item->assetstatus->name,
|
trans('general.status') => $item->assetstatus?->name,
|
||||||
trans('general.location') => ($item->location) ? $item->location->name : '',
|
trans('general.location') => ($item->location) ? $item->location->name : '',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -106,9 +106,9 @@ class CheckinAssetNotification extends Notification
|
||||||
->title(trans('mail.Asset_Checkin_Notification'))
|
->title(trans('mail.Asset_Checkin_Notification'))
|
||||||
->addStartGroupToSection('activityText')
|
->addStartGroupToSection('activityText')
|
||||||
->fact(htmlspecialchars_decode($item->present()->name), '', 'activityText')
|
->fact(htmlspecialchars_decode($item->present()->name), '', 'activityText')
|
||||||
->fact(trans('mail.checked_into'), $item->location->name ? $item->location->name : '')
|
->fact(trans('mail.checked_into'), ($item->location) ? $item->location->name : '')
|
||||||
->fact(trans('mail.Asset_Checkin_Notification') . " by ", $admin->present()->fullName())
|
->fact(trans('mail.Asset_Checkin_Notification') . " by ", $admin->present()->fullName())
|
||||||
->fact(trans('admin/hardware/form.status'), $item->assetstatus->name)
|
->fact(trans('admin/hardware/form.status'), $item->assetstatus?->name)
|
||||||
->fact(trans('mail.notes'), $note ?: '');
|
->fact(trans('mail.notes'), $note ?: '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,9 +116,9 @@ class CheckinAssetNotification extends Notification
|
||||||
$message = trans('mail.Asset_Checkin_Notification');
|
$message = trans('mail.Asset_Checkin_Notification');
|
||||||
$details = [
|
$details = [
|
||||||
trans('mail.asset') => htmlspecialchars_decode($item->present()->name),
|
trans('mail.asset') => htmlspecialchars_decode($item->present()->name),
|
||||||
trans('mail.checked_into') => $item->location->name ? $item->location->name : '',
|
trans('mail.checked_into') => ($item->location) ? $item->location->name : '',
|
||||||
trans('mail.Asset_Checkin_Notification')." by " => $admin->present()->fullName(),
|
trans('mail.Asset_Checkin_Notification')." by " => $admin->present()->fullName(),
|
||||||
trans('admin/hardware/form.status') => $item->assetstatus->name,
|
trans('admin/hardware/form.status') => $item->assetstatus?->name,
|
||||||
trans('mail.notes') => $note ?: '',
|
trans('mail.notes') => $note ?: '',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -142,8 +142,8 @@ class CheckinAssetNotification extends Notification
|
||||||
Section::create(
|
Section::create(
|
||||||
KeyValue::create(
|
KeyValue::create(
|
||||||
trans('mail.checked_into') ?: '',
|
trans('mail.checked_into') ?: '',
|
||||||
$item->location->name ? $item->location->name : '',
|
($item->location) ? $item->location->name : '',
|
||||||
trans('admin/hardware/form.status').": ".$item->assetstatus->name,
|
trans('admin/hardware/form.status').": ".$item->assetstatus?->name,
|
||||||
)
|
)
|
||||||
->onClick(route('hardware.show', $item->id))
|
->onClick(route('hardware.show', $item->id))
|
||||||
)
|
)
|
||||||
|
|
|
@ -209,7 +209,7 @@ class Saml
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$custom_settings = preg_split('/\r\n|\r|\n/', $setting->saml_custom_settings);
|
$custom_settings = preg_split('/\r\n|\r|\n/', $setting->saml_custom_settings ?? '');
|
||||||
if ($custom_settings) {
|
if ($custom_settings) {
|
||||||
foreach ($custom_settings as $custom_setting) {
|
foreach ($custom_settings as $custom_setting) {
|
||||||
$split = explode('=', $custom_setting, 2);
|
$split = explode('=', $custom_setting, 2);
|
||||||
|
|
|
@ -118,9 +118,6 @@ class Label implements View
|
||||||
|
|
||||||
if ($template->getSupport2DBarcode()) {
|
if ($template->getSupport2DBarcode()) {
|
||||||
$barcode2DType = $settings->label2_2d_type;
|
$barcode2DType = $settings->label2_2d_type;
|
||||||
$barcode2DType = ($barcode2DType == 'default') ?
|
|
||||||
$settings->barcode_type :
|
|
||||||
$barcode2DType;
|
|
||||||
if (($barcode2DType != 'none') && (!is_null($barcode2DType))) {
|
if (($barcode2DType != 'none') && (!is_null($barcode2DType))) {
|
||||||
switch ($settings->label2_2d_target) {
|
switch ($settings->label2_2d_target) {
|
||||||
case 'ht_tag':
|
case 'ht_tag':
|
||||||
|
|
8
package-lock.json
generated
8
package-lock.json
generated
|
@ -31,7 +31,7 @@
|
||||||
"less-loader": "^6.0",
|
"less-loader": "^6.0",
|
||||||
"list.js": "^1.5.0",
|
"list.js": "^1.5.0",
|
||||||
"morris.js": "github:morrisjs/morris.js",
|
"morris.js": "github:morrisjs/morris.js",
|
||||||
"papaparse": "5.4.1",
|
"papaparse": "5.5.1",
|
||||||
"select2": "4.0.13",
|
"select2": "4.0.13",
|
||||||
"sheetjs": "^2.0.0",
|
"sheetjs": "^2.0.0",
|
||||||
"signature_pad": "^4.2.0",
|
"signature_pad": "^4.2.0",
|
||||||
|
@ -8368,9 +8368,9 @@
|
||||||
"license": "(MIT AND Zlib)"
|
"license": "(MIT AND Zlib)"
|
||||||
},
|
},
|
||||||
"node_modules/papaparse": {
|
"node_modules/papaparse": {
|
||||||
"version": "5.4.1",
|
"version": "5.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.1.tgz",
|
||||||
"integrity": "sha512-HipMsgJkZu8br23pW15uvo6sib6wne/4woLZPlFf3rpDyMe9ywEXUsuD7+6K9PRkJlVT51j/sCOYDKGGS3ZJrw=="
|
"integrity": "sha512-EuEKUhyxrHVozD7g3/ztsJn6qaKse8RPfR6buNB2dMJvdtXNhcw8jccVi/LxNEY3HVrV6GO6Z4OoeCG9Iy9wpA=="
|
||||||
},
|
},
|
||||||
"node_modules/param-case": {
|
"node_modules/param-case": {
|
||||||
"version": "3.0.4",
|
"version": "3.0.4",
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
"less-loader": "^6.0",
|
"less-loader": "^6.0",
|
||||||
"list.js": "^1.5.0",
|
"list.js": "^1.5.0",
|
||||||
"morris.js": "github:morrisjs/morris.js",
|
"morris.js": "github:morrisjs/morris.js",
|
||||||
"papaparse": "5.4.1",
|
"papaparse": "5.5.1",
|
||||||
"select2": "4.0.13",
|
"select2": "4.0.13",
|
||||||
"sheetjs": "^2.0.0",
|
"sheetjs": "^2.0.0",
|
||||||
"signature_pad": "^4.2.0",
|
"signature_pad": "^4.2.0",
|
||||||
|
|
|
@ -46,5 +46,6 @@ return [
|
||||||
'error_redirect' => 'ERROR: 301/302 :endpoint returns a redirect. For security reasons, we don’t follow redirects. Please use the actual endpoint.',
|
'error_redirect' => 'ERROR: 301/302 :endpoint returns a redirect. For security reasons, we don’t follow redirects. Please use the actual endpoint.',
|
||||||
'error_misc' => 'Something went wrong. :( ',
|
'error_misc' => 'Something went wrong. :( ',
|
||||||
'webhook_fail' => ' webhook notification failed: Check to make sure the URL is still valid.',
|
'webhook_fail' => ' webhook notification failed: Check to make sure the URL is still valid.',
|
||||||
|
'webhook_channel_not_found' => ' webhook channel not found.'
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
|
@ -128,7 +128,7 @@
|
||||||
<div class="form-group{{ $errors->has('image_delete') ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has('image_delete') ? ' has-error' : '' }}">
|
||||||
<div class="col-md-9 col-md-offset-3">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
<label for="image_delete" class="form-control">
|
<label for="image_delete" class="form-control">
|
||||||
{{ Form::checkbox('image_delete', '1', old('image_delete'), ['id' => 'image_delete', 'aria-label'=>'image_delete']) }}
|
<input type="checkbox" name="image_delete" id="image_delete" value="1" @checked(old('image_delete')) aria-label="image_delete">
|
||||||
{{ trans('general.image_delete') }}
|
{{ trans('general.image_delete') }}
|
||||||
</label>
|
</label>
|
||||||
{!! $errors->first('image_delete', '<span class="alert-msg">:message</span>') !!}
|
{!! $errors->first('image_delete', '<span class="alert-msg">:message</span>') !!}
|
||||||
|
@ -150,13 +150,23 @@
|
||||||
@if ($snipeSettings->two_factor_enabled=='1')
|
@if ($snipeSettings->two_factor_enabled=='1')
|
||||||
<div class="form-group {{ $errors->has('two_factor_optin') ? 'has-error' : '' }}">
|
<div class="form-group {{ $errors->has('two_factor_optin') ? 'has-error' : '' }}">
|
||||||
<div class="col-md-7 col-md-offset-3">
|
<div class="col-md-7 col-md-offset-3">
|
||||||
@can('self.two_factor')
|
<label
|
||||||
<label class="form-control">{{ Form::checkbox('two_factor_optin', '1', old('two_factor_optin', $user->two_factor_optin)) }}
|
for="two_factor_optin"
|
||||||
@else
|
@class([
|
||||||
<label class="form-control form-control--disabled">{{ Form::checkbox('two_factor_optin', '1', old('two_factor_optin', $user->two_factor_optin),['disabled' => 'disabled']) }}
|
'form-control',
|
||||||
@endcan
|
'form-control--disabled' => auth()->user()->cannot('self.two_factor'),
|
||||||
|
])
|
||||||
{{ trans('admin/settings/general.two_factor_enabled_text') }}</label>
|
>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="two_factor_optin"
|
||||||
|
id="two_factor_optin"
|
||||||
|
value="1"
|
||||||
|
@checked(old('two_factor_optin', $user->two_factor_optin))
|
||||||
|
@disabled(auth()->user()->cannot('self.two_factor'))
|
||||||
|
>
|
||||||
|
{{ trans('admin/settings/general.two_factor_enabled_text') }}
|
||||||
|
</label>
|
||||||
@can('self.two_factor')
|
@can('self.two_factor')
|
||||||
<p class="help-block">{{ trans('admin/settings/general.two_factor_enabled_warning') }}</p>
|
<p class="help-block">{{ trans('admin/settings/general.two_factor_enabled_warning') }}</p>
|
||||||
@else
|
@else
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<div class="checkbox-inline">
|
<div class="checkbox-inline">
|
||||||
<label>
|
<label>
|
||||||
{{ Form::checkbox('required', 'on', old('required')) }}
|
<input type="checkbox" name="required" value="on" @checked(old('required'))>
|
||||||
<span style="padding-left: 10px;">{{ trans('admin/custom_fields/general.required') }}</span>
|
<span style="padding-left: 10px;">{{ trans('admin/custom_fields/general.required') }}</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
|
||||||
<label for="name" class="col-md-3 control-label">{{ trans('admin/groups/titles.group_name') }}</label>
|
<label for="name" class="col-md-3 control-label">{{ trans('admin/groups/titles.group_name') }}</label>
|
||||||
<div class="col-md-6 required">
|
<div class="col-md-6 required">
|
||||||
<input class="form-control" type="text" name="name" id="name" value="{{ old('name', $group->name) }}" />
|
<input class="form-control" type="text" name="name" id="name" value="{{ old('name', $group->name) }}" required />
|
||||||
{!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -88,11 +88,23 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-1 permissions-item">
|
<td class="col-md-1 permissions-item">
|
||||||
<label for="{{ 'permission['.$localPermission['permission'].']' }}" style="form-control"><span class="sr-only">{{ trans('admin/groups/titles.allow')}} {{ 'permission['.$localPermission['permission'].']' }}</span></label>
|
<label for="{{ 'permission['.$localPermission['permission'].']' }}" style="form-control"><span class="sr-only">{{ trans('admin/groups/titles.allow')}} {{ 'permission['.$localPermission['permission'].']' }}</span></label>
|
||||||
{{ Form::radio('permission['.$localPermission['permission'].']', '1',(array_key_exists($localPermission['permission'], $groupPermissions) ? $groupPermissions[$localPermission['permission'] ] == '1' : null),['value'=>"grant", 'aria-label'=> 'permission['.$localPermission['permission'].']']) }}
|
<input
|
||||||
|
value="1"
|
||||||
|
aria-label="permission[{{ $localPermission['permission'] }}]"
|
||||||
|
@checked(array_key_exists($localPermission['permission'], $groupPermissions) && $groupPermissions[$localPermission['permission']] == '1')
|
||||||
|
name="permission[{{ $localPermission['permission'] }}]"
|
||||||
|
type="radio"
|
||||||
|
>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-1 permissions-item">
|
<td class="col-md-1 permissions-item">
|
||||||
<label for="{{ 'permission['.$localPermission['permission'].']' }}"><span class="sr-only">{{ trans('admin/groups/titles.deny')}} {{ 'permission['.$localPermission['permission'].']' }}</span></label>
|
<label for="{{ 'permission['.$localPermission['permission'].']' }}"><span class="sr-only">{{ trans('admin/groups/titles.deny')}} {{ 'permission['.$localPermission['permission'].']' }}</span></label>
|
||||||
{{ Form::radio('permission['.$localPermission['permission'].']', '0',(array_key_exists($localPermission['permission'], $groupPermissions) ? $groupPermissions[$localPermission['permission'] ] == '0' : null),['value'=>"grant", 'aria-label'=> 'permission['.$localPermission['permission'].']']) }}
|
<input
|
||||||
|
value="0"
|
||||||
|
aria-label="permission[{{ $localPermission['permission'] }}]"
|
||||||
|
@checked(array_key_exists($localPermission['permission'], $groupPermissions) && $groupPermissions[$localPermission['permission']] == '0')
|
||||||
|
name="permission[{{ $localPermission['permission'] }}]"
|
||||||
|
type="radio"
|
||||||
|
>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -109,11 +121,23 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-1 permissions-item" style="vertical-align: bottom">
|
<td class="col-md-1 permissions-item" style="vertical-align: bottom">
|
||||||
<label for="{{ $area }}"><span class="sr-only">{{ trans('admin/groups/titles.allow')}} {{ $area }}</span></label>
|
<label for="{{ $area }}"><span class="sr-only">{{ trans('admin/groups/titles.allow')}} {{ $area }}</span></label>
|
||||||
{{ Form::radio("$area", '1',false,['value'=>"grant", 'data-checker-group' => str_slug($area), 'aria-label'=> $area]) }}
|
<input
|
||||||
|
value="1"
|
||||||
|
data-checker-group="{{ str_slug($area) }}"
|
||||||
|
aria-label="{{ $area }}"
|
||||||
|
name="{{ $area }}"
|
||||||
|
type="radio"
|
||||||
|
>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-1 permissions-item">
|
<td class="col-md-1 permissions-item">
|
||||||
<label for="{{ $area }}"><span class="sr-only">{{ trans('admin/groups/titles.deny')}} {{ $area }}</span></label>
|
<label for="{{ $area }}"><span class="sr-only">{{ trans('admin/groups/titles.deny')}} {{ $area }}</span></label>
|
||||||
{{ Form::radio("$area", '0',false,['value'=>"deny", 'data-checker-group' => str_slug($area), 'aria-label'=> $area]) }}
|
<input
|
||||||
|
value="0"
|
||||||
|
data-checker-group="{{ str_slug($area) }}"
|
||||||
|
aria-label="{{ $area }}"
|
||||||
|
name="{{ $area }}"
|
||||||
|
type="radio"
|
||||||
|
>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -129,11 +153,25 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-1 permissions-item">
|
<td class="col-md-1 permissions-item">
|
||||||
<label for="{{ 'permission['.$this_permission['permission'].']' }}"><span class="sr-only">{{ trans('admin/groups/titles.allow')}} {{ 'permission['.$this_permission['permission'].']' }}</span></label>
|
<label for="{{ 'permission['.$this_permission['permission'].']' }}"><span class="sr-only">{{ trans('admin/groups/titles.allow')}} {{ 'permission['.$this_permission['permission'].']' }}</span></label>
|
||||||
{{ Form::radio('permission['.$this_permission['permission'].']', '1',(array_key_exists($this_permission['permission'], $groupPermissions) ? $groupPermissions[$this_permission['permission'] ] == '1' : null),['class'=>'radiochecker-'.str_slug($area), 'aria-label'=>'permission['.$this_permission['permission'].']']) }}
|
<input
|
||||||
|
class="radiochecker-{{ str_slug($area) }}"
|
||||||
|
aria-label="permission[{{ $this_permission['permission'] }}]"
|
||||||
|
@checked(array_key_exists($this_permission['permission'], $groupPermissions) && $groupPermissions[$this_permission['permission']] == '1')
|
||||||
|
name="permission[{{ $this_permission['permission'] }}]"
|
||||||
|
type="radio"
|
||||||
|
value="1"
|
||||||
|
>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-1 permissions-item">
|
<td class="col-md-1 permissions-item">
|
||||||
<label for="{{ 'permission['.$this_permission['permission'].']' }}"><span class="sr-only">{{ trans('admin/groups/titles.deny')}} {{ 'permission['.$this_permission['permission'].']' }}</span></label>
|
<label for="{{ 'permission['.$this_permission['permission'].']' }}"><span class="sr-only">{{ trans('admin/groups/titles.deny')}} {{ 'permission['.$this_permission['permission'].']' }}</span></label>
|
||||||
{{ Form::radio('permission['.$this_permission['permission'].']', '0',(array_key_exists($this_permission['permission'], $groupPermissions) ? $groupPermissions[$this_permission['permission'] ] == '0' : null),['class'=>'radiochecker-'.str_slug($area), 'aria-label'=>'permission['.$this_permission['permission'].']']) }}
|
<input
|
||||||
|
class="radiochecker-{{ str_slug($area) }}"
|
||||||
|
aria-label="permission[{{ $this_permission['permission'] }}]"
|
||||||
|
@checked(array_key_exists($this_permission['permission'], $groupPermissions) && $groupPermissions[$this_permission['permission']] == '0')
|
||||||
|
name="permission[{{ $this_permission['permission'] }}]"
|
||||||
|
type="radio"
|
||||||
|
value="0"
|
||||||
|
>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::checkbox('null_name', '1', false) }}
|
<input type="checkbox" name="null_name" value="1">
|
||||||
{{ trans_choice('general.set_to_null', count($assets), ['selection_count' => count($assets)]) }}
|
{{ trans_choice('general.set_to_null', count($assets), ['selection_count' => count($assets)]) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::checkbox('null_purchase_date', '1', false) }}
|
<input type="checkbox" name="null_purchase_date" value="1">
|
||||||
{{ trans_choice('general.set_to_null', count($assets),['selection_count' => count($assets)]) }}
|
{{ trans_choice('general.set_to_null', count($assets),['selection_count' => count($assets)]) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::checkbox('null_expected_checkin_date', '1', false) }}
|
<input type="checkbox" name="null_expected_checkin_date" value="1">
|
||||||
{{ trans_choice('general.set_to_null', count($assets), ['selection_count' => count($assets)]) }}
|
{{ trans_choice('general.set_to_null', count($assets), ['selection_count' => count($assets)]) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::checkbox('null_asset_eol_date', '1', false) }}
|
<input type="checkbox" name="null_asset_eol_date" value="1">
|
||||||
{{ trans_choice('general.set_to_null', count($assets),['selection_count' => count($assets)]) }}
|
{{ trans_choice('general.set_to_null', count($assets),['selection_count' => count($assets)]) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-9 col-md-offset-3">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::checkbox('calc_eol', '1', false) }}
|
<input type="checkbox" name="calc_eol" value="1">
|
||||||
{{ trans('admin/hardware/form.calc_eol') }}
|
{{ trans('admin/hardware/form.calc_eol') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -140,15 +140,15 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-9 col-md-offset-3">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::radio('update_real_loc', '1', old('update_real_loc'), ['checked'=> 'checked', 'aria-label'=>'update_real_loc']) }}
|
<input type="radio" name="update_real_loc" value="1" checked aria-label="update_real_loc">
|
||||||
{{ trans('admin/hardware/form.asset_location_update_default_current') }}
|
{{ trans('admin/hardware/form.asset_location_update_default_current') }}
|
||||||
</label>
|
</label>
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::radio('update_real_loc', '0', old('update_real_loc'), ['aria-label'=>'update_default_loc']) }}
|
<input type="radio" name="update_real_loc" value="0" aria-label="update_default_loc">
|
||||||
{{ trans('admin/hardware/form.asset_location_update_default') }}
|
{{ trans('admin/hardware/form.asset_location_update_default') }}
|
||||||
</label>
|
</label>
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::radio('update_real_loc', '2', old('update_real_loc'), ['aria-label'=>'update_default_loc']) }}
|
<input type="radio" name="update_real_loc" value="2" aria-label="update_default_loc">
|
||||||
{{ trans('admin/hardware/form.asset_location_update_actual') }}
|
{{ trans('admin/hardware/form.asset_location_update_actual') }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::checkbox('null_next_audit_date', '1', false) }}
|
<input type="checkbox" name="null_next_audit_date" value="1">
|
||||||
{{ trans_choice('general.set_to_null', count($assets), ['selection_count' => count($assets)]) }}
|
{{ trans_choice('general.set_to_null', count($assets), ['selection_count' => count($assets)]) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
<!-- Asset Tag -->
|
<!-- Asset Tag -->
|
||||||
<div class="form-group {{ $errors->has('asset_tag') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('asset_tag') ? 'error' : '' }}">
|
||||||
{{ Form::label('asset_tag', trans('general.asset_tag'), array('class' => 'col-md-3 control-label', 'id' => 'checkin_tag')) }}
|
<label for="asset_tag" class="col-md-3 control-label" id="checkin_tag">{{ trans('general.asset_tag') }}</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<div class="input-group col-md-11 required">
|
<div class="input-group col-md-11 required">
|
||||||
<input type="text" class="form-control" name="asset_tag" id="asset_tag" value="{{ old('asset_tag') }}" required>
|
<input type="text" class="form-control" name="asset_tag" id="asset_tag" value="{{ old('asset_tag') }}" required>
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
<!-- Note -->
|
<!-- Note -->
|
||||||
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
||||||
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
|
<label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>
|
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>
|
||||||
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
<!-- Next Audit -->
|
<!-- Next Audit -->
|
||||||
<div class="form-group {{ $errors->has('asset_tag') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('asset_tag') ? 'error' : '' }}">
|
||||||
{{ Form::label('asset_tag', trans('general.asset_tag'), array('class' => 'col-md-3 control-label', 'id' => 'audit_tag')) }}
|
<label for="asset_tag" class="col-md-3 control-label" id="audit_tag">{{ trans('general.asset_tag') }}</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<div class="input-group date col-md-11 required" data-date-format="yyyy-mm-dd">
|
<div class="input-group date col-md-11 required" data-date-format="yyyy-mm-dd">
|
||||||
<input type="text" class="form-control" name="asset_tag" id="asset_tag" value="{{ old('asset_tag') }}">
|
<input type="text" class="form-control" name="asset_tag" id="asset_tag" value="{{ old('asset_tag') }}">
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
<!-- Next Audit -->
|
<!-- Next Audit -->
|
||||||
<div class="form-group {{ $errors->has('next_audit_date') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('next_audit_date') ? 'error' : '' }}">
|
||||||
{{ Form::label('next_audit_date', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }}
|
<label for="next_audit_date" class="col-md-3 control-label">{{ trans('general.next_audit_date') }}</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-clear-btn="true">
|
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-clear-btn="true">
|
||||||
<input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}">
|
<input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}">
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
<!-- Note -->
|
<!-- Note -->
|
||||||
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
||||||
{{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }}
|
<label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>
|
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>
|
||||||
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
<!--Webhook endpoint-->
|
<!--Webhook endpoint-->
|
||||||
<div class="form-group{{ $errors->has('webhook_endpoint') ? ' error' : '' }}">
|
<div class="form-group{{ $errors->has('webhook_endpoint') ? ' error' : '' }}">
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
{{ Form::label('webhook_endpoint', trans('admin/settings/general.webhook_endpoint',['app' => $webhook_name ])) }}
|
<label for="webhook_endpoint">{{ trans('admin/settings/general.webhook_endpoint',['app' => $webhook_name ]) }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9 required">
|
<div class="col-md-9 required">
|
||||||
<input type="text" wire:model.blur="webhook_endpoint" class="form-control" placeholder="{{$webhook_placeholder}}" value="{{old('webhook_endpoint', $webhook_endpoint)}}"{{ Helper::isDemoMode() ? ' disabled' : ''}}>
|
<input type="text" wire:model.blur="webhook_endpoint" class="form-control" placeholder="{{$webhook_placeholder}}" value="{{old('webhook_endpoint', $webhook_endpoint)}}"{{ Helper::isDemoMode() ? ' disabled' : ''}}>
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
@if($webhook_selected != 'microsoft' && $webhook_selected!= 'google')
|
@if($webhook_selected != 'microsoft' && $webhook_selected!= 'google')
|
||||||
<div class="form-group{{ $errors->has('webhook_channel') ? ' error' : '' }}">
|
<div class="form-group{{ $errors->has('webhook_channel') ? ' error' : '' }}">
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
{{ Form::label('webhook_channel', trans('admin/settings/general.webhook_channel',['app' => $webhook_name ])) }}
|
<label for="webhook_channel">{{ trans('admin/settings/general.webhook_channel',['app' => $webhook_name ]) }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9 required">
|
<div class="col-md-9 required">
|
||||||
<input type="text" wire:model.blur="webhook_channel" class="form-control" placeholder="#IT-Ops" value="{{ old('webhook_channel', $webhook_channel) }}"{{ Helper::isDemoMode() ? ' disabled' : ''}}>
|
<input type="text" wire:model.blur="webhook_channel" class="form-control" placeholder="#IT-Ops" value="{{ old('webhook_channel', $webhook_channel) }}"{{ Helper::isDemoMode() ? ' disabled' : ''}}>
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
@if($webhook_selected != 'microsoft' && $webhook_selected != 'google')
|
@if($webhook_selected != 'microsoft' && $webhook_selected != 'google')
|
||||||
<div class="form-group{{ $errors->has('webhook_botname') ? ' error' : '' }}">
|
<div class="form-group{{ $errors->has('webhook_botname') ? ' error' : '' }}">
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
{{ Form::label('webhook_botname', trans('admin/settings/general.webhook_botname',['app' => $webhook_name ])) }}
|
<label for="webhook_botname">{{ trans('admin/settings/general.webhook_botname',['app' => $webhook_name ]) }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input type="text" wire:model.blur="webhook_botname" class='form-control' placeholder="Snipe-Bot" {{ old('webhook_botname', $webhook_botname)}}{{ Helper::isDemoMode() ? ' disabled' : ''}}>
|
<input type="text" wire:model.blur="webhook_botname" class='form-control' placeholder="Snipe-Bot" {{ old('webhook_botname', $webhook_botname)}}{{ Helper::isDemoMode() ? ' disabled' : ''}}>
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
|
|
||||||
@foreach ($assets as $asset)
|
@foreach ($assets as $asset)
|
||||||
@php
|
@php
|
||||||
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->archived == 1){
|
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus?->archived == 1){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@endphp
|
@endphp
|
||||||
|
|
|
@ -84,15 +84,15 @@
|
||||||
<div class="col-md-7 col-md-offset-3">
|
<div class="col-md-7 col-md-offset-3">
|
||||||
|
|
||||||
<label for="requestable_nochange" class="form-control">
|
<label for="requestable_nochange" class="form-control">
|
||||||
{{ Form::radio('requestable', '', true, ['id' => 'requestable_nochange', 'aria-label'=>'requestable_nochange']) }}
|
<input type="radio" name="requestable" id="requestable_nochange" value="" aria-label="requestable_nochange" checked>
|
||||||
{{ trans('admin/hardware/general.requestable_status_warning')}}
|
{{ trans('admin/hardware/general.requestable_status_warning')}}
|
||||||
</label>
|
</label>
|
||||||
<label for="requestable" class="form-control">
|
<label for="requestable" class="form-control">
|
||||||
{{ Form::radio('requestable', '1', old('requestable'), ['id' => 'requestable', 'aria-label'=>'requestable']) }}
|
<input type="radio" name="requestable" id="requestable" value="1" aria-label="requestable">
|
||||||
{{ trans('admin/hardware/general.requestable')}}
|
{{ trans('admin/hardware/general.requestable')}}
|
||||||
</label>
|
</label>
|
||||||
<label for="not_requestable" class="form-control">
|
<label for="not_requestable" class="form-control">
|
||||||
{{ Form::radio('requestable', '0', old('requestable'), ['id' => 'not_requestable','aria-label'=>'not_requestable']) }}
|
<input type="radio" name="requestable" id="not_requestable" value="0" aria-label="not_requestable">
|
||||||
{{ trans('admin/hardware/general.not_requestable')}}
|
{{ trans('admin/hardware/general.not_requestable')}}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="form-group" id="assignto_selector"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div class="form-group" id="assignto_selector"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
{{ Form::label('checkout_to_type', trans('admin/hardware/form.checkout_to'), array('class' => 'col-md-3 control-label')) }}
|
<label for="checkout_to_type" class="col-md-3 control-label">{{ trans('admin/hardware/form.checkout_to') }}</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
@if ((isset($user_select)) && ($user_select!='false'))
|
@if ((isset($user_select)) && ($user_select!='false'))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Accessory -->
|
<!-- Accessory -->
|
||||||
<div id="assigned_accessory" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div id="assigned_accessory" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax select2" data-endpoint="accessories" data-placeholder="{{ trans('general.select_accessory') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_accessory_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}>
|
<select class="js-data-ajax select2" data-endpoint="accessories" data-placeholder="{{ trans('general.select_accessory') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_accessory_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="form-group {{ $errors->has('address') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('address') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('address', trans('general.address'), array('class' => 'col-md-3 control-label')) }}
|
<label for="address" class="col-md-3 control-label">{{ trans('general.address') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" aria-label="address" maxlength="191" name="address" type="text" id="address" value="{{ old('address', $item->address) }}">
|
<input class="form-control" aria-label="address" maxlength="191" name="address" type="text" id="address" value="{{ old('address', $item->address) }}">
|
||||||
{!! $errors->first('address', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('address', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group {{ $errors->has('city') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('city') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('city', trans('general.city'), array('class' => 'col-md-3 control-label')) }}
|
<label for="city" class="col-md-3 control-label">{{ trans('general.city') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" aria-label="city" maxlength="191" name="city" type="text" id="city" value="{{ old('city', $item->city) }}">
|
<input class="form-control" aria-label="city" maxlength="191" name="city" type="text" id="city" value="{{ old('city', $item->city) }}">
|
||||||
{!! $errors->first('city', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('city', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group {{ $errors->has('state') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('state') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('state', trans('general.state'), array('class' => 'col-md-3 control-label')) }}
|
<label for="state" class="col-md-3 control-label">{{ trans('general.state') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" aria-label="state" maxlength="191" name="state" type="text" id="state" value="{{ old('state', $item->state) }}">
|
<input class="form-control" aria-label="state" maxlength="191" name="state" type="text" id="state" value="{{ old('state', $item->state) }}">
|
||||||
{!! $errors->first('state', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('state', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group {{ $errors->has('country') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('country') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('country', trans('general.country'), array('class' => 'col-md-3 control-label')) }}
|
<label for="country" class="col-md-3 control-label">{{ trans('general.country') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
{!! Form::countries('country', old('country', $item->country), 'select2') !!}
|
{!! Form::countries('country', old('country', $item->country), 'select2') !!}
|
||||||
<p class="help-block">{{ trans('general.countries_manually_entered_help') }}</p>
|
<p class="help-block">{{ trans('general.countries_manually_entered_help') }}</p>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group {{ $errors->has('zip') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('zip') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('zip', trans('general.zip'), array('class' => 'col-md-3 control-label', 'maxlength'=>'10')) }}
|
<label for="zip" class="col-md-3 control-label" maxlength="10">{{ trans('general.zip') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" name="zip" type="text" id="zip" value="{{ old('zip', $item->zip) }}">
|
<input class="form-control" name="zip" type="text" id="zip" value="{{ old('zip', $item->zip) }}">
|
||||||
{!! $errors->first('zip', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('zip', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- Asset -->
|
<!-- Asset -->
|
||||||
<div id="{{ $asset_selector_div_id ?? "assigned_asset" }}"
|
<div id="{{ $asset_selector_div_id ?? "assigned_asset" }}"
|
||||||
class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax select2" data-endpoint="hardware" data-placeholder="{{ trans('general.select_asset') }}" aria-label="{{ $fieldname }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_asset_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{!! (!empty($asset_status_type)) ? ' data-asset-status-type="' . $asset_status_type . '"' : '' !!}{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}>
|
<select class="js-data-ajax select2" data-endpoint="hardware" data-placeholder="{{ trans('general.select_asset') }}" aria-label="{{ $fieldname }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_asset_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{!! (!empty($asset_status_type)) ? ' data-asset-status-type="' . $asset_status_type . '"' : '' !!}{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- Asset Model -->
|
<!-- Asset Model -->
|
||||||
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="categories/{{ (isset($category_type)) ? $category_type : 'assets' }}" data-placeholder="{{ trans('general.select_category') }}" name="{{ $fieldname }}" style="width: 100%" id="category_select_id" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
<select class="js-data-ajax" data-endpoint="categories/{{ (isset($category_type)) ? $category_type : 'assets' }}" data-placeholder="{{ trans('general.select_category') }}" name="{{ $fieldname }}" style="width: 100%" id="category_select_id" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@if (\App\Models\Company::isCurrentUserAuthorized())
|
@if (\App\Models\Company::isCurrentUserAuthorized())
|
||||||
<div class="form-group {{ $errors->has('company_id') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('company_id') ? ' has-error' : '' }}">
|
||||||
<div class="col-md-3 control-label">
|
<div class="col-md-3 control-label">
|
||||||
{{ Form::label('company_id', trans('general.company'), array('class' => 'col-md-3 control-label', 'for' => 'company_id')) }}
|
<label for="company_id" class="col-md-3 control-label">{{ trans('general.company') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7 col-sm-12">
|
<div class="col-md-7 col-sm-12">
|
||||||
{{ Form::select('company_id', $company_list , old('company_id', $item->company_id), array('class'=>'select2', 'style'=>'width:100%', 'required' => Helper::checkIfRequired($item, 'company_id') ? true : '')) }}
|
{{ Form::select('company_id', $company_list , old('company_id', $item->company_id), array('class'=>'select2', 'style'=>'width:100%', 'required' => Helper::checkIfRequired($item, 'company_id') ? true : '')) }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Consumable -->
|
<!-- Consumable -->
|
||||||
<div id="assigned_consumable" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div id="assigned_consumable" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
<div class="col-md-7{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}">
|
<div class="col-md-7{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}">
|
||||||
<select class="js-data-ajax select2" data-endpoint="consumables" data-placeholder="{{ trans('general.select_consumable') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_consumable_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}>
|
<select class="js-data-ajax select2" data-endpoint="consumables" data-placeholder="{{ trans('general.select_consumable') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_consumable_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Datepicker -->
|
<!-- Datepicker -->
|
||||||
<div class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
<div class="input-group col-md-4">
|
<div class="input-group col-md-4">
|
||||||
<div class="input-group date" data-provide="datepicker" data-date-clear-btn="true" data-date-format="yyyy-mm-dd" data-autoclose="true">
|
<div class="input-group date" data-provide="datepicker" data-date-clear-btn="true" data-date-format="yyyy-mm-dd" data-autoclose="true">
|
||||||
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="{{ $fieldname }}" id="{{ $fieldname }}" value="{{ old($fieldname, ($item->{$fieldname}) ? date('Y-m-d', strtotime($item->{$fieldname})) : '') }}" readonly style="background-color:inherit" maxlength="10">
|
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="{{ $fieldname }}" id="{{ $fieldname }}" value="{{ old($fieldname, ($item->{$fieldname}) ? date('Y-m-d', strtotime($item->{$fieldname})) : '') }}" readonly style="background-color:inherit" maxlength="10">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="assigned_user" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
<div id="assigned_user" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<select class="js-data-ajax" data-endpoint="departments" data-placeholder="{{ trans('general.select_department') }}" name="{{ $fieldname }}" style="width: 100%" id="department_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
<select class="js-data-ajax" data-endpoint="departments" data-placeholder="{{ trans('general.select_department') }}" name="{{ $fieldname }}" style="width: 100%" id="department_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="form-group {{ $errors->has('fax') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('fax') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('fax', trans('admin/suppliers/table.fax'), array('class' => 'col-md-3 control-label')) }}
|
<label for="fax" class="col-md-3 control-label">{{ trans('admin/suppliers/table.fax') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" type="text" name="fax" aria-label="fax" id="fax" value="{{ old('fax', $item->fax) }}" maxlength="34" />
|
<input class="form-control" type="text" name="fax" aria-label="fax" id="fax" value="{{ old('fax', $item->fax) }}" maxlength="34" />
|
||||||
{!! $errors->first('fax', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('fax', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="kit_id" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div id="kit_id" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="kits" data-placeholder="{{ trans('partials/forms/general.placeholder_kit') }}" name="{{ $fieldname }}" style="width: 100%" id="kit_id_select"{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}>
|
<select class="js-data-ajax" data-endpoint="kits" data-placeholder="{{ trans('partials/forms/general.placeholder_kit') }}" name="{{ $fieldname }}" style="width: 100%" id="kit_id_select"{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- License -->
|
<!-- License -->
|
||||||
<div id="assigned_license" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div id="assigned_license" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax select2" data-endpoint="licenses" data-placeholder="{{ trans('general.select_license') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_license_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}>
|
<select class="js-data-ajax select2" data-endpoint="licenses" data-placeholder="{{ trans('general.select_license') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_license_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- Location -->
|
<!-- Location -->
|
||||||
<div id="location_id" class="form-group{{ $errors->has('location_id') ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div id="location_id" class="form-group{{ $errors->has('location_id') ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
|
|
||||||
{{ Form::label('location_id', $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="location_id" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('general.select_location') }}" name="location_id" style="width: 100%" id="location_id_location_select" aria-label="location_id">
|
<select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('general.select_location') }}" name="location_id" style="width: 100%" id="location_id_location_select" aria-label="location_id">
|
||||||
@if ($location_id = old('location_id', (isset($user)) ? $user->location_id : ''))
|
@if ($location_id = old('location_id', (isset($user)) ? $user->location_id : ''))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- Location -->
|
<!-- Location -->
|
||||||
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('general.select_location') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ $fieldname }}_location_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}{!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}>
|
<select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('general.select_location') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ $fieldname }}_location_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}{!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}>
|
||||||
@isset($selected)
|
@isset($selected)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- Asset Model -->
|
<!-- Asset Model -->
|
||||||
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="manufacturers" data-placeholder="{{ trans('general.select_manufacturer') }}" name="{{ $fieldname }}" style="width: 100%" id="manufacturer_select_id" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
<select class="js-data-ajax" data-endpoint="manufacturers" data-placeholder="{{ trans('general.select_manufacturer') }}" name="{{ $fieldname }}" style="width: 100%" id="manufacturer_select_id" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- Asset Model -->
|
<!-- Asset Model -->
|
||||||
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="models" data-placeholder="{{ trans('general.select_model') }}" name="{{ $fieldname }}" style="width: 100%" id="model_select_id" aria-label="{{ $fieldname }}"{{ ((isset($field_req)) || ((isset($required) && ($required =='true')))) ? ' required' : '' }}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
<select class="js-data-ajax" data-endpoint="models" data-placeholder="{{ trans('general.select_model') }}" name="{{ $fieldname }}" style="width: 100%" id="model_select_id" aria-label="{{ $fieldname }}"{{ ((isset($field_req)) || ((isset($required) && ($required =='true')))) ? ' required' : '' }}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="form-group {{ $errors->has('phone') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('phone') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('phone', trans('admin/suppliers/table.phone'), array('class' => 'col-md-3 control-label')) }}
|
<label for="phone" class="col-md-3 control-label">{{ trans('admin/suppliers/table.phone') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" aria-label="phone" maxlength="191" name="phone" type="text" id="phone" value="{{ old('phone', $item->phone) }}">
|
<input class="form-control" aria-label="phone" maxlength="191" name="phone" type="text" id="phone" value="{{ old('phone', $item->phone) }}">
|
||||||
{!! $errors->first('phone', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('phone', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!-- Asset Model -->
|
<!-- Asset Model -->
|
||||||
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="statuslabels" data-placeholder="{{ trans('general.select_statuslabel') }}" name="{{ $fieldname }}" style="width: 100%" id="status_select_id" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
<select class="js-data-ajax" data-endpoint="statuslabels" data-placeholder="{{ trans('general.select_statuslabel') }}" name="{{ $fieldname }}" style="width: 100%" id="status_select_id" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' required ' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="assigned_user" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
<div id="assigned_user" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="suppliers" data-placeholder="{{ trans('general.select_supplier') }}" name="{{ $fieldname }}" style="width: 100%" id="supplier_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}{{ (isset($item) && (Helper::checkIfRequired($item, $fieldname))) ? ' required' : '' }}>
|
<select class="js-data-ajax" data-endpoint="suppliers" data-placeholder="{{ trans('general.select_supplier') }}" name="{{ $fieldname }}" style="width: 100%" id="supplier_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}{{ (isset($item) && (Helper::checkIfRequired($item, $fieldname))) ? ' required' : '' }}>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="assigned_user" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
<div id="assigned_user" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ $translated_name }}</label>
|
||||||
|
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<select class="js-data-ajax" data-endpoint="users" data-placeholder="{{ trans('general.select_user') }}" name="{{ $fieldname }}" style="width: 100%" id="assigned_user_select" aria-label="{{ $fieldname }}"{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}>
|
<select class="js-data-ajax" data-endpoint="users" data-placeholder="{{ trans('general.select_user') }}" name="{{ $fieldname }}" style="width: 100%" id="assigned_user_select" aria-label="{{ $fieldname }}"{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}>
|
||||||
|
|
|
@ -581,15 +581,36 @@
|
||||||
|
|
||||||
<div class="col-md-9 col-md-offset-3">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::radio('deleted_assets', 'exclude_deleted', $template->radioValue('deleted_assets', 'exclude_deleted', true), ['aria-label'=>'deleted_assets', 'id'=>'deleted_assets_exclude_deleted'])}}
|
<input
|
||||||
|
name="deleted_assets"
|
||||||
|
id="deleted_assets_exclude_deleted"
|
||||||
|
type="radio"
|
||||||
|
value="exclude_deleted"
|
||||||
|
@checked($template->radioValue('deleted_assets', 'exclude_deleted', true))
|
||||||
|
aria-label="deleted_assets"
|
||||||
|
>
|
||||||
{{ trans('general.exclude_deleted') }}
|
{{ trans('general.exclude_deleted') }}
|
||||||
</label>
|
</label>
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::radio('deleted_assets', 'include_deleted', $template->radioValue('deleted_assets', 'include_deleted'), ['aria-label'=>'deleted_assets', 'id'=>'deleted_assets_include_deleted']) }}
|
<input
|
||||||
|
name="deleted_assets"
|
||||||
|
id="deleted_assets_include_deleted"
|
||||||
|
type="radio"
|
||||||
|
value="include_deleted"
|
||||||
|
@checked($template->radioValue('deleted_assets', 'include_deleted'))
|
||||||
|
aria-label="deleted_assets"
|
||||||
|
>
|
||||||
{{ trans('general.include_deleted') }}
|
{{ trans('general.include_deleted') }}
|
||||||
</label>
|
</label>
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::radio('deleted_assets', 'only_deleted', $template->radioValue('deleted_assets', 'only_deleted'), ['aria-label'=>'deleted_assets','id'=>'deleted_assets_only_deleted']) }}
|
<input
|
||||||
|
name="deleted_assets"
|
||||||
|
type="radio"
|
||||||
|
id="deleted_assets_only_deleted"
|
||||||
|
value="only_deleted"
|
||||||
|
@checked($template->radioValue('deleted_assets', 'only_deleted'))
|
||||||
|
aria-label="deleted_assets"
|
||||||
|
>
|
||||||
{{ trans('general.only_deleted') }}
|
{{ trans('general.only_deleted') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
<!-- Alert Email -->
|
<!-- Alert Email -->
|
||||||
<div class="form-group {{ $errors->has('alert_email') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('alert_email') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('alert_email', trans('admin/settings/general.alert_email')) }}
|
<label for="alert_email">{{ trans('admin/settings/general.alert_email') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input type="text" name="alert_email" value="{{ old('alert_email', $setting->alert_email) }}" class="form-control" placeholder="admin@yourcompany.com" maxlength="191">
|
<input type="text" name="alert_email" value="{{ old('alert_email', $setting->alert_email) }}" class="form-control" placeholder="admin@yourcompany.com" maxlength="191">
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
<!-- Admin CC Email -->
|
<!-- Admin CC Email -->
|
||||||
<div class="form-group {{ $errors->has('admin_cc_email') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('admin_cc_email') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('admin_cc_email', trans('admin/settings/general.admin_cc_email')) }}
|
<label for="admin_cc_email">{{ trans('admin/settings/general.admin_cc_email') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input type="text" name="admin_cc_email" value="{{ old('admin_cc_email', $setting->admin_cc_email) }}" class="form-control" placeholder="admin@yourcompany.com" maxlength="191">
|
<input type="text" name="admin_cc_email" value="{{ old('admin_cc_email', $setting->admin_cc_email) }}" class="form-control" placeholder="admin@yourcompany.com" maxlength="191">
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
<!-- Alert interval -->
|
<!-- Alert interval -->
|
||||||
<div class="form-group {{ $errors->has('alert_interval') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('alert_interval') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('alert_interval', trans('admin/settings/general.alert_interval')) }}
|
<label for="alert_interval">{{ trans('admin/settings/general.alert_interval') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input class="form-control" placeholder="30" maxlength="3" style="width: 60px;" name="alert_interval" type="text" value="{{ old('alert_interval', $setting->alert_interval) }}" id="alert_interval">
|
<input class="form-control" placeholder="30" maxlength="3" style="width: 60px;" name="alert_interval" type="text" value="{{ old('alert_interval', $setting->alert_interval) }}" id="alert_interval">
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
<!-- Alert threshold -->
|
<!-- Alert threshold -->
|
||||||
<div class="form-group {{ $errors->has('alert_threshold') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('alert_threshold') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('alert_threshold', trans('admin/settings/general.alert_inv_threshold')) }}
|
<label for="alert_threshold">{{ trans('admin/settings/general.alert_inv_threshold') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input class="form-control" placeholder="5" maxlength="3" style="width: 60px;" name="alert_threshold" type="text" value="{{ old('alert_threshold', $setting->alert_threshold) }}" id="alert_threshold">
|
<input class="form-control" placeholder="5" maxlength="3" style="width: 60px;" name="alert_threshold" type="text" value="{{ old('alert_threshold', $setting->alert_threshold) }}" id="alert_threshold">
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
<!-- Alert interval -->
|
<!-- Alert interval -->
|
||||||
<div class="form-group {{ $errors->has('audit_interval') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('audit_interval') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('audit_interval', trans('admin/settings/general.audit_interval')) }}
|
<label for="audit_interval">{{ trans('admin/settings/general.audit_interval') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group col-md-3">
|
<div class="input-group col-md-3">
|
||||||
<input class="form-control" placeholder="12" maxlength="3" name="audit_interval" type="text" id="audit_interval" value="{{ old('audit_interval', $setting->audit_interval) }}">
|
<input class="form-control" placeholder="12" maxlength="3" name="audit_interval" type="text" id="audit_interval" value="{{ old('audit_interval', $setting->audit_interval) }}">
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
<!-- Alert threshold -->
|
<!-- Alert threshold -->
|
||||||
<div class="form-group {{ $errors->has('audit_warning_days') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('audit_warning_days') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('audit_warning_days', trans('admin/settings/general.audit_warning_days')) }}
|
<label for="audit_warning_days">{{ trans('admin/settings/general.audit_warning_days') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group col-md-3">
|
<div class="input-group col-md-3">
|
||||||
<input class="form-control" placeholder="14" maxlength="3" name="audit_warning_days" type="text" id="audit_warning_days" value="{{ old('audit_warning_days', $setting->audit_warning_days) }}">
|
<input class="form-control" placeholder="14" maxlength="3" name="audit_warning_days" type="text" id="audit_warning_days" value="{{ old('audit_warning_days', $setting->audit_warning_days) }}">
|
||||||
|
@ -148,7 +148,7 @@
|
||||||
<!-- Due for checkin days -->
|
<!-- Due for checkin days -->
|
||||||
<div class="form-group {{ $errors->has('due_checkin_days') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('due_checkin_days') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('due_checkin_days', trans('admin/settings/general.due_checkin_days')) }}
|
<label for="due_checkin_days">{{ trans('admin/settings/general.due_checkin_days') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group col-md-3">
|
<div class="input-group col-md-3">
|
||||||
<input class="form-control" placeholder="14" maxlength="3" name="due_checkin_days" type="text" id="due_checkin_days" value="{{ old('due_checkin_days', $setting->due_checkin_days) }}">
|
<input class="form-control" placeholder="14" maxlength="3" name="due_checkin_days" type="text" id="due_checkin_days" value="{{ old('due_checkin_days', $setting->due_checkin_days) }}">
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
{{ Form::label('next_auto_tag_base', trans('admin/settings/general.next_auto_tag_base')) }}
|
<label for="next_auto_tag_base">{{ trans('admin/settings/general.next_auto_tag_base') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" style="width: 150px;" aria-label="next_auto_tag_base" name="next_auto_tag_base" type="text" value="{{ old('next_auto_tag_base', $setting->next_auto_tag_base) }}" id="next_auto_tag_base">
|
<input class="form-control" style="width: 150px;" aria-label="next_auto_tag_base" name="next_auto_tag_base" type="text" value="{{ old('next_auto_tag_base', $setting->next_auto_tag_base) }}" id="next_auto_tag_base">
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
<!-- auto prefix -->
|
<!-- auto prefix -->
|
||||||
<div class="form-group {{ $errors->has('auto_increment_prefix') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('auto_increment_prefix') ? 'error' : '' }}">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
{{ Form::label('auto_increment_prefix', trans('admin/settings/general.auto_increment_prefix')) }}
|
<label for="auto_increment_prefix">{{ trans('admin/settings/general.auto_increment_prefix') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
@if ($setting->auto_increment_assets == 1)
|
@if ($setting->auto_increment_assets == 1)
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
<!-- auto zerofill -->
|
<!-- auto zerofill -->
|
||||||
<div class="form-group {{ $errors->has('zerofill_count') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('zerofill_count') ? 'error' : '' }}">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
{{ Form::label('zerofill_count', trans('admin/settings/general.zerofill_count')) }}
|
<label for="zerofill_count">{{ trans('admin/settings/general.zerofill_count') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" style="width: 150px;" aria-label="zerofill_count" name="zerofill_count" type="text" value="{{ old('zerofill_count', $setting->zerofill_count) }}" id="zerofill_count">
|
<input class="form-control" style="width: 150px;" aria-label="zerofill_count" name="zerofill_count" type="text" value="{{ old('zerofill_count', $setting->zerofill_count) }}" id="zerofill_count">
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<form method="POST" style="display: inline">
|
<form method="POST" style="display: inline">
|
||||||
{{ Form::hidden('_token', csrf_token()) }}
|
@csrf
|
||||||
<button class="btn btn-primary {{ (config('app.lock_passwords')) ? ' disabled': '' }}">{{ trans('admin/settings/general.generate_backup') }}</button>
|
<button class="btn btn-primary {{ (config('app.lock_passwords')) ? ' disabled': '' }}">{{ trans('admin/settings/general.generate_backup') }}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
<div class="form-group {{ $errors->has('site_name') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('site_name') ? 'error' : '' }}">
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('site_name', trans('admin/settings/general.site_name')) }}
|
<label for="site_name">{{ trans('admin/settings/general.site_name') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7 required">
|
<div class="col-md-7 required">
|
||||||
@if (config('app.lock_passwords')===true)
|
@if (config('app.lock_passwords')===true)
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
<!-- Branding -->
|
<!-- Branding -->
|
||||||
<div class="form-group {{ $errors->has('brand') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('brand') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('brand', trans('admin/settings/general.web_brand')) }}
|
<label for="brand">{{ trans('admin/settings/general.web_brand') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!}
|
{!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!}
|
||||||
|
@ -187,7 +187,7 @@
|
||||||
<!-- Header color -->
|
<!-- Header color -->
|
||||||
<div class="form-group {{ $errors->has('header_color') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('header_color') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('header_color', trans('admin/settings/general.header_color')) }}
|
<label for="header_color">{{ trans('admin/settings/general.header_color') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group header-color">
|
<div class="input-group header-color">
|
||||||
|
@ -203,7 +203,7 @@
|
||||||
<!-- Skin -->
|
<!-- Skin -->
|
||||||
<div class="form-group {{ $errors->has('skin') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('skin') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('skin', trans('general.skin')) }}
|
<label for="skin">{{ trans('general.skin') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{!! Form::skin('skin', old('skin', $setting->skin), 'select2') !!}
|
{!! Form::skin('skin', old('skin', $setting->skin), 'select2') !!}
|
||||||
|
@ -228,7 +228,7 @@
|
||||||
<!-- Custom css -->
|
<!-- Custom css -->
|
||||||
<div class="form-group {{ $errors->has('custom_css') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('custom_css') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('custom_css', trans('admin/settings/general.custom_css')) }}
|
<label for="custom_css">{{ trans('admin/settings/general.custom_css') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if (config('app.lock_passwords')===true)
|
@if (config('app.lock_passwords')===true)
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
<!-- Support Footer -->
|
<!-- Support Footer -->
|
||||||
<div class="form-group {{ $errors->has('support_footer') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('support_footer') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('support_footer', trans('admin/settings/general.support_footer')) }}
|
<label for="support_footer">{{ trans('admin/settings/general.support_footer') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if (config('app.lock_passwords')===true)
|
@if (config('app.lock_passwords')===true)
|
||||||
|
@ -266,7 +266,7 @@
|
||||||
<!-- Version Footer -->
|
<!-- Version Footer -->
|
||||||
<div class="form-group {{ $errors->has('version_footer') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('version_footer') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('version_footer', trans('admin/settings/general.version_footer')) }}
|
<label for="version_footer">{{ trans('admin/settings/general.version_footer') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if (config('app.lock_passwords')===true)
|
@if (config('app.lock_passwords')===true)
|
||||||
|
@ -284,7 +284,7 @@
|
||||||
<!-- Additional footer -->
|
<!-- Additional footer -->
|
||||||
<div class="form-group {{ $errors->has('footer_text') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('footer_text') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('footer_text', trans('admin/settings/general.footer_text')) }}
|
<label for="footer_text">{{ trans('admin/settings/general.footer_text') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if (config('app.lock_passwords')===true)
|
@if (config('app.lock_passwords')===true)
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<!-- Email domain -->
|
<!-- Email domain -->
|
||||||
<div class="form-group {{ $errors->has('email_domain') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('email_domain') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('email_domain', trans('general.email_domain')) }}
|
<label for="email_domain">{{ trans('general.email_domain') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input class="form-control" placeholder="example.com" name="email_domain" type="text" value="{{ old('email_domain', $setting->email_domain) }}" id="email_domain">
|
<input class="form-control" placeholder="example.com" name="email_domain" type="text" value="{{ old('email_domain', $setting->email_domain) }}" id="email_domain">
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
<!-- Email format -->
|
<!-- Email format -->
|
||||||
<div class="form-group {{ $errors->has('email_format') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('email_format') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('email_format', trans('general.email_format')) }}
|
<label for="email_format">{{ trans('general.email_format') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{!! Form::username_format('email_format', old('email_format', $setting->email_format), 'select2') !!}
|
{!! Form::username_format('email_format', old('email_format', $setting->email_format), 'select2') !!}
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
<!-- Username format -->
|
<!-- Username format -->
|
||||||
<div class="form-group {{ $errors->has('username_format') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('username_format') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('username_format', trans('general.username_format')) }}
|
<label for="username_format">{{ trans('general.username_format') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!}
|
{!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!}
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
<!-- Per Page -->
|
<!-- Per Page -->
|
||||||
<div class="form-group {{ $errors->has('per_page') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('per_page') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('per_page', trans('admin/settings/general.per_page')) }}
|
<label for="per_page">{{ trans('admin/settings/general.per_page') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input class="form-control" placeholder="5" maxlength="3" style="width: 60px;" name="per_page" type="text" value="{{ old('per_page', $setting->per_page) }}" id="per_page">
|
<input class="form-control" placeholder="5" maxlength="3" style="width: 60px;" name="per_page" type="text" value="{{ old('per_page', $setting->per_page) }}" id="per_page">
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
<!-- Thumb Size -->
|
<!-- Thumb Size -->
|
||||||
<div class="form-group {{ $errors->has('thumbnail_max_h') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('thumbnail_max_h') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('thumbnail_max_h', trans('admin/settings/general.thumbnail_max_h')) }}
|
<label for="thumbnail_max_h">{{ trans('admin/settings/general.thumbnail_max_h') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input class="form-control" placeholder="50" maxlength="3" style="width: 60px;" name="thumbnail_max_h" type="text" value="{{ old('thumbnail_max_h', $setting->thumbnail_max_h) }}" id="thumbnail_max_h">
|
<input class="form-control" placeholder="50" maxlength="3" style="width: 60px;" name="thumbnail_max_h" type="text" value="{{ old('thumbnail_max_h', $setting->thumbnail_max_h) }}" id="thumbnail_max_h">
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
<!-- Default EULA -->
|
<!-- Default EULA -->
|
||||||
<div class="form-group {{ $errors->has('default_eula_text') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('default_eula_text') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('default_eula_text', trans('admin/settings/general.default_eula_text')) }}
|
<label for="default_eula_text">{{ trans('admin/settings/general.default_eula_text') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{{ Form::textarea('default_eula_text', old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }}
|
{{ Form::textarea('default_eula_text', old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }}
|
||||||
|
@ -236,7 +236,7 @@
|
||||||
<!-- login text -->
|
<!-- login text -->
|
||||||
<div class="form-group {{ $errors->has('login_note') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('login_note') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('login_note', trans('admin/settings/general.login_note')) }}
|
<label for="login_note">{{ trans('admin/settings/general.login_note') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if (config('app.lock_passwords'))
|
@if (config('app.lock_passwords'))
|
||||||
|
@ -255,7 +255,7 @@
|
||||||
<!-- Mail test -->
|
<!-- Mail test -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('login_note', 'Test Mail') }}
|
<label for="login_note">Test Mail</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9" id="mailtestrow">
|
<div class="col-md-9" id="mailtestrow">
|
||||||
<a class="btn btn-default btn-sm pull-left" id="mailtest" style="margin-right: 10px;">
|
<a class="btn btn-default btn-sm pull-left" id="mailtest" style="margin-right: 10px;">
|
||||||
|
@ -278,7 +278,7 @@
|
||||||
<!-- dashboard text -->
|
<!-- dashboard text -->
|
||||||
<div class="form-group {{ $errors->has('dashboard_message') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('dashboard_message') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('dashboard_message', trans('admin/settings/general.dashboard_message')) }}
|
<label for="dashboard_message">{{ trans('admin/settings/general.dashboard_message') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if (config('app.lock_passwords'))
|
@if (config('app.lock_passwords'))
|
||||||
|
@ -302,8 +302,7 @@
|
||||||
<!-- Archived in List -->
|
<!-- Archived in List -->
|
||||||
<div class="form-group {{ $errors->has('show_archived_in_list') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('show_archived_in_list') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('show_archived_in_list',
|
<label for="show_archived_in_list">{{ trans('admin/settings/general.show_archived_in_list') }}</label>
|
||||||
trans('admin/settings/general.show_archived_in_list')) }}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
|
|
||||||
|
@ -318,8 +317,7 @@
|
||||||
<!-- Show assets assigned to user's assets -->
|
<!-- Show assets assigned to user's assets -->
|
||||||
<div class="form-group {{ $errors->has('show_assigned_assets') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('show_assigned_assets') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('show_assigned_assets',
|
<label for="show_assigned_assets">{{ trans('admin/settings/general.show_assigned_assets') }}</label>
|
||||||
trans('admin/settings/general.show_assigned_assets')) }}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
|
@ -355,8 +353,7 @@
|
||||||
<!-- dash chart -->
|
<!-- dash chart -->
|
||||||
<div class="form-group {{ $errors->has('dash_chart_type') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('dash_chart_type') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('show_in_model_list',
|
<label for="show_in_model_list">{{ trans('general.pie_chart_type') }}</label>
|
||||||
trans('general.pie_chart_type')) }}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{{ Form::select('dash_chart_type', array(
|
{{ Form::select('dash_chart_type', array(
|
||||||
|
@ -369,7 +366,7 @@
|
||||||
<!-- Depreciation method -->
|
<!-- Depreciation method -->
|
||||||
<div class="form-group {{ $errors->has('depreciation_method') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('depreciation_method') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('depreciation_method', trans('Depreciation method')) }}
|
<label for="depreciation_method">{{ trans('Depreciation method') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{{ Form::select('depreciation_method', array(
|
{{ Form::select('depreciation_method', array(
|
||||||
|
@ -384,7 +381,7 @@
|
||||||
<!-- Privacy Policy Footer-->
|
<!-- Privacy Policy Footer-->
|
||||||
<div class="form-group {{ $errors->has('privacy_policy_link') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('privacy_policy_link') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('privacy_policy_link', trans('admin/settings/general.privacy_policy_link')) }}
|
<label for="privacy_policy_link">{{ trans('admin/settings/general.privacy_policy_link') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if (config('app.lock_passwords'))
|
@if (config('app.lock_passwords'))
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<!-- Google Client ID -->
|
<!-- Google Client ID -->
|
||||||
<div class="form-group {{ $errors->has('google_client_id') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('google_client_id') ? 'error' : '' }}">
|
||||||
<div class="col-md-3 text-right">
|
<div class="col-md-3 text-right">
|
||||||
{{ Form::label('google_client_id', 'Client ID') }}
|
<label for="google_client_id">Client ID</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<input
|
<input
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
<!-- Google Client Secret -->
|
<!-- Google Client Secret -->
|
||||||
<div class="form-group {{ $errors->has('google_client_secret') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('google_client_secret') ? 'error' : '' }}">
|
||||||
<div class="col-md-3 text-right">
|
<div class="col-md-3 text-right">
|
||||||
{{ Form::label('google_client_secret', 'Client Secret') }}
|
<label for="google_client_secret">Client Secret</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
|
|
|
@ -316,31 +316,31 @@
|
||||||
@else
|
@else
|
||||||
|
|
||||||
<!-- Hidden version of new settings -->
|
<!-- Hidden version of new settings -->
|
||||||
{{ Form::hidden('label2_template', old('label2_template', $setting->label2_template)) }}
|
<input name="label2_template" type="hidden" value="{{ old('label2_template', $setting->label2_template) }}" />
|
||||||
{{ Form::hidden('label2_title', old('label2_title', $setting->label2_title)) }}
|
<input name="label2_title" type="hidden" value="{{ old('label2_title', $setting->label2_title) }}" />
|
||||||
{{ Form::hidden('label2_asset_logo', old('label2_asset_logo', $setting->label2_asset_logo)) }}
|
<input name="label2_asset_logo" type="hidden" value="{{ old('label2_asset_logo', $setting->label2_asset_logo) }}" />
|
||||||
{{ Form::hidden('label2_fields', old('label2_fields', $setting->label2_fields)) }}
|
<input name="label2_fields" type="hidden" value="{{ old('label2_fields', $setting->label2_fields) }}" />
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($setting->label2_enable && ($setting->label2_template != 'DefaultLabel'))
|
@if ($setting->label2_enable && ($setting->label2_template != 'DefaultLabel'))
|
||||||
<!-- Hidden version of legacy settings -->
|
<!-- Hidden version of legacy settings -->
|
||||||
{{ Form::hidden('labels_per_page', old('labels_per_page', $setting->labels_per_page)) }}
|
<input name="labels_per_page" type="hidden" value="{{ old('labels_per_page', $setting->labels_per_page) }}" />
|
||||||
{{ Form::hidden('labels_fontsize', old('labels_fontsize', $setting->labels_fontsize)) }}
|
<input name="labels_fontsize" type="hidden" value="{{ old('labels_fontsize', $setting->labels_fontsize) }}" />
|
||||||
{{ Form::hidden('labels_width', old('labels_width', $setting->labels_width)) }}
|
<input name="labels_width" type="hidden" value="{{ old('labels_width', $setting->labels_width) }}" />
|
||||||
{{ Form::hidden('labels_height', old('labels_height', $setting->labels_height)) }}
|
<input name="labels_height" type="hidden" value="{{ old('labels_height', $setting->labels_height) }}" />
|
||||||
{{ Form::hidden('labels_display_sgutter', old('labels_display_sgutter', $setting->labels_display_sgutter)) }}
|
<input name="labels_display_sgutter" type="hidden" value="{{ old('labels_display_sgutter', $setting->labels_display_sgutter) }}" />
|
||||||
{{ Form::hidden('labels_display_bgutter', old('labels_display_bgutter', $setting->labels_display_bgutter)) }}
|
<input name="labels_display_bgutter" type="hidden" value="{{ old('labels_display_bgutter', $setting->labels_display_bgutter) }}" />
|
||||||
{{ Form::hidden('labels_pmargin_top', old('labels_pmargin_top', $setting->labels_pmargin_top)) }}
|
<input name="labels_pmargin_top" type="hidden" value="{{ old('labels_pmargin_top', $setting->labels_pmargin_top) }}" />
|
||||||
{{ Form::hidden('labels_pmargin_bottom', old('labels_pmargin_bottom', $setting->labels_pmargin_bottom)) }}
|
<input name="labels_pmargin_bottom" type="hidden" value="{{ old('labels_pmargin_bottom', $setting->labels_pmargin_bottom) }}" />
|
||||||
{{ Form::hidden('labels_pmargin_left', old('labels_pmargin_left', $setting->labels_pmargin_left)) }}
|
<input name="labels_pmargin_left" type="hidden" value="{{ old('labels_pmargin_left', $setting->labels_pmargin_left) }}" />
|
||||||
{{ Form::hidden('labels_pmargin_right', old('labels_pmargin_right', $setting->labels_pmargin_right)) }}
|
<input name="labels_pmargin_right" type="hidden" value="{{ old('labels_pmargin_right', $setting->labels_pmargin_right) }}" />
|
||||||
{{ Form::hidden('labels_pagewidth', old('labels_pagewidth', $setting->labels_pagewidth)) }}
|
<input name="labels_pagewidth" type="hidden" value="{{ old('labels_pagewidth', $setting->labels_pagewidth) }}" />
|
||||||
{{ Form::hidden('labels_pageheight', old('labels_pageheight', $setting->labels_pageheight)) }}
|
<input name="labels_pageheight" type="hidden" value="{{ old('labels_pageheight', $setting->labels_pageheight) }}" />
|
||||||
{{ Form::hidden('labels_display_name', old('labels_display_name', $setting->labels_display_name)) }}
|
<input name="labels_display_name" type="hidden" value="{{ old('labels_display_name', $setting->labels_display_name) }}" />
|
||||||
{{ Form::hidden('labels_display_serial', old('labels_display_serial', $setting->labels_display_serial)) }}
|
<input name="labels_display_serial" type="hidden" value="{{ old('labels_display_serial', $setting->labels_display_serial) }}" />
|
||||||
{{ Form::hidden('labels_display_tag', old('labels_display_tag', $setting->labels_display_tag)) }}
|
<input name="labels_display_tag" type="hidden" value="{{ old('labels_display_tag', $setting->labels_display_tag) }}" />
|
||||||
{{ Form::hidden('labels_display_model', old('labels_display_model', $setting->labels_display_model)) }}
|
<input name="labels_display_model" type="hidden" value="{{ old('labels_display_model', $setting->labels_display_model) }}" />
|
||||||
{{ Form::hidden('labels_display_company_name', old('labels_display_company_name', $setting->labels_display_company_name)) }}
|
<input name="labels_display_company_name" type="hidden" value="{{ old('labels_display_company_name', $setting->labels_display_company_name) }}" />
|
||||||
@else
|
@else
|
||||||
<!-- Legacy settings -->
|
<!-- Legacy settings -->
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<!-- Language -->
|
<!-- Language -->
|
||||||
<div class="form-group {{ $errors->has('site_name') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('site_name') ? 'error' : '' }}">
|
||||||
<div class="col-md-3 col-xs-12">
|
<div class="col-md-3 col-xs-12">
|
||||||
{{ Form::label('site_name', trans('admin/settings/general.default_language')) }}
|
<label for="site_name">{{ trans('admin/settings/general.default_language') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5 col-xs-12">
|
<div class="col-md-5 col-xs-12">
|
||||||
{!! Form::locales('locale', old('locale', $setting->locale), 'select2') !!}
|
{!! Form::locales('locale', old('locale', $setting->locale), 'select2') !!}
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<!-- name display format -->
|
<!-- name display format -->
|
||||||
<div class="form-group {{ $errors->has('name_display_format') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('name_display_format') ? 'error' : '' }}">
|
||||||
<div class="col-md-3 col-xs-12">
|
<div class="col-md-3 col-xs-12">
|
||||||
{{ Form::label('name_display_format', trans('general.name_display_format')) }}
|
<label for="name_display_format">{{ trans('general.name_display_format') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5 col-xs-12">
|
<div class="col-md-5 col-xs-12">
|
||||||
{!! Form::name_display_format('name_display_format', old('name_display_format', $setting->name_display_format), 'select2') !!}
|
{!! Form::name_display_format('name_display_format', old('name_display_format', $setting->name_display_format), 'select2') !!}
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
<!-- Date format -->
|
<!-- Date format -->
|
||||||
<div class="form-group {{ $errors->has('time_display_format') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('time_display_format') ? 'error' : '' }}">
|
||||||
<div class="col-md-3 col-xs-12">
|
<div class="col-md-3 col-xs-12">
|
||||||
{{ Form::label('time_display_format', trans('general.time_and_date_display')) }}
|
<label for="time_display_format">{{ trans('general.time_and_date_display') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5 col-xs-12">
|
<div class="col-md-5 col-xs-12">
|
||||||
{!! Form::date_display_format('date_display_format', old('date_display_format', $setting->date_display_format), 'select2') !!}
|
{!! Form::date_display_format('date_display_format', old('date_display_format', $setting->date_display_format), 'select2') !!}
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
<!-- Currency -->
|
<!-- Currency -->
|
||||||
<div class="form-group {{ $errors->has('default_currency') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('default_currency') ? 'error' : '' }}">
|
||||||
<div class="col-md-3 col-xs-12">
|
<div class="col-md-3 col-xs-12">
|
||||||
{{ Form::label('default_currency', trans('admin/settings/general.default_currency')) }}
|
<label for="default_currency">{{ trans('admin/settings/general.default_currency') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9 col-xs-12">
|
<div class="col-md-9 col-xs-12">
|
||||||
<input
|
<input
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<p>{{ trans('admin/settings/general.confirm_purge_help') }}</p>
|
<p>{{ trans('admin/settings/general.confirm_purge_help') }}</p>
|
||||||
<div class="col-md-3{{ $errors->has('confirm_purge') ? 'error' : '' }}">
|
<div class="col-md-3{{ $errors->has('confirm_purge') ? 'error' : '' }}">
|
||||||
{{ Form::label('confirm_purge', trans('admin/settings/general.confirm_purge')) }}
|
<label for="confirm_purge">{{ trans('admin/settings/general.confirm_purge') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9{{ $errors->has('confirm_purge') ? 'error' : '' }}">
|
<div class="col-md-9{{ $errors->has('confirm_purge') ? 'error' : '' }}">
|
||||||
@if (config('app.lock_passwords')===true)
|
@if (config('app.lock_passwords')===true)
|
||||||
|
|
|
@ -69,25 +69,25 @@
|
||||||
<div class="col-md-9 col-md-offset-3">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
<!-- SAML SP Details -->
|
<!-- SAML SP Details -->
|
||||||
<!-- SAML SP Entity ID -->
|
<!-- SAML SP Entity ID -->
|
||||||
{{ Form::label('saml_sp_entitiyid', trans('admin/settings/general.saml_sp_entityid')) }}
|
<label for="saml_sp_entitiyid">{{ trans('admin/settings/general.saml_sp_entityid') }}</label>
|
||||||
<input class="form-control" readonly="" name="saml_sp_entitiyid" type="text" value="{{ config('app.url') }}" id="saml_sp_entitiyid">
|
<input class="form-control" readonly="" name="saml_sp_entitiyid" type="text" value="{{ config('app.url') }}" id="saml_sp_entitiyid">
|
||||||
<br>
|
<br>
|
||||||
<!-- SAML SP ACS -->
|
<!-- SAML SP ACS -->
|
||||||
{{ Form::label('saml_sp_acs_url', trans('admin/settings/general.saml_sp_acs_url')) }}
|
<label for="saml_sp_acs_url">{{ trans('admin/settings/general.saml_sp_acs_url') }}</label>
|
||||||
<input class="form-control" readonly="" name="saml_sp_acs_url" type="text" value="{{ route('saml.acs') }}" id="saml_sp_acs_url">
|
<input class="form-control" readonly="" name="saml_sp_acs_url" type="text" value="{{ route('saml.acs') }}" id="saml_sp_acs_url">
|
||||||
<br>
|
<br>
|
||||||
<!-- SAML SP SLS -->
|
<!-- SAML SP SLS -->
|
||||||
{{ Form::label('saml_sp_sls_url', trans('admin/settings/general.saml_sp_sls_url')) }}
|
<label for="saml_sp_sls_url">{{ trans('admin/settings/general.saml_sp_sls_url') }}</label>
|
||||||
<input class="form-control" readonly="" name="saml_sp_sls_url" type="text" value="{{ route('saml.sls') }}" id="saml_sp_sls_url">
|
<input class="form-control" readonly="" name="saml_sp_sls_url" type="text" value="{{ route('saml.sls') }}" id="saml_sp_sls_url">
|
||||||
<br>
|
<br>
|
||||||
<!-- SAML SP Certificate -->
|
<!-- SAML SP Certificate -->
|
||||||
@if (!empty($setting->saml_sp_x509cert))
|
@if (!empty($setting->saml_sp_x509cert))
|
||||||
{{ Form::label('saml_sp_x509cert', trans('admin/settings/general.saml_sp_x509cert')) }}
|
<label for="saml_sp_x509cert">{{ trans('admin/settings/general.saml_sp_x509cert') }}</label>
|
||||||
{{ Form::textarea('saml_sp_x509cert', $setting->saml_sp_x509cert, ['class' => 'form-control', 'wrap' => 'off', 'readonly']) }}
|
{{ Form::textarea('saml_sp_x509cert', $setting->saml_sp_x509cert, ['class' => 'form-control', 'wrap' => 'off', 'readonly']) }}
|
||||||
<br>
|
<br>
|
||||||
@endif
|
@endif
|
||||||
<!-- SAML SP Metadata URL -->
|
<!-- SAML SP Metadata URL -->
|
||||||
{{ Form::label('saml_sp_metadata_url', trans('admin/settings/general.saml_sp_metadata_url')) }}
|
<label for="saml_sp_metadata_url">{{ trans('admin/settings/general.saml_sp_metadata_url') }}</label>
|
||||||
<input class="form-control" readonly="" name="saml_sp_metadata_url" type="text" value="{{ route('saml.metadata') }}" id="saml_sp_metadata_url">
|
<input class="form-control" readonly="" name="saml_sp_metadata_url" type="text" value="{{ route('saml.metadata') }}" id="saml_sp_metadata_url">
|
||||||
<br>
|
<br>
|
||||||
<p class="help-block">
|
<p class="help-block">
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
<!-- SAML IdP Metadata -->
|
<!-- SAML IdP Metadata -->
|
||||||
<div class="form-group {{ $errors->has('saml_idp_metadata') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('saml_idp_metadata') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('saml_idp_metadata', trans('admin/settings/general.saml_idp_metadata')) }}
|
<label for="saml_idp_metadata">{{ trans('admin/settings/general.saml_idp_metadata') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{{ Form::textarea('saml_idp_metadata', old('saml_idp_metadata', $setting->saml_idp_metadata), ['class' => 'form-control','placeholder' => 'https://example.com/idp/metadata', 'wrap' => 'off', $setting->demoMode]) }}
|
{{ Form::textarea('saml_idp_metadata', old('saml_idp_metadata', $setting->saml_idp_metadata), ['class' => 'form-control','placeholder' => 'https://example.com/idp/metadata', 'wrap' => 'off', $setting->demoMode]) }}
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
<!-- SAML Attribute Mapping Username -->
|
<!-- SAML Attribute Mapping Username -->
|
||||||
<div class="form-group {{ $errors->has('saml_attr_mapping_username') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('saml_attr_mapping_username') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('saml_attr_mapping_username', trans('admin/settings/general.saml_attr_mapping_username')) }}
|
<label for="saml_attr_mapping_username">{{ trans('admin/settings/general.saml_attr_mapping_username') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input class="form-control" name="saml_attr_mapping_username" type="text" id="saml_attr_mapping_username" value="{{ old('saml_attr_mapping_username', $setting->saml_attr_mapping_username) }}">
|
<input class="form-control" name="saml_attr_mapping_username" type="text" id="saml_attr_mapping_username" value="{{ old('saml_attr_mapping_username', $setting->saml_attr_mapping_username) }}">
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
<!-- SAML Custom Options -->
|
<!-- SAML Custom Options -->
|
||||||
<div class="form-group {{ $errors->has('saml_custom_settings') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('saml_custom_settings') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('saml_custom_settings', trans('admin/settings/general.saml_custom_settings')) }}
|
<label for="saml_custom_settings">{{ trans('admin/settings/general.saml_custom_settings') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{{ Form::textarea('saml_custom_settings', old('saml_custom_settings', $setting->saml_custom_settings), ['class' => 'form-control','placeholder' => 'example.option=false sp_x509cert=file:///... sp_private_key=file:///', 'wrap' => 'off', $setting->demoMode]) }}
|
{{ Form::textarea('saml_custom_settings', old('saml_custom_settings', $setting->saml_custom_settings), ['class' => 'form-control','placeholder' => 'example.option=false sp_x509cert=file:///... sp_private_key=file:///', 'wrap' => 'off', $setting->demoMode]) }}
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<!-- Two Factor -->
|
<!-- Two Factor -->
|
||||||
<div class="form-group {{ $errors->has('brand') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('brand') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('two_factor_enabled', trans('admin/settings/general.two_factor_enabled_text')) }}
|
<label for="two_factor_enabled">{{ trans('admin/settings/general.two_factor_enabled_text') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
<!-- Min characters -->
|
<!-- Min characters -->
|
||||||
<div class="form-group {{ $errors->has('pwd_secure_min') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('pwd_secure_min') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('pwd_secure_min', trans('admin/settings/general.pwd_secure_min')) }}
|
<label for="pwd_secure_min">{{ trans('admin/settings/general.pwd_secure_min') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input class="form-control" style="width: 50px;" name="pwd_secure_min" type="text" value="{{ old('pwd_secure_min', $setting->pwd_secure_min) }}" id="pwd_secure_min">
|
<input class="form-control" style="width: 50px;" name="pwd_secure_min" type="text" value="{{ old('pwd_secure_min', $setting->pwd_secure_min) }}" id="pwd_secure_min">
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
<!-- Common Passwords -->
|
<!-- Common Passwords -->
|
||||||
<div class="form-group {{ $errors->has('pwd_secure_complexity.*') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('pwd_secure_complexity.*') ? 'error' : '' }}">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{ Form::label('pwd_secure_complexity', trans('admin/settings/general.pwd_secure_complexity')) }}
|
<label for="pwd_secure_complexity">{{ trans('admin/settings/general.pwd_secure_complexity') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
@else
|
@else
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
{{ Form::checkbox('login_remote_user_enabled', '1', old('login_remote_user_enabled', $setting->login_remote_user_enabled),array('aria-label'=>'login_remote_user')) }}
|
{{ Form::checkbox('login_remote_user_enabled', '1', old('login_remote_user_enabled', $setting->login_remote_user_enabled),array('aria-label'=>'login_remote_user')) }}
|
||||||
{{ Form::label('login_remote_user_enabled', trans('admin/settings/general.login_remote_user_enabled_text')) }}
|
<label for="login_remote_user_enabled">{{ trans('admin/settings/general.login_remote_user_enabled_text') }}</label>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
{!! $errors->first('login_remote_user_enabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('login_remote_user_enabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
|
@ -138,14 +138,14 @@
|
||||||
{{ trans('admin/settings/general.login_remote_user_enabled_help') }}
|
{{ trans('admin/settings/general.login_remote_user_enabled_help') }}
|
||||||
</p>
|
</p>
|
||||||
<!-- Use custom remote user header name -->
|
<!-- Use custom remote user header name -->
|
||||||
{{ Form::label('login_remote_user_header_name', trans('admin/settings/general.login_remote_user_header_name_text')) }}
|
<label for="login_remote_user_header_name">{{ trans('admin/settings/general.login_remote_user_header_name_text') }}</label>
|
||||||
<input class="form-control" name="login_remote_user_header_name" type="text" value="{{ old('login_remote_user_header_name', $setting->login_remote_user_header_name) }}" id="login_remote_user_header_name">
|
<input class="form-control" name="login_remote_user_header_name" type="text" value="{{ old('login_remote_user_header_name', $setting->login_remote_user_header_name) }}" id="login_remote_user_header_name">
|
||||||
{!! $errors->first('login_remote_user_header_name', '<span class="alert-msg">:message</span>') !!}
|
{!! $errors->first('login_remote_user_header_name', '<span class="alert-msg">:message</span>') !!}
|
||||||
<p class="help-block">
|
<p class="help-block">
|
||||||
{{ trans('admin/settings/general.login_remote_user_header_name_help') }}
|
{{ trans('admin/settings/general.login_remote_user_header_name_help') }}
|
||||||
</p>
|
</p>
|
||||||
<!-- Custom logout url to redirect to authentication provider -->
|
<!-- Custom logout url to redirect to authentication provider -->
|
||||||
{{ Form::label('login_remote_user_custom_logout_url', trans('admin/settings/general.login_remote_user_custom_logout_url_text')) }}
|
<label for="login_remote_user_custom_logout_url">{{ trans('admin/settings/general.login_remote_user_custom_logout_url_text') }}</label>
|
||||||
<input class="form-control" aria-label="login_remote_user_custom_logout_url" name="login_remote_user_custom_logout_url" type="text" value="{{ old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url) }}" id="login_remote_user_custom_logout_url">
|
<input class="form-control" aria-label="login_remote_user_custom_logout_url" name="login_remote_user_custom_logout_url" type="text" value="{{ old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url) }}" id="login_remote_user_custom_logout_url">
|
||||||
|
|
||||||
{!! $errors->first('login_remote_user_custom_logout_url', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('login_remote_user_custom_logout_url', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
<!-- Currency -->
|
<!-- Currency -->
|
||||||
<div class="form-group col-lg-6{{$errors->has('default_currency') ? ' error' : ''}}">
|
<div class="form-group col-lg-6{{$errors->has('default_currency') ? ' error' : ''}}">
|
||||||
{{ Form::label('default_currency', trans('admin/settings/general.default_currency')) }}
|
<label for="default_currency">{{ trans('admin/settings/general.default_currency') }}</label>
|
||||||
<input class="form-control" placeholder="USD" maxlength="3" style="width: 60px;" name="default_currency" type="text" id="default_currency" value="{{ old('default_currency') }}">
|
<input class="form-control" placeholder="USD" maxlength="3" style="width: 60px;" name="default_currency" type="text" id="default_currency" value="{{ old('default_currency') }}">
|
||||||
|
|
||||||
{!! $errors->first('default_currency', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('default_currency', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
|
@ -71,14 +71,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="form-group col-lg-6{{ $errors->has('auto_increment_prefix') ? ' error' : '' }}">
|
<div class="form-group col-lg-6{{ $errors->has('auto_increment_prefix') ? ' error' : '' }}">
|
||||||
{{ Form::label('auto_increment_prefix', trans('admin/settings/general.auto_increment_prefix')) }}
|
<label for="auto_increment_prefix">{{ trans('admin/settings/general.auto_increment_prefix') }}</label>
|
||||||
<input class="form-control" name="auto_increment_prefix" type="text" id="auto_increment_prefix" value="{{ old('auto_increment_prefix') }}">
|
<input class="form-control" name="auto_increment_prefix" type="text" id="auto_increment_prefix" value="{{ old('auto_increment_prefix') }}">
|
||||||
|
|
||||||
{!! $errors->first('auto_increment_prefix', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('auto_increment_prefix', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-lg-6{{ $errors->has('zerofill_count') ? ' error' : '' }}">
|
<div class="form-group col-lg-6{{ $errors->has('zerofill_count') ? ' error' : '' }}">
|
||||||
{{ Form::label('zerofill_count', trans('admin/settings/general.zerofill_count')) }}
|
<label for="zerofill_count">{{ trans('admin/settings/general.zerofill_count') }}</label>
|
||||||
<input class="form-control" name="zerofill_count" type="text" value="{{ old('zerofill_count', 5) }}" id="zerofill_count">
|
<input class="form-control" name="zerofill_count" type="text" value="{{ old('zerofill_count', 5) }}" id="zerofill_count">
|
||||||
|
|
||||||
{!! $errors->first('zerofill_count', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('zerofill_count', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
<!-- email domain -->
|
<!-- email domain -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-6 required {{ $errors->has('email_domain') ? 'error' : '' }}">
|
<div class="form-group col-lg-6 required {{ $errors->has('email_domain') ? 'error' : '' }}">
|
||||||
{{ Form::label('email_domain', trans('general.email_domain')) }}
|
<label for="email_domain">{{ trans('general.email_domain') }}</label>
|
||||||
<input class="form-control" placeholder="example.com" required="" name="email_domain" type="text" id="email_domain" value="{{ old('email_domain') }}">
|
<input class="form-control" placeholder="example.com" required="" name="email_domain" type="text" id="email_domain" value="{{ old('email_domain') }}">
|
||||||
<span class="help-block">{{ trans('general.email_domain_help') }}</span>
|
<span class="help-block">{{ trans('general.email_domain_help') }}</span>
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
|
|
||||||
<!-- email format -->
|
<!-- email format -->
|
||||||
<div class="form-group col-lg-6 {{ $errors->has('email_format') ? 'error' : '' }}">
|
<div class="form-group col-lg-6 {{ $errors->has('email_format') ? 'error' : '' }}">
|
||||||
{{ Form::label('email_format', trans('general.email_format')) }}
|
<label for="email_format">{{ trans('general.email_format') }}</label>
|
||||||
{!! Form::username_format('email_format', old('email_format', 'filastname'), 'select2') !!}
|
{!! Form::username_format('email_format', old('email_format', 'filastname'), 'select2') !!}
|
||||||
{!! $errors->first('email_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('email_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -108,14 +108,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- first name -->
|
<!-- first name -->
|
||||||
<div class="form-group col-lg-6">
|
<div class="form-group col-lg-6">
|
||||||
{{ Form::label('first_name', trans('general.first_name'), 'required') }}
|
<label for="first_name">{{ trans('general.first_name') }}</label>
|
||||||
<input class="form-control" placeholder="Jane" required="" name="first_name" type="text" id="first_name" value="{{ old('first_name') }}">
|
<input class="form-control" placeholder="Jane" required="" name="first_name" type="text" id="first_name" value="{{ old('first_name') }}">
|
||||||
{!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- last name -->
|
<!-- last name -->
|
||||||
<div class="form-group col-lg-6 required {{ $errors->has('last_name') ? 'error' : '' }}">
|
<div class="form-group col-lg-6 required {{ $errors->has('last_name') ? 'error' : '' }}">
|
||||||
{{ Form::label('last_name', trans('general.last_name')) }}
|
<label for="last_name">{{ trans('general.last_name') }}</label>
|
||||||
<input class="form-control" placeholder="Smith" required="" name="last_name" type="text" id="last_name" value="{{ old('last_name') }}">
|
<input class="form-control" placeholder="Smith" required="" name="last_name" type="text" id="last_name" value="{{ old('last_name') }}">
|
||||||
{!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('last_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -124,14 +124,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- email-->
|
<!-- email-->
|
||||||
<div class="form-group col-lg-6{{ $errors->has('email') ? 'error' : '' }}">
|
<div class="form-group col-lg-6{{ $errors->has('email') ? 'error' : '' }}">
|
||||||
{{ Form::label('email', trans('admin/users/table.email')) }}
|
<label for="email">{{ trans('admin/users/table.email') }}</label>
|
||||||
{{ Form::email('email', config('mail.from.address'), array('class' => 'form-control','placeholder' => 'you@example.com', 'required' => true)) }}
|
<input class="form-control" type="email" name="email" id="email" value="{{ old('email', config('mail.from.address')) }}" placeholder="you@example.com" required>
|
||||||
{!! $errors->first('email', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('email', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- username -->
|
<!-- username -->
|
||||||
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'username')) ? ' required' : '' }} {{ $errors->has('username') ? 'error' : '' }}">
|
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'username')) ? ' required' : '' }} {{ $errors->has('username') ? 'error' : '' }}">
|
||||||
{{ Form::label('username', trans('admin/users/table.username')) }}
|
<label for="username">{{ trans('admin/users/table.username') }}</label>
|
||||||
<input class="form-control" placeholder="jsmith" required="" name="username" type="text" id="username" value="{{ old('username') }}">
|
<input class="form-control" placeholder="jsmith" required="" name="username" type="text" id="username" value="{{ old('username') }}">
|
||||||
{!! $errors->first('username', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('username', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -140,14 +140,14 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- password -->
|
<!-- password -->
|
||||||
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password') ? 'error' : '' }}">
|
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password') ? 'error' : '' }}">
|
||||||
{{ Form::label('password', trans('admin/users/table.password')) }}
|
<label for="password">{{ trans('admin/users/table.password') }}</label>
|
||||||
<input class="form-control" type="password" name="password" id="password" value="" required>
|
<input class="form-control" type="password" name="password" id="password" value="" required>
|
||||||
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- password confirm -->
|
<!-- password confirm -->
|
||||||
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password_confirm') ? 'error' : '' }}">
|
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password_confirm') ? 'error' : '' }}">
|
||||||
{{ Form::label('password_confirmation', trans('admin/users/table.password_confirm')) }}
|
<label for="password_confirmation">{{ trans('admin/users/table.password_confirm') }}</label>
|
||||||
<input class="form-control" type="password" name="password_confirmation" id="password_confirmation" value="" required>
|
<input class="form-control" type="password" name="password_confirmation" id="password_confirmation" value="" required>
|
||||||
{!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<!-- Chart color -->
|
<!-- Chart color -->
|
||||||
<div class="form-group{{ $errors->has('color') ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has('color') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('color', trans('admin/statuslabels/table.color'), ['class' => 'col-md-3 control-label']) }}
|
<label for="color" class="col-md-3 control-label">{{ trans('admin/statuslabels/table.color') }}</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<div class="input-group color">
|
<div class="input-group color">
|
||||||
<input class="form-control col-md-10" maxlength="20" name="color" type="text" id="color" value="{{ old('color', $item->color) }}">
|
<input class="form-control col-md-10" maxlength="20" name="color" type="text" id="color" value="{{ old('color', $item->color) }}">
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
@include ('partials.forms.edit.address')
|
@include ('partials.forms.edit.address')
|
||||||
|
|
||||||
<div class="form-group {{ $errors->has('contact') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('contact') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('contact', trans('admin/suppliers/table.contact'), array('class' => 'col-md-3 control-label')) }}
|
<label for="contact" class="col-md-3 control-label">{{ trans('admin/suppliers/table.contact') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" name="contact" type="text" id="contact" value="{{ old('contact', $item->contact) }}">
|
<input class="form-control" name="contact" type="text" id="contact" value="{{ old('contact', $item->contact) }}">
|
||||||
{!! $errors->first('contact', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('contact', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
@include ('partials.forms.edit.email')
|
@include ('partials.forms.edit.email')
|
||||||
|
|
||||||
<div class="form-group {{ $errors->has('url') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('url') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('url', trans('general.url'), array('class' => 'col-md-3 control-label')) }}
|
<label for="url" class="col-md-3 control-label">{{ trans('general.url') }}</label>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<input class="form-control" name="url" type="text" id="url" value="{{ old('url', $item->url) }}">
|
<input class="form-control" name="url" type="text" id="url" value="{{ old('url', $item->url) }}">
|
||||||
{!! $errors->first('url', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('url', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
|
|
@ -124,16 +124,16 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
|
|
||||||
<label for="no_change" class="form-control">
|
<label for="no_change_remote" class="form-control">
|
||||||
{{ Form::radio('remote', '', true, ['id' => 'no_change', 'aria-label'=>'no_change']) }}
|
<input type="radio" name="remote" id="no_change_remote" value="" checked aria-label="no_change_remote">
|
||||||
{{ trans('general.do_not_change') }}
|
{{ trans('general.do_not_change') }}
|
||||||
</label>
|
</label>
|
||||||
<label for="remote" class="form-control">
|
<label for="remote" class="form-control">
|
||||||
{{ Form::radio('remote', '1', old('remote'), ['id' => 'remote', 'aria-label'=>'remote']) }}
|
<input type="radio" name="remote" id="remote" value="1" aria-label="remote">
|
||||||
{{ trans('admin/users/general.remote_label') }}
|
{{ trans('admin/users/general.remote_label') }}
|
||||||
</label>
|
</label>
|
||||||
<label for="not_remote" class="form-control">
|
<label for="not_remote" class="form-control">
|
||||||
{{ Form::radio('remote', '0', old('remote'), ['id' => 'not_remote', 'aria-label'=>'not_remote']) }}
|
<input type="radio" name="remote" id="not_remote" value="0" aria-label="not_remote">
|
||||||
{{ trans('admin/users/general.not_remote_label') }}
|
{{ trans('admin/users/general.not_remote_label') }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
@ -147,16 +147,16 @@
|
||||||
{{ trans('general.user_managed_passwords') }}
|
{{ trans('general.user_managed_passwords') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<label for="no_change" class="form-control">
|
<label for="no_change_ldap_import" class="form-control">
|
||||||
{{ Form::radio('ldap_import', '', true, ['id' => 'no_change', 'aria-label'=>'ldap_import']) }}
|
<input type="radio" name="ldap_import" id="no_change_ldap_import" value="" checked aria-label="no_change_ldap_import">
|
||||||
{{ trans('general.do_not_change') }}
|
{{ trans('general.do_not_change') }}
|
||||||
</label>
|
</label>
|
||||||
<label for="ldap_import" class="form-control">
|
<label for="no_ldap_import" class="form-control">
|
||||||
{{ Form::radio('ldap_import', '0', old('ldap_import'), ['id' => 'ldap_import', 'aria-label'=>'ldap_import']) }}
|
<input type="radio" name="ldap_import" id="no_ldap_import" value="0" aria-label="no_ldap_import">
|
||||||
{{ trans('general.user_managed_passwords_allow') }}
|
{{ trans('general.user_managed_passwords_allow') }}
|
||||||
</label>
|
</label>
|
||||||
<label for="ldap_import" class="form-control">
|
<label for="ldap_import" class="form-control">
|
||||||
{{ Form::radio('ldap_import', '1', old('ldap_import'), ['id' => 'ldap_import', 'aria-label'=>'ldap_import']) }}
|
<input type="radio" name="ldap_import" id="ldap_import" value="1" aria-label="ldap_import">
|
||||||
{{ trans('general.user_managed_passwords_disallow') }}
|
{{ trans('general.user_managed_passwords_disallow') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -170,15 +170,15 @@
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
|
|
||||||
<label for="no_change_autoassign_licenses" class="form-control">
|
<label for="no_change_autoassign_licenses" class="form-control">
|
||||||
{{ Form::radio('autoassign_licenses', '', true, ['id' => 'no_change_autoassign_licenses', 'aria-label'=>'no_change_autoassign_licenses']) }}
|
<input type="radio" name="autoassign_licenses" id="no_change_autoassign_licenses" value="" checked aria-label="no_change_autoassign_licenses">
|
||||||
{{ trans('general.do_not_change') }}
|
{{ trans('general.do_not_change') }}
|
||||||
</label>
|
</label>
|
||||||
<label for="autoassign_licenses" class="form-control">
|
<label for="autoassign_licenses" class="form-control">
|
||||||
{{ Form::radio('autoassign_licenses', '1', old('autoassign_licenses'), ['id' => 'autoassign_licenses', 'aria-label'=>'autoassign_licenses']) }}
|
<input type="radio" name="autoassign_licenses" id="autoassign_licenses" value="1" aria-label="autoassign_licenses">
|
||||||
{{ trans('general.autoassign_licenses_help')}}
|
{{ trans('general.autoassign_licenses_help')}}
|
||||||
</label>
|
</label>
|
||||||
<label for="dont_autoassign_licenses" class="form-control">
|
<label for="dont_autoassign_licenses" class="form-control">
|
||||||
{{ Form::radio('autoassign_licenses', '0', old('autoassign_licenses'), ['id' => 'dont_autoassign_licenses', 'aria-label'=>'dont_autoassign_licenses']) }}
|
<input type="radio" name="autoassign_licenses" id="dont_autoassign_licenses" value="0" aria-label="dont_autoassign_licenses">
|
||||||
{{ trans('general.no_autoassign_licenses_help')}}
|
{{ trans('general.no_autoassign_licenses_help')}}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
@ -192,16 +192,16 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
|
|
||||||
<label for="no_change" class="form-control">
|
<label for="no_change_activated" class="form-control">
|
||||||
{{ Form::radio('activated', '', true, ['id' => 'no_change', 'aria-label'=>'no_change']) }}
|
<input type="radio" name="activated" id="no_change_activated" value="" checked aria-label="no_change_activated">
|
||||||
{{ trans('general.do_not_change') }}
|
{{ trans('general.do_not_change') }}
|
||||||
</label>
|
</label>
|
||||||
<label for="activated" class="form-control">
|
<label for="activated" class="form-control">
|
||||||
{{ Form::radio('activated', '1', old('activated'), ['id' => 'activated', 'aria-label'=>'activated']) }}
|
<input type="radio" name="activated" id="activated" value="1" aria-label="activated">
|
||||||
{{ trans('admin/users/general.user_activated')}}
|
{{ trans('admin/users/general.user_activated')}}
|
||||||
</label>
|
</label>
|
||||||
<label for="deactivated" class="form-control">
|
<label for="deactivated" class="form-control">
|
||||||
{{ Form::radio('activated', '0', old('activated'), ['id' => 'deactivated', 'aria-label'=>'deactivated']) }}
|
<input type="radio" name="activated" id="deactivated" value="0" aria-label="deactivated">
|
||||||
{{ trans('admin/users/general.user_deactivated')}}
|
{{ trans('admin/users/general.user_deactivated')}}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue