Add next auto-increment to settings form

This commit is contained in:
snipe 2017-06-20 12:23:16 -07:00
parent 4bde058192
commit 5b9bcd8fa2
3 changed files with 13 additions and 0 deletions

View file

@ -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')) {

View file

@ -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',

View file

@ -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">