Skip to content

Commit

Permalink
Changes serial to text area, allow new lines. Fixes #118
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jan 28, 2014
1 parent 78e3171 commit 60d94ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/validators.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

Validator::extend('alpha_space', function($attribute,$value,$parameters)
{
return preg_match("/^[-+:?#~'\/\(\)_,!. a-zA-Z0-9]+$/",$value);
return preg_match("/^[\n-+:?#~'\/\(\)_,!. a-zA-Z0-9]+$/m",$value);
});
2 changes: 1 addition & 1 deletion app/views/backend/licenses/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<div class="form-group {{ $errors->has('serial') ? ' has-error' : '' }}">
<label for="serial" class="col-md-3 control-label">@lang('admin/licenses/form.serial')</label>
<div class="col-md-7">
<input class="form-control" type="text" name="serial" id="serial" value="{{ Input::old('serial', $license->serial) }}" />
<textarea class="form-control" type="text" name="serial" id="serial">{{ Input::old('serial', $license->serial) }}</textarea>
{{ $errors->first('serial', '<span class="alert-msg"><i class="icon-remove-sign"></i> :message</span>') }}
</div>
</div>
Expand Down

0 comments on commit 60d94ee

Please sign in to comment.