mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
adds migration and translations
This commit is contained in:
parent
b83d148b37
commit
46a6a84ecb
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration {
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
|
$table->boolean('shortcuts_enabled')->default(false);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('shortcuts_enabled');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
|
@ -218,6 +218,8 @@ return [
|
||||||
'webhook_integration_help' => ':app integration is optional, however the endpoint and channel are required if you wish to use it. To configure :app integration, you must first <a href=":webhook_link" target="_new" rel="noopener">create an incoming webhook</a> on your :app account. Click on the <strong>Test :app Integration</strong> button to confirm your settings are correct before saving. ',
|
'webhook_integration_help' => ':app integration is optional, however the endpoint and channel are required if you wish to use it. To configure :app integration, you must first <a href=":webhook_link" target="_new" rel="noopener">create an incoming webhook</a> on your :app account. Click on the <strong>Test :app Integration</strong> button to confirm your settings are correct before saving. ',
|
||||||
'webhook_integration_help_button' => 'Once you have saved your :app information, a test button will appear.',
|
'webhook_integration_help_button' => 'Once you have saved your :app information, a test button will appear.',
|
||||||
'webhook_test_help' => 'Test whether your :app integration is configured correctly. YOU MUST SAVE YOUR UPDATED :app SETTINGS FIRST.',
|
'webhook_test_help' => 'Test whether your :app integration is configured correctly. YOU MUST SAVE YOUR UPDATED :app SETTINGS FIRST.',
|
||||||
|
'shortcuts_enabled' => 'Enable Shortcuts',
|
||||||
|
'shortcuts_help_text' => '<strong>Windows</strong>: Alt + Access key, <strong>Mac</strong>: Control + Option + Access key',
|
||||||
'snipe_version' => 'Snipe-IT version',
|
'snipe_version' => 'Snipe-IT version',
|
||||||
'support_footer' => 'Support Footer Links ',
|
'support_footer' => 'Support Footer Links ',
|
||||||
'support_footer_help' => 'Specify who sees the links to the Snipe-IT Support info and Users Manual',
|
'support_footer_help' => 'Specify who sees the links to the Snipe-IT Support info and Users Manual',
|
||||||
|
|
|
@ -163,6 +163,21 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Shortcuts enable -->
|
||||||
|
<div class="form-group {{ $errors->has('shortcuts_enabled') ? 'error' : '' }}">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<strong> {{ trans('admin/settings/general.shortcuts_enabled') }}</strong>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-9">
|
||||||
|
<label class="form-control">
|
||||||
|
{{ Form::checkbox('shortcuts_enabled', '0', old('shortcuts_enabled', $setting->require_accept_signature)) }}
|
||||||
|
{{ trans('general.yes') }}
|
||||||
|
</label>
|
||||||
|
{!! $errors->first('shortcuts_enabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
|
<p class="help-block">{!!trans('admin/settings/general.shortcuts_help_text') !!}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Per Page -->
|
<!-- Per Page -->
|
||||||
<div class="form-group {{ $errors->has('per_page') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('per_page') ? 'error' : '' }}">
|
||||||
|
|
Loading…
Reference in a new issue