Skip to content

Commit a28481c

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents a5b2dbf + 5455abf commit a28481c

File tree

743 files changed

+10152
-1594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

743 files changed

+10152
-1594
lines changed

README.md

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ This project is being actively developed and we're [releasing quite frequently](
1414
__This is web-based software__. This means there there is no executable file (aka no .exe files), and it must be run on a web server and accessed through a web browser. It runs on any Mac OSX, flavor of Linux, as well as Windows.
1515

1616
-----
17-
### Documentation & Installation
1817

19-
__Installation and configuration documentation for this project has been moved to http://snipeitapp.com/documentation/.__
18+
### Installation
2019

21-
We'll be adding a long-overdue user's manual soon as well.
20+
__Installation and configuration documentation for this project has been moved to http://docs.snipeitapp.com.__
2221

23-
__To deploy on Ubuntu using Ansible and Vagrant, be sure to check out the [Snipe-IT Installation scripts](https://github.com/GR360RY/snipeit-ansible) created by [@GR360RY](https://github.com/GR360RY/).__
22+
#### Server Requirements
23+
Please see the [requirements documentation](http://docs.snipeitapp.com/requirements.html) for full requirements.
24+
25+
26+
To deploy on Ubuntu using Ansible and Vagrant, check out the [Snipe-IT Installation scripts](https://github.com/GR360RY/snipeit-ansible) created by [@GR360RY](https://github.com/GR360RY/).
2427

2528
-----
2629
### Bug Reports & Feature Requests
@@ -29,44 +32,31 @@ Feel free to check out the [GitHub Issues for this project](https://github.com/s
2932

3033
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.
3134

32-
[![Stories in Ready](https://badge.waffle.io/snipe/snipe-it.png?label=ready&title=Ready)](http://waffle.io/snipe/snipe-it)
35+
If you're having trouble with the installation, please check the [Common Issues](http://docs.snipeitapp.com/common-issues.html) and [Getting Help](http://docs.snipeitapp.com/getting-help.html) documentation.
3336

3437
-----
35-
### Announcement List
3638

37-
To be notified of important news (such as new releases, security advisories, etc), [sign up for our list](http://eepurl.com/XyZKz). We'll never sell or give away your info, and we'll only email you when it's important.
38-
39-
40-
### Translations!
39+
### Upgrading
4140

42-
If you're not a coder but want to give back to the project and you're fluent in other languages, consider helping out with the translations. We use [CrowdIn](https://crowdin.com) to manage translations, and it makes it super-simple for you to add translations to the project without messing with code. Check out [the Snipe-IT CrowdIn translation project here](https://crowdin.com/project/snipe-it/).
41+
Please see the [upgrading documentation](http://docs.snipeitapp.com/upgrading.html) for instructions on upgrading Snipe-IT.
4342

44-
We currently have English, Chinese, Finnish, Malay, Romanian and Spanish completed, and are looking for lots more!
43+
------
44+
### Announcement List
4545

46-
-----
47-
## Requirements
46+
To be notified of important news (such as new releases, security advisories, etc), [sign up for our list](http://eepurl.com/XyZKz). We'll never sell or give away your info, and we'll only email you when it's important.
4847

49-
- PHP 5.4 or later
50-
- MCrypt PHP Extension
51-
- Fileinfo Extension
48+
------
5249

53-
And _one_ of the following image libraries (for QR codes, asset model image and user avatar image uploads).
50+
### Translations!
5451

55-
- GD Library (>=2.0) … or …
56-
- Imagick PHP extension (>=6.3.8)
52+
Please see the [translations documentation](http://docs.snipeitapp.com/translations.html) for information about available languages and how to add translations to Snipe-IT.
5753

5854
-----
5955

60-
## Important Notes on Updating
56+
### Contributing
6157

62-
Whenever you pull down a new version from master or develop, when you grab the [latest official release](https://github.com/snipe/snipe-it/releases), make sure to run the following commands via command line:
58+
Please see the documentation on [contributing and developing for Snipe-IT](http://docs.snipeitapp.com/contributing.html).
6359

64-
php composer.phar dump-autoload
65-
php artisan migrate
66-
67-
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.
68-
69-
## Contributor Code of Conduct
60+
[![Stories in Ready](https://badge.waffle.io/snipe/snipe-it.png?label=ready+for+dev&title=Ready+for+Development)](http://waffle.io/snipe/snipe-it)
7061

7162
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
72-

app/commands/ImportCommand.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,12 @@ public function fire()
123123
$user_asset_notes = '';
124124
}
125125

126-
if (array_key_exists('9',$row)) {
127-
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[10]));
126+
if (array_key_exists('10',$row)) {
127+
if ($row[10]!='') {
128+
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[10]));
129+
} else {
130+
$user_asset_purchase_date = '';
131+
}
128132
} else {
129133
$user_asset_purchase_date = '';
130134
}
@@ -314,7 +318,11 @@ public function fire()
314318
$asset->rtd_location_id = $location->id;
315319
$asset->user_id = 1;
316320
$asset->status_id = $status_id;
317-
$asset->purchase_date = $user_asset_purchase_date;
321+
if ($user_asset_purchase_date!='') {
322+
$asset->purchase_date = $user_asset_purchase_date;
323+
} else {
324+
$asset->purchase_date = NULL;
325+
}
318326
$asset->notes = e($user_asset_notes);
319327

320328
if ($asset->save()) {

app/lang/ar/admin/accessories/general.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
'about_accessories_text' => 'الملحقات هي أي شيء تقوم بتسليمه للمستخدمين لكنه لا يحتوي على رقم تسلسلي (أو أنك لست بحاجة إلى تتبعه بشكل خاص). مثال: فأرة الحاسوب أو لوحة المفاتيح.',
66
'accessory_category' => 'فئة الملحق',
77
'accessory_name' => 'اسم الملحق',
8-
'create' => 'إنشاء فئة جديدة',
8+
'create' => 'Create Accessory',
99
'eula_text' => 'إنشاء اتفاقية جديدة',
1010
'eula_text_help' => 'يسمح لك هذا الحقل بتخصيص الاتفاقيات لأنواع معينة من الأصول. اذا كنت تمتلك اتفاقية واحدة لجميع أصولك يمكنك أن تقوم بتأشير المربع في الأسفل لاستخدام الاتفاقية الافتراضية.',
1111
'require_acceptance' => 'مطالبة المستخدمين بتأكيد قبولهم الأصول في هذه الفئة.',
1212
'no_default_eula' => 'ليس هناك اتفاقيات. قم باضافة واحدة من "الاعدادات".',
1313
'qty' => 'الكمية',
1414
'total' => 'المجموع',
1515
'remaining' => 'المتاح',
16-
'update' => 'تحديث الفئة',
16+
'update' => 'Update Accessory',
1717
'use_default_eula' => 'قم باستعمال <a href="#" data-toggle="modal" data-target="#eulaModal">primary default EULA</a>.',
1818
'use_default_eula_disabled' => '<del>Use the primary default EULA instead.</del> No primary default EULA is set. Please add one in Settings.',
1919

app/lang/ar/admin/accessories/message.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
return array(
44

55
'does_not_exist' => 'هذه الفئة غير موجودة.',
6-
'assoc_users' => 'This accessory currently has :count items checked out to users. Please check in the accessories and and try again. ',
6+
'assoc_users' => 'تم إخراج :count عنصر من هذا الملحق للمستخدمين، الرجاء إيداع الملحقات ثم حاول مرة أخرى. ',
77

88
'create' => array(
9-
'error' => 'Category was not created, please try again.',
10-
'success' => 'Category created successfully.'
9+
'error' => 'فشل إنشاء التصنيف، الرجاء المحاولة مرة أخرى.',
10+
'success' => 'تم إنشاء الفئة بنجاح.'
1111
),
1212

1313
'update' => array(
14-
'error' => 'Category was not updated, please try again',
14+
'error' => 'فشل تحديث التصنيف، الرجاء المحاولة مرة أخرى',
1515
'success' => 'Category updated successfully.'
1616
),
1717

@@ -22,14 +22,14 @@
2222
),
2323

2424
'checkout' => array(
25-
'error' => 'Accessory was not checked out, please try again',
26-
'success' => 'Accessory checked out successfully.',
27-
'user_does_not_exist' => 'That user is invalid. Please try again.'
25+
'error' => 'لم يتم إخراج الملحق، الرجاء المحاولة مرة أخرى',
26+
'success' => 'تم إخراج الملحق بنجاح.',
27+
'user_does_not_exist' => 'هذا المستخدم خاطئ، الرجاء المحاولة مرة أخرى.'
2828
),
2929

3030
'checkin' => array(
31-
'error' => 'Accessory was not checked in, please try again',
32-
'success' => 'Accessory checked in successfully.',
31+
'error' => 'لم يتم إيداع الملحق، الرجاء المحاولة مرة أخرى',
32+
'success' => 'تم إيداع الملحق بنجاح.',
3333
'user_does_not_exist' => 'That user is invalid. Please try again.'
3434
)
3535

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
return [
4+
'asset_maintenance_type' => 'Asset Maintenance Type',
5+
'title' => 'Title',
6+
'start_date' => 'Start Date',
7+
'completion_date' => 'Completion Date',
8+
'cost' => 'Cost',
9+
'is_warranty' => 'Warranty Improvement',
10+
'asset_maintenance_time' => 'Asset Maintenance Time (in days)',
11+
'notes' => 'Notes',
12+
'update' => 'Update Asset Maintenance',
13+
'create' => 'Create Asset Maintenance'
14+
];
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
return [
4+
'asset_maintenances' => 'Asset Maintenances',
5+
'edit' => 'Edit Asset Maintenance',
6+
'delete' => 'Delete Asset Maintenance',
7+
'view' => 'View Asset Maintenance Details',
8+
'repair' => 'Repair',
9+
'maintenance' => 'Maintenance',
10+
'upgrade' => 'Upgrade'
11+
];
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
return [
4+
'not_found' => 'Asset Maintenance you were looking for was not found!',
5+
'delete' => [
6+
'confirm' => 'Are you sure you wish to delete this asset maintenance?',
7+
'error' => 'There was an issue deleting the asset maintenance. Please try again.',
8+
'success' => 'The asset maintenance was deleted successfully.'
9+
],
10+
'create' => [
11+
'error' => 'Asset Maintenance was not created, please try again.',
12+
'success' => 'Asset Maintenance created successfully.'
13+
],
14+
'asset_maintenance_incomplete' => 'Not Completed Yet',
15+
'warranty' => 'Warranty',
16+
'not_warranty' => 'Not Warranty',
17+
];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
return [
4+
'title' => 'Asset Maintenance',
5+
'asset_name' => 'Asset Name',
6+
'supplier_name' => 'Supplier Name',
7+
'is_warranty' => 'Warranty',
8+
'dl_csv' => 'Download CSV'
9+
];

app/lang/ar/admin/categories/general.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'about_categories' => 'تصنيفات الأصول تساعدك على ترتيب الأصول. من الأمثلة على التصنيفات &quot; مكاتب &quot;، &quot;أجهزة الكمبيوتر المحمولة &quot;، &quot;الهواتف النقالة &quot;، &quot;أجهزة لوحية &quot; وهكذا، كما يمكنك استخدام التصنيفات بأي طريقة تناسبك. ',
66
'asset_categories' => 'التصنيفات',
77
'category_name' => 'اسم التصنيف',
8+
'checkin_email' => 'Send email to user on checkin.',
89
'clone' => 'Clone Category',
910
'create' => 'إنشاء تصنيف',
1011
'edit' => 'Edit Category',
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
return array(
4+
'about_consumables_title' => 'About Consumables',
5+
'about_consumables_text' => 'Consumables are anything purchased that will be used up over time. For example, printer ink or copier paper.',
6+
'consumable_name' => 'Consumable Name',
7+
'create' => 'Create Consumable',
8+
'remaining' => 'Remaining',
9+
'total' => 'Total',
10+
'update' => 'Update Consumable',
11+
);

0 commit comments

Comments
 (0)