Compare commits

...

12 Commits

Author SHA1 Message Date
snipe dede09e9c5 Merge remote-tracking branch 'origin/develop' 2015-01-22 15:41:36 -08:00
snipe 3787a3f4ba Fixed language strings for incrementing IDs 2015-01-22 15:34:19 -08:00
snipe 95141d49ba Fixes #432 - add model name to checkout 2015-01-22 15:20:16 -08:00
snipe d85e524680 Fixes #451 - allows spaces in state name 2015-01-22 14:29:53 -08:00
snipe 4a77dee79c Fixes #447 - added asset log entry on save 2015-01-22 14:16:09 -08:00
snipe 6fba41e026 Updated gitignore to ignore crowdin 2015-01-22 13:42:32 -08:00
snipe f39922f51f Merge remote-tracking branch 'origin/develop'
Conflicts:
	CONTRIBUTING.md
2015-01-22 13:31:19 -08:00
snipe 5268c579e2 Update CONTRIBUTING.md 2015-01-08 17:34:23 -08:00
snipe 21448ea8e6 Update CONTRIBUTING.md 2015-01-08 17:33:49 -08:00
snipe 5c98dae57d Merge branch 'develop' 2015-01-08 11:34:19 -08:00
snipe 5a6139fb64 Merge pull request #391 from bitdeli-chef/master
Add a Bitdeli Badge to README
2014-11-22 22:57:29 -05:00
Bitdeli Chef 0fb2728e3f Add a Bitdeli badge to README 2014-11-23 04:06:26 +00:00
10 changed files with 43 additions and 15 deletions
+2 -1
View File
@@ -16,4 +16,5 @@ public/uploads/avatars/*
/app/storage/logs/*
/app/storage/debugbar/
/bin/
.idea
.idea
crowdin.yaml
+1 -2
View File
@@ -6,12 +6,11 @@ Please submit all issues and pull requests to the [snipe/snipe-it](http://github
If you don't have a feature in mind, but would like to contribute back to the project, check out the [open issues](https://github.com/snipe/snipe-it/issues?state=open) and see if there are any you can tackle.
We use Waffle.io to help better communicate our roadmap with users. Our [project page there](http://waffle.io/snipe/snipe-it) will show you the backlog, what's ready to be worked on, what's in progress, and what's completed.
-----
[![Stories in Ready](https://badge.waffle.io/snipe/snipe-it.png?label=ready&title=Ready)](http://waffle.io/snipe/snipe-it)
-----
## Translations!
Executable → Regular
+4
View File
@@ -65,3 +65,7 @@ Whenever you pull down a new version from master or develop, when you grab the [
php artisan migrate
Forgetting to do this can mean your DB might end up out of sync with the new files you just pulled, or you may have some funky cached autoloader values. It's a good idea to get into the habit of running these every time you pull anything new down. If there are no database changes to migrate, it won't hurt anything to run migrations anyway.
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/snipe/snipe-it/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
@@ -212,6 +212,15 @@ class AssetsController extends AdminController
// Was the asset created?
if($asset->save()) {
$logaction = new Actionlog();
$logaction->asset_id = $asset->id;
$logaction->checkedout_to = $asset->assigned_to;
$logaction->asset_type = 'hardware';
$logaction->user_id = Sentry::getUser()->id;
$logaction->note = e(Input::get('note'));
$log = $logaction->logaction('checkout');
// Redirect to the asset listing page
return Redirect::to("hardware")->with('success', Lang::get('admin/hardware/message.create.success'));
}
+5 -4
View File
@@ -377,8 +377,9 @@ class LicensesController extends AdminController
// Left join to get a list of assets and some other helpful info
$asset = DB::table('assets')
->leftJoin('users', 'users.id', '=', 'assets.assigned_to')
->select('assets.id', 'name', 'first_name', 'last_name','asset_tag',
DB::raw('concat (first_name," ",last_name) as full_name, assets.id as id'))
->leftJoin('models', 'assets.model_id', '=', 'models.id')
->select('assets.id', 'assets.name', 'first_name', 'last_name','asset_tag',
DB::raw('concat (first_name," ",last_name) as full_name, assets.id as id, models.name as modelname'))
->whereNull('assets.deleted_at')
->get();
@@ -389,9 +390,9 @@ class LicensesController extends AdminController
for ($x=0; $x<count($asset_array); $x++) {
if ($asset_array[$x]['full_name']!='') {
$full_name = ' ('.$asset_array[$x]['full_name'].')';
$full_name = ' ('.$asset_array[$x]['full_name'].') '.$asset_array[$x]['modelname'];
} else {
$full_name = ' (Unassigned)';
$full_name = ' (Unassigned) '.$asset_array[$x]['modelname'];
}
$asset_element[$asset_array[$x]['id']] = $asset_array[$x]['asset_tag'].' - '.$asset_array[$x]['name'].$full_name;
+3
View File
@@ -1,6 +1,9 @@
<?php
return array(
'auto_increment_assets' => 'Generate auto-incrementing asset IDs',
'auto_increment_prefix' => 'Prefix (optional)',
'auti_incrementing_help' => 'Enable auto-incrementing asset IDs first to set this',
'display_asset_name' => 'Display Asset Name',
'display_checkout_date' => 'Display Checkout Date',
'display_eol' => 'Display EOL in table view',
+2 -2
View File
@@ -7,8 +7,8 @@ class Location extends Elegant
protected $rules = array(
'name' => 'required|alpha_space|min:3|max:255|unique:locations,name,{id}',
'city' => 'required|alpha_space|min:3|max:255',
'state' => 'required|alpha|min:2|max:32',
'country' => 'required|alpha|min:2|max:2|max:2',
'state' => 'required|alpha_space|min:2|max:32',
'country' => 'required|alpha_space|min:2|max:2|max:2',
'address' => 'required|alpha_space|min:5|max:80',
'address2' => 'alpha_space|min:5|max:80',
'zip' => 'alpha_dash|min:3|max:10',
@@ -43,6 +43,17 @@
</div>
@endif
@if ($asset->model->name)
<!-- Asset name -->
<div class="form-group">
<label class="col-sm-2 control-label">@lang('admin/hardware/form.model')</label>
<div class="col-md-6">
<p class="form-control-static">{{{ $asset->model->name }}}</p>
</div>
</div>
@endif
<!-- User -->
<div class="form-group {{ $errors->has('assigned_to') ? ' has-error' : '' }}">
@@ -31,15 +31,15 @@
<div class="form-group">
<label class="col-sm-2 control-label">@lang('admin/hardware/form.name')</label>
<div class="col-md-6">
<p class="form-control-static">{{ $licenseseat->license->name }}</p>
<p class="form-control-static">{{{ $licenseseat->license->name }}}</p>
</div>
</div>
<!-- Serial -->
<div class="form-group">
<label class="col-sm-2 control-label">@lang('admin/hardware/form.serial')</label>
<div class="col-md-6">
<p class="form-control-static">{{ $licenseseat->license->serial }}</p>
<div class="col-md-10">
<p class="form-control-static" style="word-wrap: break-word;">{{{ $licenseseat->license->serial }}}</p>
</div>
</div>
@@ -48,8 +48,8 @@
<label for="asset_id" class="col-md-2 control-label">@lang('admin/licenses/form.asset')
</label>
<div class="col-md-9">
{{ Form::select('asset_id', $asset_list , Input::old('asset_id', $licenseseat->asset_id), array('class'=>'select2', 'style'=>'min-width:350px')) }}
<div class="col-md-10">
{{ Form::select('asset_id', $asset_list , Input::old('asset_id', $licenseseat->asset_id), array('class'=>'select2', 'style'=>'min-width:600px')) }}
{{ $errors->first('asset_id', '<span class="alert-msg"><i class="icon-remove-sign"></i> :message</span>') }}
</div>
</div>
+1 -1
View File
@@ -91,7 +91,7 @@
@endif
</tr>
<tr>
<td>@lang('admin/settings/general.qr_text')</td>
<td>@lang('admin/settings/general.auti_incrementing_help')</td>
<td>{{{ $setting->qr_text }}}</td>
</tr>
@endforeach