A free open source IT asset/license management system
Add next auto-increment to settings form
snipe5b9bcd8fa2fb
diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.phpindex 7b3612bb5e..a66ec98292 100755--- a/app/Http/Controllers/SettingsController.php+++ b/app/Http/Controllers/SettingsController.php@@ -362,6 +362,7 @@ class SettingsController extends Controller$setting->labels_fontsize = e(Input::get('labels_fontsize'));$setting->labels_pagewidth = e(Input::get('labels_pagewidth'));$setting->labels_pageheight = e(Input::get('labels_pageheight'));+ $setting->next_auto_tag_base = e(Input::get('next_auto_tag_base'));if (Input::has('labels_display_name')) {diff --git a/resources/lang/en/admin/settings/general.php b/resources/lang/en/admin/settings/general.phpindex 1a6b2d4797..ee99da53d4 100644--- a/resources/lang/en/admin/settings/general.php+++ b/resources/lang/en/admin/settings/general.php@@ -90,6 +90,7 @@ return array('about_settings_text' => 'These settings let you customize certain aspects of your installation.','labels_per_page' => 'Labels per page','label_dimensions' => 'Label dimensions (inches)',+ 'next_auto_tag_base' => 'Next auto-increment','page_padding' => 'Page margins (inches)','purge' => 'Purge Deleted Records','labels_display_bgutter' => 'Label bottom gutter',diff --git a/resources/views/settings/edit.blade.php b/resources/views/settings/edit.blade.phpindex 6f43a8a738..9241d0baf6 100755--- a/resources/views/settings/edit.blade.php+++ b/resources/views/settings/edit.blade.php@@ -338,6 +338,17 @@</div></div>+ <div class="form-group">+ <div class="col-md-3">+ {{ Form::label('next_auto_tag_base', trans('admin/settings/general.next_auto_tag_base')) }}+ </div>+ <div class="col-md-9">+ {{ Form::text('next_auto_tag_base', Input::old('next_auto_tag_base', $setting->next_auto_tag_base), array('class' => 'form-control', 'style'=>'width: 100px;')) }}+ {!! $errors->first('next_auto_tag_base', '<span class="alert-msg">:message</span>') !!}+ </div>+ </div>++<!-- auto prefix --><div class="form-group {{ $errors->has('auto_increment_prefix') ? 'error' : '' }}"><div class="col-md-3">