Compare commits
210 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d12104eef | |||
| a90f7218de | |||
| 84c12e5f01 | |||
| 8f02e0e26f | |||
| 50abb87276 | |||
| ca625418fe | |||
| 4beb3b024d | |||
| 03daecdfed | |||
| 2dcb59dd8f | |||
| e7f14f66dc | |||
| d0aab3e2c7 | |||
| 58f323721c | |||
| 923d1d34de | |||
| cf767d255d | |||
| daa6943cfc | |||
| 707e5c50e4 | |||
| a7ea98ad93 | |||
| 52a60bd6a5 | |||
| e75cebafeb | |||
| 26c0e96e56 | |||
| 58c497adb7 | |||
| d0ebaf3cb9 | |||
| c4f85fb74d | |||
| 71b85732b0 | |||
| 66fd0c2315 | |||
| 0287821d44 | |||
| 00b93883e4 | |||
| 89816d90b4 | |||
| 4f74ad077a | |||
| 75af50def1 | |||
| ec80c99a48 | |||
| f6b57adda3 | |||
| 76dc518846 | |||
| d149fb1a0f | |||
| d15ef5c79d | |||
| 10909a21cd | |||
| 141c77fed7 | |||
| 9027ed8864 | |||
| 4c662b7136 | |||
| 9ba2779e5f | |||
| 6500af5125 | |||
| ff6fe331f3 | |||
| 567cd4847b | |||
| 97d0d789f0 | |||
| ba9f00365a | |||
| 6f6427a298 | |||
| b943ace21b | |||
| 4abe93ae2e | |||
| 64c5ea033c | |||
| bedb97c0d8 | |||
| 586c04354e | |||
| e13bbb1b6b | |||
| 999b237ed7 | |||
| 505d46d49f | |||
| 515e70b97c | |||
| 53b5ec64e0 | |||
| 2df8c6a3d1 | |||
| 49a20c75ed | |||
| d41c3fde10 | |||
| 8fcf907050 | |||
| 0cb4b9e00b | |||
| 7a57fd73e5 | |||
| 41b3f5b5c8 | |||
| fbbe24f197 | |||
| 9b0495453d | |||
| 0511b0777f | |||
| fe765b3c9c | |||
| 740967e4f2 | |||
| cffd87c5a3 | |||
| c8526a6be0 | |||
| abd0acbe9d | |||
| 3719f9a5a8 | |||
| f9dc5766a7 | |||
| c6b6ccc814 | |||
| bd7a043ab0 | |||
| 611da2ffbd | |||
| 911e9092f9 | |||
| 06c9076c2f | |||
| b8fa5abadf | |||
| dac2747c01 | |||
| db44430870 | |||
| c12139e624 | |||
| a2f6d8f72e | |||
| 39f82e546f | |||
| 6e6661a72b | |||
| d79e2a0864 | |||
| 0110cd3c55 | |||
| 3b359d7c6e | |||
| 3da5c15249 | |||
| fcec12f3b2 | |||
| 924c23b5ae | |||
| d70aa42cc9 | |||
| aecc98b8a3 | |||
| 2c54c93859 | |||
| b6b0a5ac58 | |||
| 2291dda425 | |||
| b402a68bc2 | |||
| 97ecdba262 | |||
| 8c2ee9e96c | |||
| e05baf1df4 | |||
| 141bba490f | |||
| 416be43061 | |||
| 2c89d05156 | |||
| 680b189709 | |||
| 29d5682956 | |||
| 32604f0715 | |||
| d1fc48d82e | |||
| 650f86406d | |||
| 9b353ae0d8 | |||
| cbcc43828e | |||
| c59122a125 | |||
| 6a08ee1597 | |||
| 7bd5ddc516 | |||
| ed05a32f0b | |||
| 780226a612 | |||
| ca37c63649 | |||
| c3e4b579d3 | |||
| 217caf3002 | |||
| c870933125 | |||
| 3698b107d6 | |||
| 703fd9ba8f | |||
| 9107784746 | |||
| b1776a2816 | |||
| 9f993fa16c | |||
| 7555b97f80 | |||
| 784238f2de | |||
| 0d76ea5050 | |||
| 3199dfd1d8 | |||
| ceac5a59ff | |||
| 309ce7d0bd | |||
| 129e45c817 | |||
| e8f3b27141 | |||
| 2eb64b3105 | |||
| c48ae56e2f | |||
| 8d5033c4e5 | |||
| fd78fd8d24 | |||
| 1f6874f0af | |||
| fdde048f11 | |||
| 8fd50e9524 | |||
| f836f88e38 | |||
| 775239e2ed | |||
| 16d1875157 | |||
| af6d9b462b | |||
| bfeb4560ca | |||
| 194e43d206 | |||
| 13830b5c09 | |||
| 855a155178 | |||
| 3975555503 | |||
| b1d6d4da37 | |||
| be402a9d7d | |||
| 00aba507f7 | |||
| 0cadab8fc6 | |||
| cc14eee161 | |||
| 9d4f7193ae | |||
| 2f62925d85 | |||
| f40d4dfbf4 | |||
| fd9f6f615f | |||
| c7618bd31e | |||
| 4e831a6396 | |||
| 0492fad3ab | |||
| 1db2a84dcb | |||
| 913e7f7803 | |||
| da10a9a2aa | |||
| cf7ef5e8b0 | |||
| 3f08258bf0 | |||
| f7ce7060eb | |||
| 6e13da6293 | |||
| dd2b9e15a6 | |||
| 49e898fd26 | |||
| 1927f131aa | |||
| d3bcf727fb | |||
| 1d9bf26194 | |||
| 7a813b2a45 | |||
| 9904f664be | |||
| 41c257829e | |||
| cf649fcd12 | |||
| 4ac79f5e12 | |||
| 7b0fd2c8f4 | |||
| a2bd4250cf | |||
| 26ede441a4 | |||
| afac18ea1b | |||
| da187ff07a | |||
| 9849bbec70 | |||
| 3aaed2600e | |||
| 8e316611c0 | |||
| 0a97135578 | |||
| 1bed711f0e | |||
| 1f1c1cb546 | |||
| f2e7af498e | |||
| afdb958955 | |||
| 06966d52bf | |||
| 723a6260f5 | |||
| a98a0a2f77 | |||
| 59e755c5df | |||
| 55b2fce876 | |||
| 1fadabaf2f | |||
| 33178adeed | |||
| 46fb12f5dc | |||
| 12e6a721f0 | |||
| 0cbc9d266e | |||
| 67e0e14a12 | |||
| 920708fb6c | |||
| 85a64f9dfd | |||
| a28481cd8f | |||
| a5b2dbfaf0 | |||
| abb970fe39 | |||
| 9ac093e0be | |||
| 61e16a4668 | |||
| dacbdd9aa5 | |||
| e1eb2da5f3 |
@@ -31,3 +31,4 @@ nbproject/*
|
||||
app/config/local/ldap.php
|
||||
app/storage/dumps/*
|
||||
app/config/packages/schickling/backup/config.php
|
||||
app/config/app.backup.php
|
||||
|
||||
+15
-12
@@ -1,6 +1,6 @@
|
||||
addons:
|
||||
hosts:
|
||||
- snipe-it.dev
|
||||
- localhost
|
||||
sudo: false
|
||||
|
||||
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
|
||||
@@ -14,27 +14,30 @@ php:
|
||||
|
||||
# optionally specify a list of environments, for example to test different RDBMS
|
||||
env:
|
||||
- DB=mysql
|
||||
- DB=mysql APP_ENV=travis-ci
|
||||
|
||||
# execute any number of scripts before the test run, custom env's are available as variables
|
||||
before_script:
|
||||
- hostname
|
||||
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_unit;" -utravis; fi
|
||||
- curl -s http://getcomposer.org/installer | php
|
||||
- cp app/config/testing/app.example.php app/config/testing/app.php
|
||||
- cp app/config/testing/database.example.php app/config/testing/database.php
|
||||
- cp app/config/testing/mail.example.php app/config/testing/mail.php
|
||||
- cp app/config/travis-ci/app.example.php app/config/travis-ci/app.php
|
||||
- cp app/config/travis-ci/database.example.php app/config/travis-ci/database.php
|
||||
- cp app/config/travis-ci/mail.example.php app/config/travis-ci/mail.php
|
||||
- composer self-update
|
||||
- composer install --prefer-source --no-interaction
|
||||
- php artisan key:generate --env=testing
|
||||
- php artisan migrate:install --env=testing --no-interaction -vvv
|
||||
- php artisan migrate --package cartalyst/sentry --env=testing --no-interaction -vvv
|
||||
- php artisan migrate --env=testing --no-interaction -vvv
|
||||
- php artisan db:seed --env=testing --no-interaction -vvv
|
||||
- php artisan key:generate
|
||||
- php artisan migrate:install --no-interaction -vvv
|
||||
- php artisan migrate --package cartalyst/sentry --no-interaction -vvv
|
||||
- php artisan migrate --no-interaction -vvv
|
||||
- php artisan db:seed --no-interaction -vvv
|
||||
- ./vendor/bin/codecept build
|
||||
- APP_ENV=travis-ci php artisan serve --port=8007 &
|
||||
- sleep 5
|
||||
|
||||
# omitting "script:" will default to phpunit
|
||||
# use the $DB env variable to determine the phpunit.xml to use
|
||||
# script: ./vendor/bin/codecept run
|
||||
script: phpunit
|
||||
script: ./vendor/bin/codecept run --env travis-ci -vvv
|
||||
|
||||
# configure notifications (email, IRC, campfire etc)
|
||||
notifications:
|
||||
|
||||
+6
-27
@@ -4,6 +4,8 @@ MAINTAINER Brady Wetherington <uberbrady@gmail.com>
|
||||
RUN apt-get update && apt-get install -y \
|
||||
apache2-bin \
|
||||
libapache2-mod-php5 \
|
||||
php5-curl \
|
||||
php5-ldap \
|
||||
php5-mysql \
|
||||
php5-mcrypt \
|
||||
php5-gd \
|
||||
@@ -31,36 +33,13 @@ RUN a2enmod rewrite
|
||||
|
||||
############ INITIAL APPLICATION SETUP #####################
|
||||
|
||||
COPY docker/app_start.patch /tmp/app_start.patch
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
#Patch bootstrap file
|
||||
RUN patch -p1 < /tmp/app_start.patch
|
||||
#Append to bootstrap file (less brittle than 'patch')
|
||||
RUN sed -i 's/return $app;/$env="production";\nreturn $app;/' bootstrap/start.php
|
||||
|
||||
#DB create?
|
||||
# mysqladmin -u root create snipeit_laravel
|
||||
|
||||
#DB create user, grant access to new DB?
|
||||
# grant all privileges on snipeit_laravel.* TO snipeit;
|
||||
|
||||
#DB config file init? (NEVER overwrite!)
|
||||
#RUN cp -n /var/www/html/app/config/production/database.example.php /var/www/html/app/config/production/database.php
|
||||
COPY docker/database.php /var/www/html/app/config/production/database.php
|
||||
|
||||
COPY docker/mail.php /var/www/html/app/config/production/mail.php
|
||||
|
||||
#change DB file user
|
||||
#RUN sed -i s/travis/snipe_it/ /var/www/html/app/config/production/database.php
|
||||
|
||||
#init app config file (DO NOT overwrite!)
|
||||
RUN cp -n /var/www/html/app/config/production/app.example.php /var/www/html/app/config/production/app.php
|
||||
|
||||
# Change default hostname to blank...I guess?
|
||||
RUN sed -i s%http://staging.yourserver.com%% /var/www/html/app/config/production/app.php
|
||||
|
||||
# turn off the toolbar
|
||||
RUN sed -i 's%\x27debug\x27 => true%\x27debug\x27 => false%' /var/www/html/app/config/production/app.php
|
||||
#copy all configuration files
|
||||
COPY docker/*.php /var/www/html/app/config/production/
|
||||
|
||||
RUN chown -R docker /var/www/html
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ This is a FOSS project for asset management in IT Operations. Knowing who has wh
|
||||
|
||||
It is built on [Laravel 4.2](http://laravel.com) and uses the [Sentry 2](https://github.com/cartalyst/sentry) package.
|
||||
|
||||
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](http://snipeitapp.com/demo/).)
|
||||
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](https://snipeitapp.com/demo/).)
|
||||
|
||||
__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.
|
||||
|
||||
@@ -25,6 +25,8 @@ Please see the [requirements documentation](http://docs.snipeitapp.com/requireme
|
||||
|
||||
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/).
|
||||
|
||||
To deploy on a fresh Ubuntu / CentOS install that will be dedicated to Snipe-It, run the "install.sh". Make sure to chmod +x install.sh and run as sudo on Ubuntu systems (or equivalent on CentOS.)
|
||||
|
||||
-----
|
||||
### Bug Reports & Feature Requests
|
||||
|
||||
|
||||
@@ -77,66 +77,80 @@ class AssetImportCommand extends Command {
|
||||
$user_email = '';
|
||||
}
|
||||
|
||||
// Asset Category
|
||||
// User's email
|
||||
if (array_key_exists('2',$row)) {
|
||||
$user_asset_category = trim($row[2]);
|
||||
$user_username = trim($row[2]);
|
||||
} else {
|
||||
$user_username = '';
|
||||
}
|
||||
|
||||
// Asset Name
|
||||
if (array_key_exists('3',$row)) {
|
||||
$user_asset_asset_name = trim($row[3]);
|
||||
} else {
|
||||
$user_asset_asset_name = '';
|
||||
}
|
||||
|
||||
// Asset Category
|
||||
if (array_key_exists('4',$row)) {
|
||||
$user_asset_category = trim($row[4]);
|
||||
} else {
|
||||
$user_asset_category = '';
|
||||
}
|
||||
|
||||
// Asset Name
|
||||
if (array_key_exists('3',$row)) {
|
||||
$user_asset_name = trim($row[3]);
|
||||
if (array_key_exists('5',$row)) {
|
||||
$user_asset_name = trim($row[5]);
|
||||
} else {
|
||||
$user_asset_name = '';
|
||||
}
|
||||
|
||||
// Asset Manufacturer
|
||||
if (array_key_exists('4',$row)) {
|
||||
$user_asset_mfgr = trim($row[4]);
|
||||
if (array_key_exists('6',$row)) {
|
||||
$user_asset_mfgr = trim($row[6]);
|
||||
} else {
|
||||
$user_asset_mfgr = '';
|
||||
}
|
||||
|
||||
// Asset model number
|
||||
if (array_key_exists('5',$row)) {
|
||||
$user_asset_modelno = trim($row[5]);
|
||||
if (array_key_exists('7',$row)) {
|
||||
$user_asset_modelno = trim($row[7]);
|
||||
} else {
|
||||
$user_asset_modelno = '';
|
||||
}
|
||||
|
||||
// Asset serial number
|
||||
if (array_key_exists('6',$row)) {
|
||||
$user_asset_serial = trim($row[6]);
|
||||
if (array_key_exists('8',$row)) {
|
||||
$user_asset_serial = trim($row[8]);
|
||||
} else {
|
||||
$user_asset_serial = '';
|
||||
}
|
||||
|
||||
// Asset tag
|
||||
if (array_key_exists('7',$row)) {
|
||||
$user_asset_tag = trim($row[7]);
|
||||
if (array_key_exists('9',$row)) {
|
||||
$user_asset_tag = trim($row[9]);
|
||||
} else {
|
||||
$user_asset_tag = '';
|
||||
}
|
||||
|
||||
// Asset location
|
||||
if (array_key_exists('8',$row)) {
|
||||
$user_asset_location = trim($row[8]);
|
||||
if (array_key_exists('10',$row)) {
|
||||
$user_asset_location = trim($row[10]);
|
||||
} else {
|
||||
$user_asset_location = '';
|
||||
}
|
||||
|
||||
// Asset notes
|
||||
if (array_key_exists('9',$row)) {
|
||||
$user_asset_notes = trim($row[9]);
|
||||
if (array_key_exists('11',$row)) {
|
||||
$user_asset_notes = trim($row[11]);
|
||||
} else {
|
||||
$user_asset_notes = '';
|
||||
}
|
||||
|
||||
// Asset purchase date
|
||||
if (array_key_exists('10',$row)) {
|
||||
if ($row[10]!='') {
|
||||
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[10]));
|
||||
if (array_key_exists('12',$row)) {
|
||||
if ($row[12]!='') {
|
||||
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[12]));
|
||||
} else {
|
||||
$user_asset_purchase_date = '';
|
||||
}
|
||||
@@ -144,6 +158,17 @@ class AssetImportCommand extends Command {
|
||||
$user_asset_purchase_date = '';
|
||||
}
|
||||
|
||||
// Asset purchase cost
|
||||
if (array_key_exists('13',$row)) {
|
||||
if ($row[13]!='') {
|
||||
$user_asset_purchase_cost = trim($row[13]);
|
||||
} else {
|
||||
$user_asset_purchase_cost = '';
|
||||
}
|
||||
} else {
|
||||
$user_asset_purchase_cost = '';
|
||||
}
|
||||
|
||||
// A number was given instead of a name
|
||||
if (is_numeric($user_name)) {
|
||||
$this->comment('User '.$user_name.' is not a name - assume this user already exists');
|
||||
@@ -157,46 +182,24 @@ class AssetImportCommand extends Command {
|
||||
$user_username = '';
|
||||
|
||||
} else {
|
||||
$user_email_array = User::generateFormattedNameFromFullName($this->option('email_format'), $user_name);
|
||||
$first_name = $user_email_array['first_name'];
|
||||
$last_name = $user_email_array['last_name'];
|
||||
|
||||
$name = explode(" ", $user_name);
|
||||
$first_name = $name[0];
|
||||
$email_last_name = '';
|
||||
$email_prefix = $first_name;
|
||||
if ($user_email=='') {
|
||||
$user_email = $user_email_array['username'].'@'.Config::get('app.domain');
|
||||
}
|
||||
|
||||
if (!array_key_exists(1, $name)) {
|
||||
$last_name='';
|
||||
$email_last_name = $last_name;
|
||||
$email_prefix = $first_name;
|
||||
if ($user_username=='') {
|
||||
if ($this->option('username_format')=='email') {
|
||||
$user_username = $user_email;
|
||||
} else {
|
||||
$last_name = str_replace($first_name,'',$user_name);
|
||||
|
||||
if ($this->option('email_format')=='filastname') {
|
||||
$email_last_name.=str_replace(' ','',$last_name);
|
||||
$email_prefix = $first_name[0].$email_last_name;
|
||||
|
||||
} elseif ($this->option('email_format')=='firstname.lastname') {
|
||||
$email_last_name.=str_replace(' ','',$last_name);
|
||||
$email_prefix = $first_name.'.'.$email_last_name;
|
||||
|
||||
} elseif ($this->option('email_format')=='firstname') {
|
||||
$email_last_name.=str_replace(' ','',$last_name);
|
||||
$email_prefix = $first_name;
|
||||
}
|
||||
|
||||
|
||||
$user_name_array = User::generateFormattedNameFromFullName($this->option('username_format'), $user_name);
|
||||
$user_username = $user_name_array['username'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$user_username = $email_prefix;
|
||||
|
||||
// Generate an email based on their name if no email address is given
|
||||
if ($user_email=='') {
|
||||
if ($first_name=='Unknown') {
|
||||
$status_id = 7;
|
||||
}
|
||||
$email = strtolower($email_prefix).'@'.$this->option('domain');
|
||||
$user_email = str_replace("'",'',$email);
|
||||
}
|
||||
}
|
||||
|
||||
$this->comment('Full Name: '.$user_name);
|
||||
@@ -212,12 +215,14 @@ class AssetImportCommand extends Command {
|
||||
$this->comment('Asset Tag: '.$user_asset_tag);
|
||||
$this->comment('Location: '.$user_asset_location);
|
||||
$this->comment('Purchase Date: '.$user_asset_purchase_date);
|
||||
$this->comment('Purchase Cost: '.$user_asset_purchase_cost);
|
||||
$this->comment('Notes: '.$user_asset_notes);
|
||||
|
||||
$this->comment('------------- Action Summary ----------------');
|
||||
|
||||
if ($user_username!='') {
|
||||
if ($user = User::where('username', $user_username)->whereNotNull('username')->first()) {
|
||||
if ($user = User::MatchEmailOrUsername($user_username, $user_email)
|
||||
->whereNotNull('username')->first()) {
|
||||
$this->comment('User '.$user_username.' already exists');
|
||||
} else {
|
||||
// Create the user
|
||||
@@ -226,7 +231,7 @@ class AssetImportCommand extends Command {
|
||||
'last_name' => $last_name,
|
||||
'email' => $user_email,
|
||||
'username' => $user_username,
|
||||
'password' => substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10),
|
||||
'password' => substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 12),
|
||||
'activated' => true,
|
||||
'permissions' => array(
|
||||
'admin' => 0,
|
||||
@@ -250,24 +255,30 @@ class AssetImportCommand extends Command {
|
||||
if ($location = Location::where('name', $user_asset_location)->first()) {
|
||||
$this->comment('Location '.$user_asset_location.' already exists');
|
||||
} else {
|
||||
$location = new Location();
|
||||
$location->name = e($user_asset_location);
|
||||
$location->address = '';
|
||||
$location->city = '';
|
||||
$location->state = '';
|
||||
$location->country = '';
|
||||
$location->user_id = 1;
|
||||
|
||||
if (!$this->option('testrun')=='true') {
|
||||
if ($user_asset_location!='') {
|
||||
|
||||
if ($location->save()) {
|
||||
$this->comment('Location '.$user_asset_location.' was created');
|
||||
} else {
|
||||
$this->comment('Something went wrong! Location '.$user_asset_location.' was NOT created');
|
||||
$location = new Location();
|
||||
$location->name = e($user_asset_location);
|
||||
$location->address = '';
|
||||
$location->city = '';
|
||||
$location->state = '';
|
||||
$location->country = '';
|
||||
$location->user_id = 1;
|
||||
|
||||
if (!$this->option('testrun')=='true') {
|
||||
|
||||
if ($location->save()) {
|
||||
$this->comment('Location '.$user_asset_location.' was created');
|
||||
} else {
|
||||
$this->comment('Something went wrong! Location '.$user_asset_location.' was NOT created');
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->comment('Location '.$user_asset_location.' was (not) created - test run only');
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->comment('Location '.$user_asset_location.' was (not) created - test run only');
|
||||
$this->comment('No location given, so none created.');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -327,12 +338,17 @@ class AssetImportCommand extends Command {
|
||||
// Check for the asset match and create it if it doesn't exist
|
||||
|
||||
$asset = new Asset();
|
||||
$asset->name = e($user_asset_name);
|
||||
$asset->name = e($user_asset_asset_name);
|
||||
if ($user_asset_purchase_date!='') {
|
||||
$asset->purchase_date = $user_asset_purchase_date;
|
||||
} else {
|
||||
$asset->purchase_date = NULL;
|
||||
}
|
||||
if ($user_asset_purchase_cost!='') {
|
||||
$asset->purchase_cost = ParseFloat(e($user_asset_purchase_cost));
|
||||
} else {
|
||||
$asset->purchase_cost = 0.00;
|
||||
}
|
||||
$asset->serial = e($user_asset_serial);
|
||||
$asset->asset_tag = e($user_asset_tag);
|
||||
$asset->model_id = $asset_model->id;
|
||||
@@ -383,11 +399,11 @@ class AssetImportCommand extends Command {
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
return array(
|
||||
array('domain', null, InputOption::VALUE_REQUIRED, 'Email domain for generated email addresses.', null),
|
||||
array('email_format', null, InputOption::VALUE_REQUIRED, 'The format of the email addresses that should be generated. Options are firstname.lastname, firstname, filastname', null),
|
||||
array('testrun', null, InputOption::VALUE_REQUIRED, 'Test the output without writing to the database or not.', null),
|
||||
);
|
||||
return array(
|
||||
array('email_format', null, InputOption::VALUE_REQUIRED, 'The format of the email addresses that should be generated. Options are firstname.lastname, firstname, filastname', null),
|
||||
array('username_format', null, InputOption::VALUE_REQUIRED, 'The format of the username that should be generated. Options are firstname.lastname, firstname, filastname, email', null),
|
||||
array('testrun', null, InputOption::VALUE_REQUIRED, 'Test the output without writing to the database or not.', null),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-3
@@ -101,10 +101,10 @@ return array(
|
||||
'Barryvdh\Debugbar\ServiceProvider',
|
||||
'Cartalyst\Sentry\SentryServiceProvider',
|
||||
'Chumper\Datatable\DatatableServiceProvider',
|
||||
'Dinesh\Barcode\BarcodeServiceProvider',
|
||||
'Maknz\Slack\SlackServiceProvider',
|
||||
'Schickling\Backup\BackupServiceProvider',
|
||||
'Chumper\Zipper\ZipperServiceProvider',
|
||||
'Fideloper\Proxy\ProxyServiceProvider',
|
||||
|
||||
),
|
||||
|
||||
@@ -176,8 +176,6 @@ return array(
|
||||
'Validator' => 'Illuminate\Support\Facades\Validator',
|
||||
'View' => 'Illuminate\Support\Facades\View',
|
||||
'Reader' => 'League\Csv\Reader',
|
||||
'DNS1D' => 'Dinesh\Barcode\Facades\DNS1DFacade',
|
||||
'DNS2D' => 'Dinesh\Barcode\Facades\DNS2DFacade',
|
||||
'Slack' => 'Maknz\Slack\Facades\Slack',
|
||||
'Zipper' => 'Chumper\Zipper\Zipper',
|
||||
|
||||
|
||||
@@ -28,6 +28,19 @@ return array(
|
||||
|
||||
'url' => 'http://snipe-it-laravel.local:8888',
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Organization Domain Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The domain name of the organization, used when generating email addresses
|
||||
| through the import tools.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => 'yourserver.com',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
@@ -37,7 +50,7 @@ return array(
|
||||
| to a random, 32 character string, otherwise these encrypted strings
|
||||
| will not be safe. Please do this before deploying an application!
|
||||
|
|
||||
| Run a php artisan key:generate to create a random one
|
||||
| Run a php artisan key:generate --env=staging to create a random one
|
||||
*/
|
||||
|
||||
'key' => 'Change_this_key_or_snipe_will_get_ya',
|
||||
|
||||
@@ -28,6 +28,19 @@ return array(
|
||||
|
||||
'url' => 'https://production.yourserver.com',
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Organization Domain Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The domain name of the organization, used when generating email addresses
|
||||
| through the import tools.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => 'yourserver.com',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|
||||
@@ -68,10 +68,10 @@ return array(
|
||||
| LDAP as follows (where $results[$i] represents a row in the LDAP query:
|
||||
| $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0]
|
||||
|
|
||||
| Note: all these fields are required.
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The search filter for the LDAP query.
|
||||
| Note: all these fields are required, and they should all be lowercase.
|
||||
|
|
||||
*/
|
||||
'result.username' => "",
|
||||
|
||||
@@ -13,7 +13,7 @@ return array(
|
||||
|
|
||||
*/
|
||||
|
||||
'debug' => true,
|
||||
'debug' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -28,6 +28,19 @@ return array(
|
||||
|
||||
'url' => 'http://staging.yourserver.com',
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Organization Domain Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The domain name of the organization, used when generating email addresses
|
||||
| through the import tools.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => 'yourserver.com',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|
||||
Executable
+45
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Debug Mode
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When your application is in debug mode, detailed error messages with
|
||||
| stack traces will be shown on every error that occurs within your
|
||||
| application. If disabled, a simple generic error page is shown.
|
||||
|
|
||||
*/
|
||||
|
||||
'debug' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This URL is used by the console to properly generate URLs when using
|
||||
| the Artisan command line tool. You should set this to the root of
|
||||
| your application so that it is used when running Artisan tasks.
|
||||
|
|
||||
*/
|
||||
|
||||
'url' => 'http://localhost:8007',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This key is used by the Illuminate encrypter service and should be set
|
||||
| to a random, 32 character string, otherwise these encrypted strings
|
||||
| will not be safe. Please do this before deploying an application!
|
||||
|
|
||||
| Run a php artisan key:generate --env=staging to create a random one
|
||||
*/
|
||||
|
||||
'key' => '8YHfiO4EyWBewqrpGHDA4Iuom2ZIahXQ',
|
||||
|
||||
);
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Cache Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default cache "driver" that will be used when
|
||||
| using the Caching library. Of course, you may use other drivers any
|
||||
| time you wish. This is the default when another is not specified.
|
||||
|
|
||||
| Supported: "file", "database", "apc", "memcached", "redis", "array"
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => 'array',
|
||||
|
||||
);
|
||||
Executable
+103
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| PDO Fetch Style
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default, database results will be returned as instances of the PHP
|
||||
| stdClass object; however, you may desire to retrieve records in an
|
||||
| array format for simplicity. Here you can tweak the fetch style.
|
||||
|
|
||||
*/
|
||||
|
||||
'fetch' => PDO::FETCH_CLASS,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Database Connection Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify which of the database connections below you wish
|
||||
| to use as your default connection for all database work. Of course
|
||||
| you may use many connections at once using the Database library.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => 'mysql',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Database Connections
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here are each of the database connections setup for your application.
|
||||
| Of course, examples of configuring each database platform that is
|
||||
| supported by Laravel is shown below to make development simple.
|
||||
|
|
||||
|
|
||||
| All database work in Laravel is done through the PHP PDO facilities
|
||||
| so make sure you have the driver for your particular database of
|
||||
| choice installed on your machine before you begin development.
|
||||
|
|
||||
*/
|
||||
|
||||
'connections' => array(
|
||||
'sqlite' => array(
|
||||
'driver' => 'sqlite',
|
||||
'database' => ':memory:',
|
||||
'prefix' => ''
|
||||
),
|
||||
|
||||
'mysql' => array(
|
||||
'driver' => 'mysql',
|
||||
'host' => 'localhost',
|
||||
'database' => 'snipeit_unit',
|
||||
'username' => 'travis',
|
||||
'password' => '',
|
||||
'charset' => 'utf8',
|
||||
'collation' => 'utf8_unicode_ci',
|
||||
'prefix' => '',
|
||||
),
|
||||
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Repository Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This table keeps track of all the migrations that have already run for
|
||||
| your application. Using this information, we can determine which of
|
||||
| the migrations on disk have not actually be run in the databases.
|
||||
|
|
||||
*/
|
||||
|
||||
'migrations' => 'migrations',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Redis Databases
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Redis is an open source, fast, and advanced key-value store that also
|
||||
| provides a richer set of commands than a typical key-value systems
|
||||
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
||||
|
|
||||
*/
|
||||
|
||||
'redis' => array(
|
||||
|
||||
'cluster' => true,
|
||||
|
||||
'default' => array(
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'database' => 0,
|
||||
),
|
||||
|
||||
),
|
||||
|
||||
);
|
||||
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL for the LDAP server. This should start with ldap://, for example:
|
||||
| ldap://ldap.yourserver.com
|
||||
|
|
||||
*/
|
||||
'url' => "",
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Username
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Username to use to connect authenticate to LDAP, for example:
|
||||
| cn=read-only-admin,dc=example,dc=com
|
||||
|
|
||||
*/
|
||||
'username' => "",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Password to use when authenticating to LDAP.
|
||||
|
|
||||
*/
|
||||
'password' => "",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Basedn
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The base where the search for users will be executed, for example:
|
||||
| dc=example,dc=com
|
||||
|
|
||||
*/
|
||||
'basedn' => "",
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Filter
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The search filter for the LDAP query. This probably does not have to be
|
||||
| changed.
|
||||
|
|
||||
*/
|
||||
'filter' => "&(cn=*)",
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| LDAP field names that will be retrieved to create a user.
|
||||
|
|
||||
| Using the username as an example:
|
||||
| If I set 'result.username' => 'my-org-username', the code will connect to
|
||||
| LDAP as follows (where $results[$i] represents a row in the LDAP query:
|
||||
| $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0]
|
||||
|
|
||||
| Note: all these fields are required.
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The search filter for the LDAP query.
|
||||
|
|
||||
*/
|
||||
'result.username' => "",
|
||||
'result.last.name' => "",
|
||||
'result.first.name' => "",
|
||||
|
||||
/*
|
||||
| These fields are optional as not all LDAP directories will have it. If yours
|
||||
| does not have them, just leave these blank and the extra check will
|
||||
| be omitted.
|
||||
*/
|
||||
'result.active.flag' => "",
|
||||
'result.emp.num' => "",
|
||||
'result.email' => "",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| LDAP filter query for authentication
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The LDAP query that we want to execute when authenticating a user. This
|
||||
| should not have to be changed.
|
||||
|
|
||||
*/
|
||||
'authentication.filter.query' => "uid=",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| LDAP Version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Version of LDAP you are using.
|
||||
|
|
||||
*/
|
||||
'version' => 3,
|
||||
|
||||
|
||||
);
|
||||
Executable
+124
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mail Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
|
||||
| sending of e-mail. You may specify which one you're using throughout
|
||||
| your application here. By default, Laravel is setup for SMTP mail.
|
||||
|
|
||||
| Supported: "smtp", "mail", "sendmail"
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => 'smtp',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SMTP Host Address
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may provide the host address of the SMTP server used by your
|
||||
| applications. A default option is provided that is compatible with
|
||||
| the Postmark mail service, which will provide reliable delivery.
|
||||
|
|
||||
*/
|
||||
|
||||
'host' => 'smtp.mandrillapp.com',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SMTP Host Port
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the SMTP port used by your application to delivery e-mails to
|
||||
| users of your application. Like the host we have set this value to
|
||||
| stay compatible with the Postmark e-mail application by default.
|
||||
|
|
||||
*/
|
||||
|
||||
'port' => 587,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global "From" Address
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You may wish for all e-mails sent by your application to be sent from
|
||||
| the same address. Here, you may specify a name and address that is
|
||||
| used globally for all e-mails that are sent by your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'from' => array('address' => null, 'name' => null),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| E-Mail Encryption Protocol
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the encryption protocol that should be used when
|
||||
| the application send e-mail messages. A sensible default using the
|
||||
| transport layer security protocol should provide great security.
|
||||
|
|
||||
*/
|
||||
|
||||
'encryption' => 'tls',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SMTP Server Username
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your SMTP server requires a username for authentication, you should
|
||||
| set it here. This will get used to authenticate with your server on
|
||||
| connection. You may also set the "password" value below this one.
|
||||
|
|
||||
*/
|
||||
|
||||
'username' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SMTP Server Password
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may set the password required by your SMTP server to send out
|
||||
| messages from your application. This will be given to the server on
|
||||
| connection so that the application will be able to send messages.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Sendmail System Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using the "sendmail" driver to send e-mails, we will need to know
|
||||
| the path to where Sendmail lives on this server. A default path has
|
||||
| been provided here, which will work well on most of your systems.
|
||||
|
|
||||
*/
|
||||
|
||||
'sendmail' => '/usr/sbin/sendmail -bs',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mail "Pretend"
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When this option is enabled, e-mail will not actually be sent over the
|
||||
| web and will instead be written to your application's logs files so
|
||||
| you may inspect the message. This is great for local development.
|
||||
|
|
||||
*/
|
||||
|
||||
'pretend' => true,
|
||||
|
||||
);
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
return array (
|
||||
'app_version' => 'v2.0',
|
||||
'hash_version' => 'v2.0-RC-1-11-gda6770c',
|
||||
);
|
||||
'app_version' => 'v2.0-175',
|
||||
'hash_version' => 'v2.0-175-gd0aab3e',
|
||||
);
|
||||
@@ -33,11 +33,13 @@ class AuthController extends BaseController
|
||||
$ldappass = Config::get('ldap.password');
|
||||
$baseDn = Config::get('ldap.basedn');
|
||||
$filterQuery = Config::get('ldap.authentication.filter.query') . $username;
|
||||
$ldapversion = Config::get('ldap.version');
|
||||
|
||||
// Connecting to LDAP
|
||||
$connection = ldap_connect($ldaphost) or die("Could not connect to {$ldaphost}");
|
||||
// Needed for AD
|
||||
ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);
|
||||
ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION,$ldapversion);
|
||||
|
||||
try {
|
||||
if ($connection) {
|
||||
@@ -207,7 +209,9 @@ class AuthController extends BaseController
|
||||
|
||||
try {
|
||||
// Get the user password recovery code
|
||||
$user = Sentry::getUserProvider()->findByLogin(Input::get('username'));
|
||||
if (!$user = Sentry::getUserProvider()->findByLogin(Input::get('username'))) {
|
||||
$user = User::where('email','=',Input::get('username'));
|
||||
}
|
||||
|
||||
$reset = $user->getResetPasswordCode();
|
||||
|
||||
@@ -221,11 +225,14 @@ class AuthController extends BaseController
|
||||
$user->save();
|
||||
|
||||
|
||||
// Send the activation code through username
|
||||
Mail::send('emails.forgot-password', $data, function ($m) use ($user) {
|
||||
$m->to($user->username, $user->first_name . ' ' . $user->last_name);
|
||||
$m->subject('Account Password Recovery');
|
||||
});
|
||||
if ($user->email) {
|
||||
// Send the activation code through username
|
||||
Mail::send('emails.forgot-password', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->subject('Account Password Recovery');
|
||||
});
|
||||
}
|
||||
|
||||
} catch (Cartalyst\Sentry\Users\UserNotFoundException $e) {
|
||||
// Even though the username was not found, we will pretend
|
||||
// we have sent the password reset code through username,
|
||||
|
||||
@@ -432,7 +432,7 @@ class AccessoriesController extends AdminController
|
||||
|
||||
|
||||
$log = $logaction->logaction('checkin from');
|
||||
|
||||
|
||||
if(!is_null($accessory_user->assigned_to)) {
|
||||
$user = User::find($accessory_user->assigned_to);
|
||||
}
|
||||
@@ -465,7 +465,7 @@ class AccessoriesController extends AdminController
|
||||
|
||||
public function getDatatable()
|
||||
{
|
||||
$accessories = Accessory::select(array('id','name','qty'))
|
||||
$accessories = Accessory::with('category')
|
||||
->whereNull('deleted_at')
|
||||
->orderBy('created_at', 'DESC');
|
||||
|
||||
@@ -477,6 +477,10 @@ class AccessoriesController extends AdminController
|
||||
});
|
||||
|
||||
return Datatable::collection($accessories)
|
||||
->addColumn('category',function($accessories)
|
||||
{
|
||||
return $accessories->category->name;
|
||||
})
|
||||
->addColumn('name',function($accessories)
|
||||
{
|
||||
return link_to('admin/accessories/'.$accessories->id.'/view', $accessories->name);
|
||||
@@ -490,8 +494,8 @@ class AccessoriesController extends AdminController
|
||||
return $accessories->numRemaining();
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','qty','numRemaining','actions')
|
||||
->orderColumns('name','qty','numRemaining','actions')
|
||||
->searchColumns('category','name','qty','numRemaining','actions')
|
||||
->orderColumns('category','name','qty','numRemaining','actions')
|
||||
->make();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,13 +22,14 @@ use Response;
|
||||
use Config;
|
||||
use Location;
|
||||
use Log;
|
||||
use DNS1D;
|
||||
use DNS2D;
|
||||
use Mail;
|
||||
use Datatable;
|
||||
use TCPDF;
|
||||
use Slack;
|
||||
use Manufacturer; //for embedded-create
|
||||
use Artisan;
|
||||
use Symfony\Component\Console\Output\BufferedOutput;
|
||||
|
||||
|
||||
class AssetsController extends AdminController
|
||||
{
|
||||
@@ -336,7 +337,7 @@ class AssetsController extends AdminController
|
||||
// Check if the asset exists
|
||||
if (is_null($asset = Asset::find($assetId))) {
|
||||
// Redirect to the asset management page with error
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
|
||||
}
|
||||
|
||||
if (isset($asset->assigneduser->id) && ($asset->assigneduser->id!=0)) {
|
||||
@@ -368,7 +369,7 @@ class AssetsController extends AdminController
|
||||
// Check if the asset exists
|
||||
if (is_null($asset = Asset::find($assetId))) {
|
||||
// Redirect to the asset management page with error
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
|
||||
}
|
||||
|
||||
// Get the dropdown of users and then pass it to the checkout view
|
||||
@@ -386,7 +387,7 @@ class AssetsController extends AdminController
|
||||
|
||||
// Check if the asset exists
|
||||
if (!$asset = Asset::find($assetId)) {
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
|
||||
}
|
||||
|
||||
// Declare the rules for the form validation
|
||||
@@ -448,7 +449,7 @@ class AssetsController extends AdminController
|
||||
// Check if the asset exists
|
||||
if (is_null($asset = Asset::find($assetId))) {
|
||||
// Redirect to the asset management page with error
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
|
||||
}
|
||||
|
||||
return View::make('backend/hardware/checkin', compact('asset'))->with('backto', $backto);
|
||||
@@ -466,11 +467,15 @@ class AssetsController extends AdminController
|
||||
// Check if the asset exists
|
||||
if (is_null($asset = Asset::find($assetId))) {
|
||||
// Redirect to the asset management page with error
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
|
||||
}
|
||||
|
||||
// Check for a valid user to checkout fa-random
|
||||
// This will need to be tweaked for checkout to location
|
||||
if (!is_null($asset->assigned_to)) {
|
||||
$user = User::find($asset->assigned_to);
|
||||
} else {
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.already_checked_in'));
|
||||
}
|
||||
|
||||
// This is just used for the redirect
|
||||
@@ -507,7 +512,6 @@ class AssetsController extends AdminController
|
||||
|
||||
if ($settings->slack_endpoint) {
|
||||
|
||||
|
||||
$slack_settings = [
|
||||
'username' => $settings->botname,
|
||||
'channel' => $settings->slack_channel,
|
||||
@@ -538,19 +542,19 @@ class AssetsController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
$data['log_id'] = $logaction->id;
|
||||
$data['first_name'] = $user->first_name;
|
||||
$data['item_name'] = $asset->showAssetName();
|
||||
$data['checkin_date'] = $logaction->created_at;
|
||||
$data['item_tag'] = $asset->asset_tag;
|
||||
$data['note'] = $logaction->note;
|
||||
$data['log_id'] = $logaction->id;
|
||||
$data['first_name'] = $user->first_name;
|
||||
$data['item_name'] = $asset->showAssetName();
|
||||
$data['checkin_date'] = $logaction->created_at;
|
||||
$data['item_tag'] = $asset->asset_tag;
|
||||
$data['note'] = $logaction->note;
|
||||
|
||||
if ((($asset->checkin_email()=='1')) && (!Config::get('app.lock_passwords'))) {
|
||||
Mail::send('emails.checkin-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->subject('Confirm Asset Checkin');
|
||||
});
|
||||
}
|
||||
if ((($asset->checkin_email()=='1')) && ($user) && (!Config::get('app.lock_passwords'))) {
|
||||
Mail::send('emails.checkin-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->subject('Confirm Asset Checkin');
|
||||
});
|
||||
}
|
||||
|
||||
if ($backto=='user') {
|
||||
return Redirect::to("admin/users/".$return_to.'/view')->with('success', Lang::get('admin/hardware/message.checkin.success'));
|
||||
@@ -607,31 +611,111 @@ class AssetsController extends AdminController
|
||||
|
||||
if ($settings->qr_code == '1') {
|
||||
$asset = Asset::find($assetId);
|
||||
$size = barcodeDimensions($settings->barcode_type);
|
||||
|
||||
if (isset($asset->id,$asset->asset_tag)) {
|
||||
|
||||
if ($settings->barcode_type == 'C128'){
|
||||
$content = DNS1D::getBarcodePNG(route('view/hardware', $asset->id), $settings->barcode_type,
|
||||
$this->barCodeDimensions['height'],$this->barCodeDimensions['width']);
|
||||
}
|
||||
else{
|
||||
$content = DNS2D::getBarcodePNG(route('view/hardware', $asset->id), $settings->barcode_type,
|
||||
$this->qrCodeDimensions['height'],$this->qrCodeDimensions['width']);
|
||||
}
|
||||
$img = imagecreatefromstring(base64_decode($content));
|
||||
imagepng($img);
|
||||
imagedestroy($img);
|
||||
|
||||
$content_disposition = sprintf('attachment;filename=qr_code_%s.png', preg_replace('/\W/', '', $asset->asset_tag));
|
||||
$response = Response::make($content, 200);
|
||||
$response->header('Content-Type', 'image/png');
|
||||
$response->header('Content-Disposition', $content_disposition);
|
||||
return $response;
|
||||
$barcode = new \Com\Tecnick\Barcode\Barcode();
|
||||
$barcode_obj = $barcode->getBarcodeObj($settings->barcode_type, route('view/hardware', $asset->id), $size['height'], $size['width'], 'black', array(-2, -2, -2, -2));
|
||||
return $barcode_obj->getPngData();
|
||||
}
|
||||
}
|
||||
|
||||
$response = Response::make('', 404);
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
public function getImportUpload() {
|
||||
|
||||
$path = app_path().'/private_uploads/imports/assets';
|
||||
$files = array();
|
||||
|
||||
if ($handle = opendir($path)) {
|
||||
|
||||
/* This is the correct way to loop over the directory. */
|
||||
while (false !== ($entry = readdir($handle))) {
|
||||
clearstatcache();
|
||||
if (substr(strrchr($entry,'.'),1)=='csv') {
|
||||
$files[] = array(
|
||||
'filename' => $entry,
|
||||
'filesize' => Setting::fileSizeConvert(filesize($path.'/'.$entry)),
|
||||
'modified' => filemtime($path.'/'.$entry)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
closedir($handle);
|
||||
$files = array_reverse($files);
|
||||
}
|
||||
|
||||
return View::make('backend/hardware/import')->with('files',$files);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function postAPIImportUpload() {
|
||||
|
||||
if (!Config::get('app.lock_passwords')) {
|
||||
|
||||
$rules = array(
|
||||
'files' => 'required'
|
||||
);
|
||||
|
||||
$validator = Validator::make(Input::all(), $rules);
|
||||
|
||||
if ($validator->fails()) {
|
||||
$messages = $validator->messages();
|
||||
$results['error']=$messages->first('files');
|
||||
return $results;
|
||||
|
||||
} else {
|
||||
$files = Input::file('files');
|
||||
$path = app_path().'/private_uploads/imports/assets';
|
||||
$results = array();
|
||||
|
||||
foreach ($files as $file) {
|
||||
|
||||
if (!in_array($file->getMimeType(), array(
|
||||
'application/vnd.ms-excel',
|
||||
'text/csv',
|
||||
'text/plain',
|
||||
'text/comma-separated-values',
|
||||
'text/tsv'))) {
|
||||
$results['error']='File type must be CSV';
|
||||
return $results;
|
||||
}
|
||||
|
||||
$fixed_filename = str_replace(' ','-',$file->getClientOriginalName());
|
||||
$file->move($path, date('Y-m-d-his').'-'.$file->getClientOriginalName());
|
||||
$name = date('Y-m-d-his').'-'.$fixed_filename;
|
||||
$filesize = Setting::fileSizeConvert(filesize($path.'/'.$name));
|
||||
$results[] = compact('name', 'filesize');
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
$results['error']=Lang::get('general.feature_disabled');
|
||||
return $results;
|
||||
}
|
||||
|
||||
return array(
|
||||
'files' => $results
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getProcessImportFile($filename) {
|
||||
// php artisan asset-import:csv path/to/your/file.csv --domain=yourdomain.com --email_format=firstname.lastname
|
||||
|
||||
$output = new BufferedOutput;
|
||||
Artisan::call('asset-import:csv', ['filename'=> app_path().'/private_uploads/imports/assets/'.$filename, '--email_format'=>'firstname.lastname', '--username_format'=>'firstname.lastname'], $output);
|
||||
$display_output = $output->fetch();
|
||||
$file = app_path().'/private_uploads/imports/assets/'.str_replace('.csv','',$filename).'-output-'.date("Y-m-d-his").'.txt';
|
||||
file_put_contents($file, $display_output);
|
||||
|
||||
|
||||
return View::make('backend/hardware/import-status');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -696,7 +780,7 @@ class AssetsController extends AdminController
|
||||
return Redirect::route('hardware')->with('success', $success);
|
||||
|
||||
} else {
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.not_found'));
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -982,7 +1066,7 @@ class AssetsController extends AdminController
|
||||
public function getDatatable($status = null)
|
||||
{
|
||||
|
||||
$assets = Asset::with('model','assigneduser','assigneduser.userloc','assetstatus','defaultLoc','assetlog','model','model.category')->Hardware()->select(array('id', 'name','model_id','assigned_to','asset_tag','serial','status_id','purchase_date','deleted_at','rtd_location_id','notes','order_number','mac_address'));
|
||||
$assets = Asset::with('model','assigneduser','assigneduser.userloc','assetstatus','defaultLoc','assetlog','model','model.category')->Hardware()->select(array('id', 'name','model_id','assigned_to','asset_tag','serial','status_id','purchase_date','deleted_at','rtd_location_id','notes','order_number','mac_address','warranty_months'));
|
||||
|
||||
|
||||
switch ($status) {
|
||||
|
||||
@@ -164,21 +164,11 @@ class ConsumablesController extends AdminController
|
||||
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.not_found'));
|
||||
}
|
||||
|
||||
|
||||
if ($consumable->hasUsers() > 0) {
|
||||
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.assoc_users', array('count'=> $consumable->hasUsers())));
|
||||
} else {
|
||||
$consumable->delete();
|
||||
|
||||
// Redirect to the locations management page
|
||||
return Redirect::to('admin/consumables')->with('success', Lang::get('admin/consumables/message.delete.success'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ class GroupsController extends AdminController
|
||||
|
||||
if (!Config::get('app.lock_passwords')) {
|
||||
|
||||
try {
|
||||
try {
|
||||
// Update the group data
|
||||
$group->name = Input::get('name');
|
||||
$group->permissions = Input::get('permissions');
|
||||
@@ -196,18 +196,22 @@ class GroupsController extends AdminController
|
||||
*/
|
||||
public function getDelete($id = null)
|
||||
{
|
||||
try {
|
||||
// Get group information
|
||||
$group = Sentry::getGroupProvider()->findById($id);
|
||||
if (!Config::get('app.lock_passwords')) {
|
||||
try {
|
||||
// Get group information
|
||||
$group = Sentry::getGroupProvider()->findById($id);
|
||||
|
||||
// Delete the group
|
||||
$group->delete();
|
||||
// Delete the group
|
||||
$group->delete();
|
||||
|
||||
// Redirect to the group management page
|
||||
return Redirect::route('groups')->with('success', Lang::get('admin/groups/message.success.delete'));
|
||||
} catch (GroupNotFoundException $e) {
|
||||
// Redirect to the group management page
|
||||
return Redirect::route('groups')->with('error', Lang::get('admin/groups/message.group_not_found', compact('id')));
|
||||
// Redirect to the group management page
|
||||
return Redirect::route('groups')->with('success', Lang::get('admin/groups/message.success.delete'));
|
||||
} catch (GroupNotFoundException $e) {
|
||||
// Redirect to the group management page
|
||||
return Redirect::route('groups')->with('error', Lang::get('admin/groups/message.group_not_found', compact('id')));
|
||||
}
|
||||
} else {
|
||||
return Redirect::route('groups')->with('error', Lang::get('general.feature_disabled'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -900,6 +900,12 @@ class LicensesController extends AdminController
|
||||
->addColumn('serial', function($licenses) {
|
||||
return link_to('/admin/licenses/'.$licenses->id.'/view', mb_strimwidth($licenses->serial, 0, 50, "..."));
|
||||
})
|
||||
->addColumn('license_name', function($licenses) {
|
||||
return $licenses->license_name;
|
||||
})
|
||||
->addColumn('license_email', function($licenses) {
|
||||
return $licenses->license_email;
|
||||
})
|
||||
->addColumn('totalSeats', function($licenses) {
|
||||
return $licenses->totalSeatsByLicenseID();
|
||||
})
|
||||
@@ -913,8 +919,8 @@ class LicensesController extends AdminController
|
||||
return $licenses->notes;
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','serial','totalSeats','remaining','purchase_date','actions','notes')
|
||||
->orderColumns('name','serial','totalSeats','remaining','purchase_date','actions','notes')
|
||||
->searchColumns('name','serial','totalSeats','remaining','purchase_date','actions','notes','license_name','license_email')
|
||||
->orderColumns('name','serial','totalSeats','remaining','purchase_date','actions','notes','license_name','license_email')
|
||||
->make();
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ use View;
|
||||
use Image;
|
||||
use Config;
|
||||
use Response;
|
||||
use Artisan;
|
||||
|
||||
class SettingsController extends AdminController
|
||||
{
|
||||
@@ -70,6 +71,7 @@ class SettingsController extends AdminController
|
||||
"per_page" => 'required|min:1|numeric',
|
||||
"qr_text" => 'min:1|max:31',
|
||||
"logo" => 'mimes:jpeg,bmp,png,gif',
|
||||
"custom_css" => 'alpha_space',
|
||||
"alert_email" => 'email',
|
||||
"slack_endpoint" => 'url',
|
||||
"default_currency" => 'required',
|
||||
@@ -113,6 +115,7 @@ class SettingsController extends AdminController
|
||||
|
||||
if (Config::get('app.lock_passwords')==false) {
|
||||
$setting->site_name = e(Input::get('site_name'));
|
||||
$setting->custom_css = e(Input::get('custom_css'));
|
||||
}
|
||||
|
||||
$setting->per_page = e(Input::get('per_page'));
|
||||
@@ -170,12 +173,34 @@ class SettingsController extends AdminController
|
||||
|
||||
}
|
||||
closedir($handle);
|
||||
$files = array_reverse($files);
|
||||
}
|
||||
|
||||
|
||||
return View::make('backend/settings/backups', compact('path','files'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate the backup page
|
||||
*
|
||||
* @return View
|
||||
**/
|
||||
|
||||
public function postBackups()
|
||||
{
|
||||
if (!Config::get('app.lock_passwords')) {
|
||||
Artisan::call('snipe:backup');
|
||||
return Redirect::to("admin/settings/backups")->with('success', Lang::get('admin/settings/message.backup.generated'));
|
||||
} else {
|
||||
Artisan::call('snipe:backup');
|
||||
return Redirect::to("admin/settings/backups")->with('error', Lang::get('general.feature_disabled'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Download the dump file
|
||||
*
|
||||
@@ -184,20 +209,45 @@ class SettingsController extends AdminController
|
||||
**/
|
||||
public function downloadFile($filename = null)
|
||||
{
|
||||
if (!Config::get('app.lock_passwords')) {
|
||||
$file = Config::get('backup::path').'/'.$filename;
|
||||
if (file_exists($file)) {
|
||||
return Response::download($file);
|
||||
} else {
|
||||
|
||||
$file = Config::get('backup::path').'/'.$filename;
|
||||
|
||||
|
||||
// the license is valid
|
||||
if (file_exists($file)) {
|
||||
return Response::download($file);
|
||||
// Redirect to the backup page
|
||||
return Redirect::route('settings/backups')->with('error', Lang::get('admin/settings/message.backup.file_not_found'));
|
||||
}
|
||||
} else {
|
||||
// Prepare the error message
|
||||
$error = Lang::get('admin/settings/message.does_not_exist');
|
||||
|
||||
// Redirect to the licence management page
|
||||
return Redirect::route('settings/backups')->with('error', $error);
|
||||
// Redirect to the backup page
|
||||
return Redirect::route('settings/backups')->with('error', Lang::get('general.feature_disabled'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Download the dump file
|
||||
*
|
||||
* @param int $assetId
|
||||
* @return View
|
||||
**/
|
||||
public function deleteFile($filename = null)
|
||||
{
|
||||
|
||||
if (!Config::get('app.lock_passwords')) {
|
||||
|
||||
$file = Config::get('backup::path').'/'.$filename;
|
||||
if (file_exists($file)) {
|
||||
unlink($file);
|
||||
return Redirect::route('settings/backups')->with('success', Lang::get('admin/settings/message.backup.file_deleted'));
|
||||
} else {
|
||||
return Redirect::route('settings/backups')->with('error', Lang::get('admin/settings/message.backup.file_not_found'));
|
||||
}
|
||||
} else {
|
||||
return Redirect::route('settings/backups')->with('error', Lang::get('general.feature_disabled'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -530,7 +530,7 @@ class UsersController extends AdminController {
|
||||
$update_assets = Asset::whereIn('id', $asset_array)->update(
|
||||
array(
|
||||
'status_id' => e(Input::get('status_id')),
|
||||
'assigned_to' => '',
|
||||
'assigned_to' => null,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -545,9 +545,9 @@ class UsersController extends AdminController {
|
||||
$logaction->note = 'Bulk checkin';
|
||||
$log = $logaction->logaction('checkin from');
|
||||
|
||||
$update_assets = DB::table('accessories_users')->whereIn('id', $accessory_array)->update(
|
||||
$update_accessories = DB::table('accessories_users')->whereIn('id', $accessory_array)->update(
|
||||
array(
|
||||
'assigned_to' => '',
|
||||
'assigned_to' => null,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -876,6 +876,9 @@ class UsersController extends AdminController {
|
||||
return '';
|
||||
}
|
||||
})
|
||||
->addColumn('username', function($users) {
|
||||
return $users->username;
|
||||
})
|
||||
->addColumn('manager', function($users) {
|
||||
if ($users->manager) {
|
||||
return '<a title="' . $users->manager->fullName() . '" href="users/' . $users->manager->id . '/view">' . $users->manager->fullName() . '</a>';
|
||||
@@ -906,8 +909,8 @@ class UsersController extends AdminController {
|
||||
return $group_names;
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name', 'email', 'manager', 'activated', 'groups', 'location')
|
||||
->orderColumns('name', 'email', 'manager', 'activated', 'licenses', 'assets', 'accessories', 'consumables', 'groups', 'location')
|
||||
->searchColumns('name', 'email', 'username', 'manager', 'activated', 'groups', 'location')
|
||||
->orderColumns('name', 'email', 'username', 'manager', 'activated', 'licenses', 'assets', 'accessories', 'consumables', 'groups', 'location')
|
||||
->make();
|
||||
}
|
||||
|
||||
@@ -1043,13 +1046,13 @@ class UsersController extends AdminController {
|
||||
// Selected permissions
|
||||
$selectedPermissions = Input::old('permissions', array('superuser' => -1));
|
||||
$this->encodePermissions($selectedPermissions);
|
||||
|
||||
|
||||
$location_list = locationsList();
|
||||
|
||||
|
||||
// Show the page
|
||||
return View::make('backend/users/ldap', compact('groups', 'selectedGroups', 'permissions', 'selectedPermissions'))
|
||||
->with('location_list', $location_list);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1064,7 +1067,7 @@ class UsersController extends AdminController {
|
||||
'username' => 'required|min:2|unique:users,username',
|
||||
'email' => 'email|unique:users,email',
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* Declare the rules for the form validation.
|
||||
*
|
||||
@@ -1083,14 +1086,14 @@ class UsersController extends AdminController {
|
||||
public function postLDAP() {
|
||||
|
||||
$location_id = Input::get('location_id');
|
||||
|
||||
|
||||
$formValidator = Validator::make(Input::all(), $this->ldapFormInputValidationRules);
|
||||
// If validation fails, we'll exit the operation now.
|
||||
if ($formValidator->fails()) {
|
||||
// Ooops.. something went wrong
|
||||
return Redirect::back()->withInput()->withErrors($formValidator);
|
||||
}
|
||||
|
||||
|
||||
$ldap_version = Config::get('ldap.version');
|
||||
$url = Config::get('ldap.url');
|
||||
$username = Config::get('ldap.username');
|
||||
|
||||
@@ -63,13 +63,16 @@
|
||||
public function up()
|
||||
{
|
||||
|
||||
Schema::table( 'asset_logs', function ( Blueprint $table ) {
|
||||
if (!Schema::hasColumn('asset_logs', 'thread_id')) {
|
||||
|
||||
$table->integer( 'thread_id' )
|
||||
->nullable()
|
||||
->default( null );
|
||||
$table->index( 'thread_id' );
|
||||
} );
|
||||
Schema::table( 'asset_logs', function ( Blueprint $table ) {
|
||||
|
||||
$table->integer( 'thread_id' )
|
||||
->nullable()
|
||||
->default( null );
|
||||
$table->index( 'thread_id' );
|
||||
} );
|
||||
}
|
||||
|
||||
$this->actionlog = new Actionlog();
|
||||
$this->assetLogs = $this->actionlog->getListingOfActionLogsChronologicalOrder();
|
||||
@@ -93,9 +96,10 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddCustomCssToSettings extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('settings', function(Blueprint $table)
|
||||
{
|
||||
$table->text('custom_css')->nullable()->default(NULL);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('settings', function(Blueprint $table)
|
||||
{
|
||||
$table->dropColumn('custom_css');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class FixDefaultPurchaseOrder extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'licenses` MODIFY `purchase_order` varchar(255) DEFAULT NULL;');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'licenses` MODIFY `purchase_order` varchar(255);');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
class AccessoriesSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
// Initialize empty array
|
||||
$accessory = array();
|
||||
|
||||
$date = new DateTime;
|
||||
|
||||
|
||||
$accessory[] = array(
|
||||
'name' => 'Cisco Desktop Phone',
|
||||
'category_id' => 4,
|
||||
'qty' => '20',
|
||||
'requestable' => '0',
|
||||
'user_id' => 1,
|
||||
);
|
||||
|
||||
$accessory[] = array(
|
||||
'name' => 'ASUS 23-inch',
|
||||
'category_id' => 5,
|
||||
'qty' => '20',
|
||||
'requestable' => '0',
|
||||
'user_id' => 1,
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Delete all the old data
|
||||
DB::table('accessories')->truncate();
|
||||
|
||||
// Insert the new posts
|
||||
Accessory::insert($accessory);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -30,7 +30,7 @@ class ActionlogSeeder extends Seeder
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '1',
|
||||
'location_id' => NULL,
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'asset_type' => 'hardware',
|
||||
'note' => NULL,
|
||||
'filename' => NULL,
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
class AssetMaintenancesSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
// Initialize empty array
|
||||
$asset_maintenances = array();
|
||||
|
||||
$date = new DateTime;
|
||||
|
||||
|
||||
$asset_maintenances[] = array(
|
||||
'asset_id' => 1,
|
||||
'supplier_id' => 1,
|
||||
'asset_maintenance_type' => 'Maintenance',
|
||||
'title' => 'Test Maintenance',
|
||||
'start_date' => $date->modify('-10 day'),
|
||||
'cost' => '200.99',
|
||||
'is_warranty' => '0',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Delete all the old data
|
||||
DB::table('asset_maintenances')->truncate();
|
||||
|
||||
// Insert the new posts
|
||||
AssetMaintenance::insert($asset_maintenances);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,6 +15,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Shanen MBP',
|
||||
'asset_tag' => 'NNY2878796',
|
||||
'model_id' => 1,
|
||||
'supplier_id' => 1,
|
||||
'serial' => 'WS90585666669',
|
||||
'purchase_date' => '2013-10-02',
|
||||
'purchase_cost' => '2435.99',
|
||||
@@ -38,6 +39,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Michael MBP',
|
||||
'asset_tag' => 'NNY28633396',
|
||||
'model_id' => 1,
|
||||
'supplier_id' => 1,
|
||||
'serial' => 'WS905823226669',
|
||||
'purchase_date' => '2013-10-02',
|
||||
'purchase_cost' => '2435.99',
|
||||
@@ -62,6 +64,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Alison MBP',
|
||||
'asset_tag' => 'NNY287958796',
|
||||
'model_id' => 1,
|
||||
'supplier_id' => 1,
|
||||
'serial' => 'WS905869046069',
|
||||
'purchase_date' => '2013-10-02',
|
||||
'purchase_cost' => '2435.99',
|
||||
@@ -85,6 +88,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Brady MBP',
|
||||
'asset_tag' => 'NNY78795566',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 2,
|
||||
'serial' => 'WS9078686069',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '1999.99',
|
||||
@@ -108,6 +112,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Deborah MBP',
|
||||
'asset_tag' => 'NNY65756756775',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 2,
|
||||
'serial' => 'WS9078686069',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '699.99',
|
||||
@@ -132,6 +137,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Sara MBP',
|
||||
'asset_tag' => 'NNY6897856775',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 2,
|
||||
'serial' => 'WS87897998Q',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '1999.99',
|
||||
@@ -155,6 +161,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Ben MBP',
|
||||
'asset_tag' => 'NNY67567775',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 2,
|
||||
'serial' => 'WS89080890',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '1999.99',
|
||||
@@ -178,6 +185,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Broken Laptop',
|
||||
'asset_tag' => 'NNY6756756775',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 2,
|
||||
'serial' => 'WS89080890',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '1999.99',
|
||||
@@ -201,6 +209,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Maybe Broke-Ass Laptop',
|
||||
'asset_tag' => 'NNY6755667775',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 1,
|
||||
'serial' => 'WS45689080890',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '1999.99',
|
||||
@@ -224,6 +233,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Completely Facacta Laptop',
|
||||
'asset_tag' => 'NNY6564567775',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 2,
|
||||
'serial' => 'WS99689080890',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '1999.99',
|
||||
@@ -247,6 +257,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Borked Laptop',
|
||||
'asset_tag' => 'NNY656456778975',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 1,
|
||||
'serial' => 'WS99689080890',
|
||||
'purchase_date' => '2012-01-02',
|
||||
'purchase_cost' => '1999.99',
|
||||
@@ -270,6 +281,7 @@ class AssetsSeeder extends Seeder
|
||||
'name' => 'Noah MBP',
|
||||
'asset_tag' => 'NNY98056775',
|
||||
'model_id' => 2,
|
||||
'supplier_id' => 1,
|
||||
'serial' => 'WS909098888',
|
||||
'purchase_date' => '2011-12-20',
|
||||
'purchase_cost' => '699.99',
|
||||
|
||||
@@ -16,6 +16,7 @@ class CategoriesSeeder extends Seeder
|
||||
'require_acceptance' => 0,
|
||||
'deleted_at' => NULL,
|
||||
'eula_text' => NULL,
|
||||
'category_type' => 'asset',
|
||||
);
|
||||
|
||||
$date = new DateTime;
|
||||
@@ -28,6 +29,7 @@ class CategoriesSeeder extends Seeder
|
||||
'require_acceptance' => 0,
|
||||
'deleted_at' => NULL,
|
||||
'eula_text' => NULL,
|
||||
'category_type' => 'asset',
|
||||
);
|
||||
|
||||
$date = new DateTime;
|
||||
@@ -40,6 +42,7 @@ class CategoriesSeeder extends Seeder
|
||||
'require_acceptance' => 0,
|
||||
'deleted_at' => NULL,
|
||||
'eula_text' => NULL,
|
||||
'category_type' => 'asset',
|
||||
);
|
||||
|
||||
$date = new DateTime;
|
||||
@@ -52,6 +55,7 @@ class CategoriesSeeder extends Seeder
|
||||
'require_acceptance' => 0,
|
||||
'deleted_at' => NULL,
|
||||
'eula_text' => NULL,
|
||||
'category_type' => 'accessory',
|
||||
);
|
||||
|
||||
$date = new DateTime;
|
||||
@@ -64,6 +68,20 @@ class CategoriesSeeder extends Seeder
|
||||
'require_acceptance' => 0,
|
||||
'deleted_at' => NULL,
|
||||
'eula_text' => NULL,
|
||||
'category_type' => 'accessory',
|
||||
);
|
||||
|
||||
$date = new DateTime;
|
||||
$category[] = array(
|
||||
'name' => 'Printer Ink',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
'use_default_eula' => 0,
|
||||
'require_acceptance' => 0,
|
||||
'deleted_at' => NULL,
|
||||
'eula_text' => NULL,
|
||||
'category_type' => 'consumable',
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ class DatabaseSeeder extends Seeder
|
||||
$this->call('LicensesSeeder');
|
||||
$this->call('LicenseSeatsSeeder');
|
||||
$this->call('ActionlogSeeder');
|
||||
$this->call('AccessoriesSeeder');
|
||||
$this->call('AssetMaintenancesSeeder');
|
||||
$this->call('SuppliersSeeder');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
class SuppliersSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
// Initialize empty array
|
||||
$supplier = array();
|
||||
|
||||
$date = new DateTime;
|
||||
|
||||
|
||||
$supplier[] = array(
|
||||
'name' => 'New Egg',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
);
|
||||
|
||||
$supplier[] = array(
|
||||
'name' => 'Microsoft',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Delete all the old data
|
||||
DB::table('suppliers')->truncate();
|
||||
|
||||
// Insert the new posts
|
||||
Supplier::insert($supplier);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -85,3 +85,17 @@ function usersList() {
|
||||
$users_list = array('' => Lang::get('general.select_user')) + DB::table('users')->select(DB::raw('concat(last_name,", ",first_name," (",username,")") as full_name, id'))->whereNull('deleted_at')->orderBy('last_name', 'asc')->orderBy('first_name', 'asc')->lists('full_name', 'id');
|
||||
return $users_list;
|
||||
}
|
||||
|
||||
function barcodeDimensions ($barcode_type = 'QRCODE') {
|
||||
if ($barcode_type == 'C128') {
|
||||
$size['height'] = '-1';
|
||||
$size['width'] = '-10';
|
||||
} elseif ($barcode_type == 'PDF417') {
|
||||
$size['height'] = '-3';
|
||||
$size['width'] = '-10';
|
||||
} else {
|
||||
$size['height'] = '-3';
|
||||
$size['width'] = '-3';
|
||||
}
|
||||
return $size;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'dl_csv' => 'Download CSV',
|
||||
'eula_text' => 'اتفاقية ترخيص المستخدم',
|
||||
'id' => 'رقم المعرف',
|
||||
'require_acceptance' => 'القبول',
|
||||
'title' => 'اسم الملحق',
|
||||
|
||||
|
||||
);
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'confirm' => 'Are you sure you wish to delete this consumable?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'success' => 'The consumable was deleted successfully.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -10,6 +10,8 @@ return array(
|
||||
'backups' => 'Backups',
|
||||
'barcode_type' => 'Barcode Type',
|
||||
'barcode_settings' => 'Barcode Settings',
|
||||
'custom_css' => 'Custom CSS',
|
||||
'custom_css_help' => 'Enter any custom CSS overrides you would like to use. Do not include the <style></style> tags.',
|
||||
'default_currency' => 'Default Currency',
|
||||
'default_eula_text' => 'Default EULA',
|
||||
'default_eula_help_text' => 'You can also associate custom EULAs to specific asset categories.',
|
||||
@@ -20,6 +22,7 @@ return array(
|
||||
'eula_settings' => 'EULA Settings',
|
||||
'eula_markdown' => 'This EULA allows <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>.',
|
||||
'general_settings' => 'General Settings',
|
||||
'generate_backup' => 'Generate Backup',
|
||||
'header_color' => 'Header Color',
|
||||
'info' => 'These settings let you customize certain aspects of your installation.',
|
||||
'laravel' => 'Laravel Version',
|
||||
|
||||
@@ -4,8 +4,14 @@ return array(
|
||||
|
||||
|
||||
'update' => array(
|
||||
'error' => 'An error has occurred while updating. ',
|
||||
'success' => 'Settings updated successfully.'
|
||||
'error' => 'An error has occurred while updating. ',
|
||||
'success' => 'Settings updated successfully.'
|
||||
),
|
||||
'backup' => array(
|
||||
'delete_confirm' => 'Are you sure you would like to delete this backup file? This action cannot be undone. ',
|
||||
'file_deleted' => 'The backup file was successfully deleted. ',
|
||||
'generated' => 'A new backup file was successfully created.',
|
||||
'file_not_found' => 'That backup file could not be found on the server.',
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -10,7 +10,7 @@ return array(
|
||||
'filetype_info' => 'Allowed filetypes are png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, and rar.',
|
||||
'history_user' => 'الأرشيف الخاص بـ :name',
|
||||
'last_login' => 'آخر دخول للمستخدم',
|
||||
'ldap_config_text' => 'LDAP configuration settings can be found in the app/config folder in a file called ldap.php',
|
||||
'ldap_config_text' => 'LDAP configuration settings can be found in the app/config folder in a file called ldap.php. The selected location will be set for all imported users. You will need to have at least one location set to use this feature.',
|
||||
'ldap_text' => 'Connect to LDAP and create users. Passwords will be auto-generated.',
|
||||
'software_user' => 'البرامج المسجلة لـ :name',
|
||||
'view_user' => 'عرض المستخدم :name',
|
||||
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_accessories_title' => 'Относно аксесоарите',
|
||||
'about_accessories_text' => 'Аксесоарите са всички неща, които се изписват на потребителите, но нямат сериен номер (или няма нужда да бъдат конкретно проследявани). Например, това са мишки, клавиатури и др.',
|
||||
'accessory_category' => 'Категория аксесоари',
|
||||
'accessory_name' => 'Аксесоар',
|
||||
'create' => 'Създаване на аксесоар',
|
||||
'eula_text' => 'EULA на категорията',
|
||||
'eula_text_help' => 'Това поле позволява да задавате различни EULA за всеки тип активи. Ако имате обща EULA за всички активи, можете да използвате кутийката по-долу за да използвате една обща по подразбиране.',
|
||||
'require_acceptance' => 'Задължаване на потребителите да потвърждават приемането на активи от тази категория.',
|
||||
'no_default_eula' => 'Няма EULA по подразбиране. Добавете я в Настройки.',
|
||||
'qty' => 'Количество',
|
||||
'total' => 'Oбщо',
|
||||
'remaining' => 'Наличност',
|
||||
'update' => 'Обновяване на аксесоар',
|
||||
'use_default_eula' => 'Използване на <a href="#" data-toggle="modal" data-target="#eulaModal">EULA по подразбиране</a>.',
|
||||
'use_default_eula_disabled' => '<del>Използване на EULA по подразбиране</del> Няма EULA по подразбиране. Добавете я в Настройки.',
|
||||
|
||||
);
|
||||
Executable
+37
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Няма такава категория.',
|
||||
'assoc_users' => 'От този аксесоар са предадени :count броя на потребителите. Моля впишете обратно нови или върнати и опитайте отново.',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Категорията не беше създадена. Моля опитайте отново.',
|
||||
'success' => 'Категорията е създадена.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Категорията не беше обновена. Моля опитайте отново.',
|
||||
'success' => 'Категорията е обновена.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че желаете изтриване на категорията?',
|
||||
'error' => 'Проблем при изтриване на категорията. Моля опитайте отново.',
|
||||
'success' => 'Категорията бе изтрита успешно.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
'error' => 'Аксесоарът не беше изписан. Моля опитайте отново.',
|
||||
'success' => 'Аксесоарът изписан успешно.',
|
||||
'user_does_not_exist' => 'Невалиден потребител. Моля опитайте отново.'
|
||||
),
|
||||
|
||||
'checkin' => array(
|
||||
'error' => 'Аксесоарът не беше вписан. Моля опитайте отново.',
|
||||
'success' => 'Аксесоарът вписан успешно.',
|
||||
'user_does_not_exist' => 'Невалиден потребител. Моля опитайте отново.'
|
||||
)
|
||||
|
||||
|
||||
);
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'dl_csv' => 'Сваляне на CSV',
|
||||
'eula_text' => 'EULA',
|
||||
'id' => 'ID',
|
||||
'require_acceptance' => 'Утвърждаване',
|
||||
'title' => 'Аксесоар',
|
||||
|
||||
|
||||
);
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'asset_maintenance_type' => 'Тип на поддръжка на актив',
|
||||
'title' => 'Заглавие',
|
||||
'start_date' => 'Начална дата',
|
||||
'completion_date' => 'Крайна дата',
|
||||
'cost' => 'Стойност',
|
||||
'is_warranty' => 'Подобрение на гаранцията',
|
||||
'asset_maintenance_time' => 'Време за поддръжка на актив (в дни)',
|
||||
'notes' => 'Бележки',
|
||||
'update' => 'Редакция на поддръжка на актив',
|
||||
'create' => 'Създаване на поддръжка на актив'
|
||||
];
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'asset_maintenances' => 'Поддръжка на активи',
|
||||
'edit' => 'Редакция на поддръжка на актив',
|
||||
'delete' => 'Изтриване на поддръжка на актив',
|
||||
'view' => 'Преглед на поддръжка на актив',
|
||||
'repair' => 'Ремонт',
|
||||
'maintenance' => 'Поддръжка',
|
||||
'upgrade' => 'Upgrade'
|
||||
];
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'not_found' => 'Поддръжката на актив, която търсите не бе открита!',
|
||||
'delete' => [
|
||||
'confirm' => 'Потвърдете изтриването на поддръжката на актив.',
|
||||
'error' => 'Проблем при изтриването на поддръжка на актив. Моля опитайте отново.',
|
||||
'success' => 'Поддръжката на актив изтрита успешно.'
|
||||
],
|
||||
'create' => [
|
||||
'error' => 'Поддръжката на актив не бе създадена. Моля опитайте отново.',
|
||||
'success' => 'Поддръжката на актив създадена успешно.'
|
||||
],
|
||||
'asset_maintenance_incomplete' => 'Все още неприключила',
|
||||
'warranty' => 'Гаранция',
|
||||
'not_warranty' => 'Без гаранция',
|
||||
];
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'title' => 'Поддръжка на активи',
|
||||
'asset_name' => 'Актив',
|
||||
'supplier_name' => 'Доставчик',
|
||||
'is_warranty' => 'Гаранция',
|
||||
'dl_csv' => 'Сваляне на CSV'
|
||||
];
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_asset_categories' => 'Относно категориите на активи',
|
||||
'about_categories' => 'Категориите помагат организирането на активите. Примерни категории могат да бъдат "Стационарни PC", "Лаптопи", "Мобилни телефони", "Таблети" и т.н., но можете да използвате всяка категория, имаща смисъл за организацията Ви.',
|
||||
'asset_categories' => 'Категории на активи',
|
||||
'category_name' => 'Име на категория',
|
||||
'checkin_email' => 'Изпращане на email до потребителя при вписване на активи.',
|
||||
'clone' => 'Копиране на категория',
|
||||
'create' => 'Създаване на категория',
|
||||
'edit' => 'Редакция на категория',
|
||||
'eula_text' => 'Категория EULA',
|
||||
'eula_text_help' => 'Това поле позволява да задавате различни EULA за всеки тип активи. Ако имате обща EULA за всички активи, можете да използвате кутийката по-долу за да използвате една обща по подразбиране.',
|
||||
'require_acceptance' => 'Задължаване на потребителите да потвърждават приемането на активи от тази категория.',
|
||||
'required_acceptance' => 'Потребителят ще получи email с връзка за потвърждаване получаването на актива.',
|
||||
'required_eula' => 'Потребителят ще получи копие на EULA.',
|
||||
'no_default_eula' => 'Няма EULA по подразбиране. Добавете я в Настройки.',
|
||||
'update' => 'Обновяване на категория',
|
||||
'use_default_eula' => 'Използване на <a href="#" data-toggle="modal" data-target="#eulaModal">EULA по подразбиране</a>.',
|
||||
'use_default_eula_disabled' => '<del>Използване на EULA по подразбиране</del> Няма EULA по подразбиране. Добавете я в Настройки.',
|
||||
|
||||
);
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Категорията не съществува.',
|
||||
'assoc_users' => 'Тази категория е асоциирана с поне един модел и не може да бъде изтрита. Моля обновете връзките с моделите и опитайте отново.',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Категорията не беше създадена. Моля опитайте отново.',
|
||||
'success' => 'Категорията е създадена.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Категорията не беше обновена. Моля опитайте отново',
|
||||
'success' => 'Категорията е обновена успешно.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Желаете ли да изтриете тази категория?',
|
||||
'error' => 'Проблем при изтриване на категорията. Моля опитайте отново.',
|
||||
'success' => 'Категорията бе изтрита успешно.'
|
||||
)
|
||||
|
||||
);
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'eula_text' => 'EULA',
|
||||
'id' => 'ID',
|
||||
'parent' => 'Горна категория',
|
||||
'require_acceptance' => 'Утвърждаване',
|
||||
'title' => 'Категория на актива',
|
||||
|
||||
);
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_consumables_title' => 'Относно консумативите',
|
||||
'about_consumables_text' => 'Консумативите са всички неща, купувани във времето. Например тонер за принтер или хартия.',
|
||||
'consumable_name' => 'Консуматив',
|
||||
'create' => 'Създаване на консуматив',
|
||||
'remaining' => 'Остава',
|
||||
'total' => 'Oбщо',
|
||||
'update' => 'Обновяване на консуматив',
|
||||
);
|
||||
Executable
+36
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Консуматива не съществува.',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Консумативът не беше създаден. Моля опитайте отново.',
|
||||
'success' => 'Консумативът създаден успешно.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Консумативът не беше обновен. Моля опитайте отново.',
|
||||
'success' => 'Консумативът обновен успешно.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Желаете ли изтриване на консуматива?',
|
||||
'error' => 'Проблем при изтриването на консуматива. Моля опитайте отново.',
|
||||
'success' => 'Консумативът изтрит успешно.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
'error' => 'Консумативът не беше изписан. Моля опитайте отново.',
|
||||
'success' => 'Консумативът изписан успешно.',
|
||||
'user_does_not_exist' => 'Невалиден потребител. Моля опитайте отново.'
|
||||
),
|
||||
|
||||
'checkin' => array(
|
||||
'error' => 'Консумативът не беше вписан. Моля опитайте отново.',
|
||||
'success' => 'Консумативът вписан успешно.',
|
||||
'user_does_not_exist' => 'Невалиден потребител. Моля опитайте отново.'
|
||||
)
|
||||
|
||||
|
||||
);
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'title' => 'Консуматив',
|
||||
);
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_asset_depreciations' => 'Относно амортизацията на активи',
|
||||
'about_depreciations' => 'Тук можете да конфигурирате линейна амортизация на активи във времето.',
|
||||
'asset_depreciations' => 'Амортизация на активи',
|
||||
'create_depreciation' => 'Създаване на амортизация',
|
||||
'depreciation_name' => 'Амортизация',
|
||||
'number_of_months' => 'Брой месеци',
|
||||
'update_depreciation' => 'Обновяване на амортизация',
|
||||
|
||||
);
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Амортизацията не съществува.',
|
||||
'assoc_users' => 'Тази амортизация е асоциирана с един или повече модели и не може да бъде изтрита. Моля изтрийте моделите и опитайте отново.',
|
||||
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Класът на амортизация не беше създаден. Моля опитайте отново.',
|
||||
'success' => 'Класът на амортизация създаден успешно.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Класът на амортизация не беше обновен. Моля опитайте отново.',
|
||||
'success' => 'Класът на амортизация обновен успешно.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че желаете изтриване на класът на амортизация?',
|
||||
'error' => 'Проблем при изтриването на класа на амортизация. Моля опитайте отново.',
|
||||
'success' => 'Класът на амортизация изтрит успешно.'
|
||||
)
|
||||
|
||||
);
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'id' => 'ID',
|
||||
'months' => 'Месеци',
|
||||
'term' => 'Срок',
|
||||
'title' => 'Име',
|
||||
|
||||
);
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'group_exists' => 'Групата вече съществува!',
|
||||
'group_not_found' => 'Групата [:id] не съществува.',
|
||||
'group_name_required' => 'Полето име е задължително',
|
||||
|
||||
'success' => array(
|
||||
'create' => 'Групата създадена успешно.',
|
||||
'update' => 'Групата обновена успешно.',
|
||||
'delete' => 'Групата изтрита успешно.',
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че желаете да изтриете групата?',
|
||||
'create' => 'Проблем при създаване на групата. Моля опитайте отново.',
|
||||
'update' => 'Проблем при обновяването на групата. Моля опитайте отново.',
|
||||
'delete' => 'Проблем при изтриване на групата. Моля опитайте отново.',
|
||||
),
|
||||
|
||||
);
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'id' => 'ID',
|
||||
'name' => 'Име',
|
||||
'users' => 'Брой потребители',
|
||||
|
||||
);
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'group_management' => 'Управление на групи',
|
||||
'create_group' => 'Нова група',
|
||||
'edit_group' => 'Редакция на група',
|
||||
'group_name' => 'Име на група',
|
||||
'group_admin' => 'Администратор на група',
|
||||
'allow' => 'Разрешаване',
|
||||
'deny' => 'Отказ',
|
||||
|
||||
);
|
||||
Executable
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'bulk_update' => 'Масово обновяване на активи',
|
||||
'bulk_update_help' => 'Тук можете да обновите множество активи едновременно. Попълнете единствено полетата, които желаете да промените. Всички празни полета няма да бъдат променени.',
|
||||
'bulk_update_warn' => 'Ще бъдат променени записите за :asset_count актива.',
|
||||
'checkedout_to' => 'Изписано на',
|
||||
'checkout_date' => 'Дата на изписване',
|
||||
'checkin_date' => 'Дата на вписване',
|
||||
'checkout_to' => 'Изпиши на',
|
||||
'cost' => 'Стойност на закупуване',
|
||||
'create' => 'Създаване на актив',
|
||||
'date' => 'Дата на закупуване',
|
||||
'depreciates_on' => 'Амортизира се на',
|
||||
'depreciation' => 'Амортизация',
|
||||
'default_location' => 'Местоположение по подразбиране',
|
||||
'eol_date' => 'EOL дата',
|
||||
'eol_rate' => 'EOL съотношение',
|
||||
'expected_checkin' => 'Очаквана дата на вписване',
|
||||
'expires' => 'Изтича',
|
||||
'fully_depreciated' => 'Напълно амортизиран',
|
||||
'help_checkout' => 'Ако желаете да присвоите актив на момента, изберете "Готово за предаване" от списъка по-горе.',
|
||||
'mac_address' => 'MAC адрес',
|
||||
'manufacturer' => 'Производител',
|
||||
'model' => 'Модел',
|
||||
'months' => 'месеца',
|
||||
'name' => 'Име на актив',
|
||||
'notes' => 'Бележки',
|
||||
'order' => 'Номер на поръчка',
|
||||
'qr' => 'QR код',
|
||||
'requestable' => 'Потребителите могат да изписват актива',
|
||||
'select_statustype' => 'Избиране на тип на статуса',
|
||||
'serial' => 'Сериен номер',
|
||||
'status' => 'Статус',
|
||||
'supplier' => 'Доставчик',
|
||||
'tag' => 'Инвентарен номер',
|
||||
'update' => 'Обновяване на актив',
|
||||
'warranty' => 'Гаранция',
|
||||
'years' => 'години',
|
||||
)
|
||||
;
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'archived' => 'Архивиран',
|
||||
'asset' => 'Актив',
|
||||
'checkin' => 'Връщане на актив',
|
||||
'checkout' => 'Изписване на актив към потребител',
|
||||
'clone' => 'Копиране на актив',
|
||||
'deployable' => 'Може да бъде предоставен',
|
||||
'deleted' => 'Активът беше изтрит. <a href="/hardware/:asset_id/restore">Възстановяване</a>.',
|
||||
'edit' => 'Редакция на актив',
|
||||
'filetype_info' => 'Позволените типове файлове са png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, и rar.',
|
||||
'model_deleted' => 'Моделът актив беше изтрит.Необходимо е да възстановите моделът, преди да възстановите актива.<br/> <a href="/hardware/models/:model_id/restore">Възстановяване на модел</a>.',
|
||||
'requestable' => 'Може да бъде изискван',
|
||||
'restore' => 'Възстановяване на актив',
|
||||
'pending' => 'Предстоящ',
|
||||
'undeployable' => 'Не може да бъде предоставян',
|
||||
'view' => 'Преглед на актив',
|
||||
);
|
||||
Executable
+57
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'undeployable' => '<strong>Внимание:</strong> Този актив е маркиран като невъзможен за предоставяне. Ако статусът е променен, моля обновете актива.',
|
||||
'does_not_exist' => 'Активът не съществува.',
|
||||
'does_not_exist_or_not_requestable' => 'Добър опит. Активът не съществува или не може а бъде предоставян.',
|
||||
'assoc_users' => 'Активът е изписан на потребител и не може да бъде изтрит. Моля впишете го обратно и след това опитайте да го изтриете отново.',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Активът не беше създаден. Моля опитайте отново.',
|
||||
'success' => 'Активът създаден успешно.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Активът не беше обновен. Моля опитайте отново.',
|
||||
'success' => 'Активът обновен успешно.',
|
||||
'nothing_updated' => 'Няма избрани полета, съответно нищо не беше обновено.',
|
||||
),
|
||||
|
||||
'restore' => array(
|
||||
'error' => 'Активът не беше възстановен. Моля опитайте отново.',
|
||||
'success' => 'Активът възстановен успешно.'
|
||||
),
|
||||
|
||||
'deletefile' => array(
|
||||
'error' => 'Файлът не беше изтрит. Моля опитайте отново.',
|
||||
'success' => 'Файлът изтрит успешно.',
|
||||
),
|
||||
|
||||
'upload' => array(
|
||||
'error' => 'Качването неуспешно. Моля опитайте отново.',
|
||||
'success' => 'Качването успешно.',
|
||||
'nofiles' => 'Не сте избрали файлове за качване или са твърде големи.',
|
||||
'invalidfiles' => 'Един или повече файлове са твърде големи или с непозволен тип. Разрешените файлови типове за качване са png, gif, jpg, doc, docx, pdf и txt.',
|
||||
),
|
||||
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че желаете изтриване на актива?',
|
||||
'error' => 'Проблем при изтриване на актива. Моля опитайте отново.',
|
||||
'success' => 'Активът е изтрит успешно.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
'error' => 'Активът не беше изписан. Моля опитайте отново.',
|
||||
'success' => 'Активът изписан успешно.',
|
||||
'user_does_not_exist' => 'Невалиден потребител. Моля опитайте отново.'
|
||||
),
|
||||
|
||||
'checkin' => array(
|
||||
'error' => 'Активът не беше вписан. Моля опитайте отново.',
|
||||
'success' => 'Активът вписан успешно.',
|
||||
'user_does_not_exist' => 'Невалиден потребител. Моля опитайте отново.'
|
||||
)
|
||||
|
||||
);
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'asset_tag' => 'Инвентарен номер',
|
||||
'asset_model' => 'Модел',
|
||||
'book_value' => 'Стойност',
|
||||
'change' => 'Предоставяне',
|
||||
'checkout_date' => 'Дата на изписване',
|
||||
'checkoutto' => 'Изписан',
|
||||
'diff' => 'Разлика',
|
||||
'dl_csv' => 'Сваляне на CSV',
|
||||
'eol' => 'EOL',
|
||||
'id' => 'ID',
|
||||
'location' => 'Местоположение',
|
||||
'purchase_cost' => 'Стойност',
|
||||
'purchase_date' => 'Закупен',
|
||||
'serial' => 'Сериен номер',
|
||||
'status' => 'Статус',
|
||||
'title' => 'Актив ',
|
||||
'days_without_acceptance' => 'Дни без да е предаден'
|
||||
|
||||
);
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'asset' => 'Актив',
|
||||
'checkin' => 'Вписване',
|
||||
'cost' => 'Стойност на закупуване',
|
||||
'create' => 'Добавяне на лиценз',
|
||||
'date' => 'Дата на закупуване',
|
||||
'depreciation' => 'Амортизация',
|
||||
'expiration' => 'Срок на валидност',
|
||||
'maintained' => 'В поддръжка',
|
||||
'name' => 'Софтуерен продукт',
|
||||
'no_depreciation' => 'Без амортизация',
|
||||
'notes' => 'Бележки',
|
||||
'order' => 'Номер на заявка',
|
||||
'purchase_order' => 'Номер на заявка за закупуване',
|
||||
'reassignable' => 'Може да бъде сменян ползвателя',
|
||||
'remaining_seats' => 'Оставащи потребителски лицензи',
|
||||
'seats' => 'Потребителски лицензи',
|
||||
'serial' => 'Сериен номер',
|
||||
'supplier' => 'Доставчик',
|
||||
'termination_date' => 'Дата на валидност',
|
||||
'to_email' => 'Лиценз към e-mail',
|
||||
'to_name' => 'Лиценз към име',
|
||||
'update' => 'Обновяване на лиценз',
|
||||
'checkout_help' => 'Можете да изпишете лиценз към конкретен хардуер или потребител. Един лиценз може да бъде изписан едновременно и на хардуер и на потребител, но потребителя трябва да бъде собственик на съответния хардуерен актив.'
|
||||
);
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'checkin' => 'Вписване на потребителски лиценз',
|
||||
'checkout_history' => 'История на изписванията',
|
||||
'checkout' => 'Изписване на потребителски лиценз',
|
||||
'edit' => 'Редакция на лиценз',
|
||||
'filetype_info' => 'Позволените типове файлове са png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, и rar.',
|
||||
'clone' => 'Копиране на лиценз',
|
||||
'history_for' => 'История за ',
|
||||
'in_out' => 'Предоставяне',
|
||||
'info' => 'Информация за лиценз',
|
||||
'license_seats' => 'Потребителски лицензи',
|
||||
'seat' => 'Потребителски лиценз',
|
||||
'seats' => 'Потребителски лицензи',
|
||||
'software_licenses' => 'Софтуерни лицензи',
|
||||
'user' => 'Потребител',
|
||||
'view' => 'Преглед на лиценз',
|
||||
);
|
||||
Executable
+50
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Лицензът не съществува.',
|
||||
'user_does_not_exist' => 'Потребителят не съществува.',
|
||||
'asset_does_not_exist' => 'Активът, който се опитвате да свържете с този лиценз не съществува.',
|
||||
'owner_doesnt_match_asset' => 'Активът, който се опитвате да свържете с този лиценз е притежание на друго лице, различно от това, което е определено в падащия списък.',
|
||||
'assoc_users' => 'Този лиценз понастоящем е изписан на потребител и не може да бъде изтрит. Моля, първо впишете лиценза и тогава опитайте отново да го изтриете. ',
|
||||
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Лицензът не беше създаден. Моля, опитайте отново.',
|
||||
'success' => 'Лицензът е създаден.'
|
||||
),
|
||||
|
||||
'deletefile' => array(
|
||||
'error' => 'Файлът не е изтрит. Моля, опитайте отново.',
|
||||
'success' => 'Файлът е изтрит.',
|
||||
),
|
||||
|
||||
'upload' => array(
|
||||
'error' => 'Файлът (файловете) не е качен. Моля, опитайте отново.',
|
||||
'success' => 'Файлът (файловете) е качен.',
|
||||
'nofiles' => 'Не сте избрали файл за качване или файлът, който се опитвате да качите е твърде голям',
|
||||
'invalidfiles' => 'Един или повече файлове са твърде големи или с неразрешен тип. Разрешените типове файлове са png, gif, jpg, doc, docx, pdf, и txt.',
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Лицензът не беше обновен. Моля, опитайте отново',
|
||||
'success' => 'Лицензът е обновен.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че искате да изтриете този лиценз?',
|
||||
'error' => 'Възникна проблем при изтриването на този лиценз. Моля, опитайте отново.',
|
||||
'success' => 'Лицензът е изтрит.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
'error' => 'Възникна проблем при изписването на лиценза. Моля, опитайте отново.',
|
||||
'success' => 'Лицензът е изписан'
|
||||
),
|
||||
|
||||
'checkin' => array(
|
||||
'error' => 'Възникна проблем при вписването на лиценза. Моля, опитайте отново.',
|
||||
'success' => 'Лицензът е вписан'
|
||||
),
|
||||
|
||||
);
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'assigned_to' => 'Предоставен на',
|
||||
'checkout' => 'Предоставяне',
|
||||
'id' => 'ID',
|
||||
'license_email' => 'Лицензиран на Email',
|
||||
'license_name' => 'Лицензиран на',
|
||||
'purchase_date' => 'Дата на закупуване',
|
||||
'purchased' => 'Закупен',
|
||||
'seats' => 'Потребителски лицензи',
|
||||
'hardware' => 'Хардуер',
|
||||
'serial' => 'Сериен номер',
|
||||
'title' => 'Лиценз',
|
||||
|
||||
);
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Местоположението не съществува.',
|
||||
'assoc_users' => 'Местоположението е свързано с поне един потребител и не може да бъде изтрито. Моля, актуализирайте потребителите, така че да не са свързани с това местоположение и опитайте отново. ',
|
||||
'assoc_assets' => 'Местоположението е свързано с поне един актив и не може да бъде изтрито. Моля, актуализирайте активите, така че да не са свързани с това местоположение и опитайте отново. ',
|
||||
'assoc_child_loc' => 'В избраното местоположение е присъединено едно или повече местоположения. Моля преместете ги в друго и опитайте отново.',
|
||||
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Местоположението не е създадено. Моля, опитайте отново.',
|
||||
'success' => 'Местоположението е създадено.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Местоположението не е обновено. Моля, опитайте отново',
|
||||
'success' => 'Местоположението е обновено.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че искате да изтриете това местоположение?',
|
||||
'error' => 'Възникна проблем при изтриване на местоположението. Моля, опитайте отново.',
|
||||
'success' => 'Местоположението е изтрито.'
|
||||
)
|
||||
|
||||
);
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'id' => 'ID',
|
||||
'city' => 'Град',
|
||||
'state' => 'Област',
|
||||
'country' => 'Държава',
|
||||
'create' => 'Създаване на местоположение',
|
||||
'update' => 'Обновяване на местоположение',
|
||||
'name' => 'Местоположение',
|
||||
'address' => 'Aдрес',
|
||||
'zip' => 'Пощенски код',
|
||||
'locations' => 'Местоположения',
|
||||
'parent' => 'Присъединено към',
|
||||
'currency' => 'Валута на местоположението', // this is deprecated
|
||||
);
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Несъществуващ производител.',
|
||||
'assoc_users' => 'Този производител е асоцииран с поне един от моделите и не може да бъде изтрит. Моля, променете връзките на моделите по отношение на този производител и опитайте отново. ',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Производителят не беше създаден. Моля, опитайте отново.',
|
||||
'success' => 'Производителят е създаден.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Производителят не е обновен. Моля, опитайте отново',
|
||||
'success' => 'Производителят е обновен.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че искате да изтриете този производител?',
|
||||
'error' => 'Възникна проблем при изтриването на проиводителя. Моля, опитайте отново.',
|
||||
'success' => 'Производителят е изтрит.'
|
||||
)
|
||||
|
||||
);
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'asset_manufacturers' => 'Производители',
|
||||
'create' => 'Създаване на производител',
|
||||
'id' => 'ID',
|
||||
'name' => 'Име на производител',
|
||||
'update' => 'Обновяване на производител',
|
||||
|
||||
);
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'deleted' => 'Моделът беше изтрит. <a href="/hardware/models/:model_id/restore">Възстановяване</a>.',
|
||||
'restore' => 'Възстановяване на модел',
|
||||
'show_mac_address' => 'Визуализиране на поле за MAC адрес в активите за този модел',
|
||||
'view_deleted' => 'Преглед на изтритите',
|
||||
'view_models' => 'Преглед на моделите',
|
||||
|
||||
);
|
||||
Executable
+31
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Моделът не съществува.',
|
||||
'assoc_users' => 'Този модел е асоцииран с един или повече активи и не може да бъде изтрит. Моля изтрийте активите и опитайте отново.',
|
||||
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Моделът не беше създаден. Моля опитайте отново.',
|
||||
'success' => 'Моделът създаден успешно.',
|
||||
'duplicate_set' => 'Актив с това име, производител и номер на модел вече е въведен.',
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Моделът не беше обновен. Моля опитайте отново.',
|
||||
'success' => 'Моделът обновен успешно.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Желаете ли изтриване на модела?',
|
||||
'error' => 'Проблем при изтриване на модела. Моля опитайте отново.',
|
||||
'success' => 'Моделът изтрит успешно.'
|
||||
),
|
||||
|
||||
'restore' => array(
|
||||
'error' => 'Моделът не беше възстановен. Моля опитайте отново.',
|
||||
'success' => 'Моделът възстановен успешно.'
|
||||
),
|
||||
|
||||
);
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'create' => 'Създаване на модел на актив',
|
||||
'created_at' => 'Създаден в',
|
||||
'eol' => 'EOL',
|
||||
'modelnumber' => 'Модел №',
|
||||
'name' => 'Модел на актив',
|
||||
'numassets' => 'Активи',
|
||||
'title' => 'Модели на активи',
|
||||
'update' => 'Обновяване на модел на актив',
|
||||
'view' => 'Преглед на модел на актив',
|
||||
'update' => 'Обновяване на модел на актив',
|
||||
'clone' => 'Копиране на модел',
|
||||
'edit' => 'Редакция на модел',
|
||||
);
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'info' => 'Изберете опциите, които желаете за справката за активи.'
|
||||
);
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'error' => 'Трябва да изберете поне една опция.'
|
||||
);
|
||||
Executable
+50
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'alert_email' => 'Изпращане на нотификации към',
|
||||
'alerts_enabled' => 'Алармите включени',
|
||||
'asset_ids' => 'ID на активи',
|
||||
'auto_increment_assets' => 'Автоматично генериране на инвентарни номера на активите',
|
||||
'auto_increment_prefix' => 'Префикс (незадължително)',
|
||||
'auto_incrementing_help' => 'Първо включете автоматично генериране на инвентарни номера, за да включите тази опция.',
|
||||
'backups' => 'Архивиране',
|
||||
'barcode_type' => 'Тип на баркод',
|
||||
'barcode_settings' => 'Настройки на баркод',
|
||||
'custom_css' => 'Потребителски CSS',
|
||||
'custom_css_help' => 'Включете вашите CSS правила тук. Не използвайте <style></style> тагове.',
|
||||
'default_currency' => 'Валута по подразбиране',
|
||||
'default_eula_text' => 'EULA по подразбиране',
|
||||
'default_eula_help_text' => 'Можете да асоциирате специфична EULA към всяка избрана категория.',
|
||||
'display_asset_name' => 'Визуализиране на актив',
|
||||
'display_checkout_date' => 'Визуализиране на дата на изписване',
|
||||
'display_eol' => 'Визуализиране на EOL в таблиците',
|
||||
'display_qr' => 'Визуализиране на QR кодове',
|
||||
'eula_settings' => 'Настройки на EULA',
|
||||
'eula_markdown' => 'Съдържанието на EULA може да бъде форматирано с <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>.',
|
||||
'general_settings' => 'Общи настройки',
|
||||
'generate_backup' => 'Създаване на архив',
|
||||
'header_color' => 'Цвят на хедъра',
|
||||
'info' => 'Тези настройки позволяват да конфигурирате различни аспекти на Вашата инсталация.',
|
||||
'laravel' => 'Версия на Laravel',
|
||||
'load_remote' => 'Тази Snipe-IT инсталация може да зарежда и изпълнява външни скриптове.',
|
||||
'logo' => 'Лого',
|
||||
'optional' => 'незадължително',
|
||||
'per_page' => 'Резултати на страница',
|
||||
'php' => 'PHP версия',
|
||||
'php_gd_info' => 'Необходимо е да инсталирате php-gd, за да визуализирате QR кодове. Моля прегледайте инструкцията за инсталация.',
|
||||
'php_gd_warning' => 'php-gd НЕ е инсталиран.',
|
||||
'qr_help' => 'Първо включете QR кодовете, за да извършите тези настройки.',
|
||||
'qr_text' => 'Съдържание на QR код',
|
||||
'setting' => 'Настройка',
|
||||
'settings' => 'Настройки',
|
||||
'site_name' => 'Име на системата',
|
||||
'slack_botname' => 'Име на Slack bot',
|
||||
'slack_channel' => 'Slack канал',
|
||||
'slack_endpoint' => 'Slack Endpoint',
|
||||
'slack_integration' => 'Slack настройки',
|
||||
'slack_integration_help' => 'Интеграцията със Slack е незадължителна. Ако желаете да я използвате е необходимо да настроите endpoint и канал. За да конфигурирате Slack интеграцията, първо <a href=":slack_link" target="_new">създайте входящ webhook</a> във Вашия Slack акаунт.',
|
||||
'snipe_version' => 'Snipe-IT версия',
|
||||
'system' => 'Информация за системата',
|
||||
'update' => 'Обновяване на настройките',
|
||||
'value' => 'Стойност',
|
||||
);
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Възникна грешка по време на актуализацията. ',
|
||||
'success' => 'Настройките са актуализирани успешно.'
|
||||
),
|
||||
'backup' => array(
|
||||
'delete_confirm' => 'Желаете ли изтриването на този архивен файл? Действието е окончателно.',
|
||||
'file_deleted' => 'Архивният файл беше изтрит успешно.',
|
||||
'generated' => 'Нов архивен файл беше създаден успешно.',
|
||||
'file_not_found' => 'Архивният файл не беше открит на сървъра.',
|
||||
),
|
||||
|
||||
);
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Местоположението не съществува.',
|
||||
'assoc_users' => 'Местоположението е свързано с поне един потребител и не може да бъде изтрито. Моля, актуализирайте потребителите, така че да не са свързани с това местоположение и опитайте отново. ',
|
||||
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Местоположението не беше създадено. Моля опитайте отново.',
|
||||
'success' => 'Местоположението създадено успешно.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Местоположението не беше обновено. Моля опитайте отново.',
|
||||
'success' => 'Местоположението обновено успешно.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че желаете изтриване на този статус етикет?',
|
||||
'error' => 'Проблем при изтриване на местоположението. Моля опитайте отново.',
|
||||
'success' => 'Местоположението изтрито успешно.'
|
||||
)
|
||||
|
||||
);
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about' => 'Относно статус етикетите',
|
||||
'archived' => 'Архивирани',
|
||||
'create' => 'Създаване на статус етикет',
|
||||
'deployable' => 'Може да бъде предоставен',
|
||||
'info' => 'Статусите се използват за описване на различните състояния на Вашите активи. Например, това са Предаден за ремонт, Изгубен/откраднат и др. Можете да създавате нови статуси за активите, които могат да бъдат предоставяни, очакващи набавяне и архивирани.',
|
||||
'name' => 'Статус',
|
||||
'pending' => 'Изчакване',
|
||||
'status_type' => 'Тип на статуса',
|
||||
'title' => 'Заглавия на статуси',
|
||||
'undeployable' => 'Не може да бъде предоставян',
|
||||
'update' => 'Обновяване на статус',
|
||||
);
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Несъществуващ доставчик.',
|
||||
'assoc_users' => 'Този доставчик е асоцииран с поне един от моделите и не може да бъде изтрит. Моля, променете връзките на моделите по отношение на този доставчик и опитайте отново. ',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Доставчикът не беше създаден. Моля, опитайте отново.',
|
||||
'success' => 'Доставчикът е създаден.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Достъвчикът не беше обновен. Моля, опитайте отново',
|
||||
'success' => 'Доставчикът е обновен.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че искате да изтриете този доставчик?',
|
||||
'error' => 'Възникна проблем при изтриване на доставчика. Моля, опитайте отново.',
|
||||
'success' => 'Доставчикът е изтрит.'
|
||||
)
|
||||
|
||||
);
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'address' => 'Адрес на доставчика',
|
||||
'assets' => 'Активи',
|
||||
'city' => 'Град',
|
||||
'contact' => 'Лице за връзка',
|
||||
'country' => 'Държава',
|
||||
'create' => 'Създаване на доставчик',
|
||||
'email' => 'Email',
|
||||
'fax' => 'Факс',
|
||||
'id' => 'ID',
|
||||
'licenses' => 'Лицензи',
|
||||
'name' => 'Доставчик',
|
||||
'notes' => 'Бележки',
|
||||
'phone' => 'Телефон',
|
||||
'state' => 'Област',
|
||||
'suppliers' => 'Доставчици',
|
||||
'update' => 'Обновяване на доставчик',
|
||||
'url' => 'URL адрес',
|
||||
'view' => 'Преглед на доставчик',
|
||||
'view_assets_for' => 'Преглед на активите за',
|
||||
'zip' => 'Пощенски код',
|
||||
|
||||
);
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
return array(
|
||||
|
||||
'assets_user' => 'Активи предадени на :name',
|
||||
'clone' => 'Копиране на потребител',
|
||||
'contact_user' => 'Връзка :name',
|
||||
'edit' => 'Редактиране на потребител',
|
||||
'filetype_info' => 'Позволените типове файлове са png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, и rar.',
|
||||
'history_user' => 'История за :name',
|
||||
'last_login' => 'Последен достъп до системата',
|
||||
'ldap_config_text' => 'Конфигурационните настройки за LDAP са в директорията app/config във файла ldap.php. Избраното местоположение ще бъде асоциирано с всички заредени от LDAP потребители. Необходимо е да имате създадено поне едно местоположение, за да използвате тази функционалност.',
|
||||
'ldap_text' => 'Връзка с LDAP и създаване на потребители. Паролите ще бъдат генерирани автоматично.',
|
||||
'software_user' => 'Софтуерни продукти, изписани на :name',
|
||||
'view_user' => 'Преглед на потребител :name',
|
||||
'usercsv' => 'CSV файл',
|
||||
);
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'accepted' => 'Активът беше приет.',
|
||||
'declined' => 'Активът беше отказан.',
|
||||
'user_exists' => 'Потребителят вече съществува!',
|
||||
'user_not_found' => 'Потребител [:id] не съществува.',
|
||||
'user_login_required' => 'Полето за вход е задължително',
|
||||
'user_password_required' => 'Паролата е задължителна.',
|
||||
'insufficient_permissions' => 'Нямате необходимите права.',
|
||||
'user_deleted_warning' => 'Този потребител е изтрит. За да редактирате данните за него или да му зададете актив, трябва първо да възстановите потребителя.',
|
||||
'ldap_not_configured' => 'Интеграцията с LDAP не е конфигурирана за тази инсталация.',
|
||||
|
||||
|
||||
'success' => array(
|
||||
'create' => 'Потребителят е създаден.',
|
||||
'update' => 'Потребителят е обновен.',
|
||||
'delete' => 'Потребителят е изтрит.',
|
||||
'ban' => 'Потребителят беше забранен успешно.',
|
||||
'unban' => 'Потребителят възстановен успешно.',
|
||||
'suspend' => 'Потребителят бе временно спрян.',
|
||||
'unsuspend' => 'Потребителят активиран успешно.',
|
||||
'restored' => 'Потребителят е възстановен.',
|
||||
'import' => 'Потребителите заредени успешно.',
|
||||
),
|
||||
|
||||
'error' => array(
|
||||
'create' => 'Възникна проблем при създаването на този потребител. Моля, опитайте отново.',
|
||||
'update' => 'Възникна проблем при обновяването на този потребител. Моля, опитайте отново.',
|
||||
'delete' => 'Възникна проблем при изтриването на този потребител. Моля, опитайте отново.',
|
||||
'unsuspend' => 'Проблем при активирането на потребителя. Моля опитайте отново.',
|
||||
'import' => 'Проблем при зареждането на потребителите. Моля опитайте отново.',
|
||||
'asset_already_accepted' => 'Този актив е вече приет.',
|
||||
'accept_or_decline' => 'Трябва да приемете или да откажете този актив.',
|
||||
'ldap_could_not_connect' => 'Проблем при комуникацията с LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра: ',
|
||||
'ldap_could_not_bind' => 'Проблем при връзката с LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра: ',
|
||||
'ldap_could_not_search' => 'Проблем при търсенето в LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра: ',
|
||||
'ldap_could_not_get_entries' => 'Проблем при извличането на резултат от LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра:',
|
||||
),
|
||||
|
||||
'deletefile' => array(
|
||||
'error' => 'Файлът не е изтрит. Моля, опитайте отново.',
|
||||
'success' => 'Файлът е изтрит.',
|
||||
),
|
||||
|
||||
'upload' => array(
|
||||
'error' => 'Проблем при качването на файл/овете. Моля опитайте отново.',
|
||||
'success' => 'Файл/овете качени успешно.',
|
||||
'nofiles' => 'Не сте избрали файлове за качване',
|
||||
'invalidfiles' => 'Един или повече файлове са твърде големи или с неразрешен тип. Разрешените типове файлове са png, gif, jpg, doc, docx, pdf, и txt.',
|
||||
),
|
||||
|
||||
);
|
||||
Executable
+36
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'activated' => 'Активен',
|
||||
'allow' => 'Разрешаване',
|
||||
'checkedout' => 'Активи',
|
||||
'created_at' => 'Създаден',
|
||||
'createuser' => 'Нов потребител',
|
||||
'deny' => 'Отказ',
|
||||
'email' => 'Email',
|
||||
'employee_num' => 'Номер на служител',
|
||||
'first_name' => 'Собствено име',
|
||||
'groupnotes' => 'Изберете група на потребителя. Той ще наследи правата, присвоени на групата.',
|
||||
'id' => 'ID',
|
||||
'inherit' => 'Наследяване',
|
||||
'job' => 'Длъжност',
|
||||
'last_login' => 'Последен вход',
|
||||
'last_name' => 'Фамилия',
|
||||
'location' => 'Местоположение',
|
||||
'lock_passwords' => 'Настройките за вход не могат да бъдат променяни в текущата инсталация.',
|
||||
'manager' => 'Ръководител',
|
||||
'name' => 'Име',
|
||||
'notes' => 'Бележки',
|
||||
'password_confirm' => 'Потвърждение на паролата',
|
||||
'password' => 'Парола',
|
||||
'phone' => 'Телефон',
|
||||
'show_current' => 'Преглед на текущите потребители',
|
||||
'show_deleted' => 'Преглед на изтритите потребители',
|
||||
'title' => 'Титла',
|
||||
'updateuser' => 'Обновяване на потребител',
|
||||
'username' => 'Потребителско име',
|
||||
'username_note' => '(Използва се за достъп до Active Directory, а не за вход.)',
|
||||
'cloneuser' => 'Копиране на потребител',
|
||||
'viewusers' => 'Преглед на потребителите',
|
||||
);
|
||||
Executable
+36
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'account_already_exists' => 'Потребител с този email вече е регистриран.',
|
||||
'account_not_found' => 'Невалиден потребител или парола.',
|
||||
'account_not_activated' => 'Потребителят все още не е активиран.',
|
||||
'account_suspended' => 'Потребителят е временно спрян.',
|
||||
'account_banned' => 'Потребителят е неактивен.',
|
||||
|
||||
'signin' => array(
|
||||
'error' => 'Проблем при входа в системата. Моля опитайте отново.',
|
||||
'success' => 'Успешен вход в системата.',
|
||||
),
|
||||
|
||||
'signup' => array(
|
||||
'error' => 'Проблем при създаването на потребителя. Моля опитайте отново.',
|
||||
'success' => 'Потребителят създаден успешно.',
|
||||
),
|
||||
|
||||
'forgot-password' => array(
|
||||
'error' => 'Проблем при извличането на код за възстановяване на паролата. Моля опитайте отново.',
|
||||
'success' => 'Връзка за възстановяване на паролата беше изпратена на електронната поща.',
|
||||
),
|
||||
|
||||
'forgot-password-confirm' => array(
|
||||
'error' => 'Проблем при промяна на паролата. Моля опитайте отново.',
|
||||
'success' => 'Паролата променена успешно.',
|
||||
),
|
||||
|
||||
'activate' => array(
|
||||
'error' => 'Проблем при активиране на потребителя. Моля опитайте отново.',
|
||||
'success' => 'Потребителят активиран успешно.',
|
||||
),
|
||||
|
||||
);
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'actions' => 'Действия',
|
||||
'add' => 'Добави нов',
|
||||
'cancel' => 'Отказ',
|
||||
'delete' => 'Изтриване',
|
||||
'edit' => 'Редакция',
|
||||
'restore' => 'Възстановяване',
|
||||
'request' => 'Заявка',
|
||||
'submit' => 'Потвърди',
|
||||
'upload' => 'Качване',
|
||||
|
||||
);
|
||||
Executable
+142
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'accessories' => 'Аксесоари',
|
||||
'accessory' => 'Аксесоар',
|
||||
'accessory_report' => 'Справка за аксесоарите',
|
||||
'action' => 'Действие',
|
||||
'activity_report' => 'Справка за дейностите',
|
||||
'address' => 'Aдрес',
|
||||
'admin' => 'Администриране',
|
||||
'all_assets' => 'Всички активи',
|
||||
'all' => 'Всички',
|
||||
'archived' => 'Архивирани',
|
||||
'asset_models' => 'Модели на активи',
|
||||
'asset' => 'Актив',
|
||||
'asset_report' => 'Справка за активите',
|
||||
'asset_tag' => 'Инвентарен номер',
|
||||
'assets_available' => 'налични активи',
|
||||
'assets' => 'Активи',
|
||||
'avatar_delete' => 'Изтриване на аватар',
|
||||
'avatar_upload' => 'Качване на аватар',
|
||||
'back' => 'Назад',
|
||||
'bad_data' => 'Няма резултати.',
|
||||
'cancel' => 'Отказ',
|
||||
'categories' => 'Категории',
|
||||
'category' => 'Категория',
|
||||
'changeemail' => 'Промяна на email адрес',
|
||||
'changepassword' => 'Смяна на паролата',
|
||||
'checkin' => 'Вписване',
|
||||
'checkin_from' => 'Форма за вписване',
|
||||
'checkout' => 'Изписване',
|
||||
'city' => 'Град',
|
||||
'consumable' => 'Консуматив',
|
||||
'consumables' => 'Консумативи',
|
||||
'country' => 'Държава',
|
||||
'create' => 'Създаване на нов',
|
||||
'created_asset' => 'създадени активи',
|
||||
'created_at' => 'Създаден на',
|
||||
'currency' => '$', // this is deprecated
|
||||
'current' => 'Текущи',
|
||||
'custom_report' => 'Потребителски справки за активи',
|
||||
'dashboard' => 'Табло',
|
||||
'date' => 'Дата',
|
||||
'delete' => 'Изтриване',
|
||||
'deleted' => 'Изтрито',
|
||||
'deployed' => 'Изписани',
|
||||
'depreciation_report' => 'Справка за амортизации',
|
||||
'download' => 'Изтегляне',
|
||||
'depreciation' => 'Амортизация',
|
||||
'editprofile' => 'Редакция на профила',
|
||||
'eol' => 'EOL',
|
||||
'first' => 'Първа',
|
||||
'first_name' => 'Собствено име',
|
||||
'file_name' => 'Файл',
|
||||
'file_uploads' => 'Качени файлове',
|
||||
'generate' => 'Генериране',
|
||||
'groups' => 'Групи',
|
||||
'gravatar_email' => 'Gravatar email адрес',
|
||||
'history_for' => 'История за',
|
||||
'id' => 'ID',
|
||||
'image_delete' => 'Изтриване на изображението',
|
||||
'image_upload' => 'Качване на изображение',
|
||||
'import' => 'Зареждане',
|
||||
'asset_maintenance' => 'Поддръжка на активи',
|
||||
'asset_maintenance_report' => 'Справка за поддръжка на активи',
|
||||
'asset_maintenances' => 'Поддръжки на активи',
|
||||
'item' => 'Информация',
|
||||
'last' => 'Последна',
|
||||
'last_name' => 'Фамилия',
|
||||
'license' => 'Лиценз',
|
||||
'license_report' => 'Справка за лицензите',
|
||||
'licenses_available' => 'налични лицензи',
|
||||
'licenses' => 'Лицензи',
|
||||
'list_all' => 'Преглед на всички',
|
||||
'loading' => 'Зареждане',
|
||||
'lock_passwords' => 'Полето не може да бъде редактирано в тази конфигурация.',
|
||||
'feature_disabled' => 'Функционалността е неактивна в тази конфигурация.',
|
||||
'location' => 'Местоположение',
|
||||
'locations' => 'Местоположения',
|
||||
'logout' => 'Изход',
|
||||
'manufacturer' => 'Производител',
|
||||
'manufacturers' => 'Производители',
|
||||
'model_no' => 'Модел №.',
|
||||
'months' => 'месеци',
|
||||
'moreinfo' => 'Повече информация',
|
||||
'name' => 'Име',
|
||||
'next' => 'Следващ',
|
||||
'no_depreciation' => 'Без амортизация',
|
||||
'no_results' => 'Няма резултат.',
|
||||
'no' => 'Не',
|
||||
'notes' => 'Бележки',
|
||||
'page_menu' => 'Показване на _MENU_ записа',
|
||||
'pagination_info' => 'Показване на _START_ до _END_ от _TOTAL_ елемента',
|
||||
'pending' => 'Изчакване',
|
||||
'people' => 'Потребители',
|
||||
'per_page' => 'Резултати на страница',
|
||||
'previous' => 'Предишен',
|
||||
'processing' => 'Обработка',
|
||||
'profile' => 'Вашият профил',
|
||||
'qty' => 'Количество',
|
||||
'quanitity' => 'Количество',
|
||||
'ready_to_deploy' => 'Готово за предоставяне',
|
||||
'recent_activity' => 'Последни действия',
|
||||
'reports' => 'Справки',
|
||||
'requested' => 'Изискан',
|
||||
'save' => 'Запис',
|
||||
'select' => 'Избор',
|
||||
'search' => 'Търсене',
|
||||
'select_depreciation' => 'Избор на вид амортизация',
|
||||
'select_location' => 'Избор на местоположение',
|
||||
'select_manufacturer' => 'Избор на производител',
|
||||
'select_model' => 'Избор на модел',
|
||||
'select_supplier' => 'Избор на доставчик',
|
||||
'select_user' => 'Избор на потребител',
|
||||
'select_date' => 'Избор на дата',
|
||||
'select_statuslabel' => 'Избор на статус',
|
||||
'settings' => 'Настройки',
|
||||
'sign_in' => 'Вход',
|
||||
'site_name' => 'Име на системата',
|
||||
'state' => 'Област',
|
||||
'status_labels' => 'Статус етикети',
|
||||
'status' => 'Статус',
|
||||
'suppliers' => 'Доставчици',
|
||||
'total_assets' => 'общо активи',
|
||||
'total_licenses' => 'общо лицензи',
|
||||
'type' => 'Тип',
|
||||
'undeployable' => 'Не може да бъде предоставян',
|
||||
'unknown_admin' => 'Непознат администратор',
|
||||
'update' => 'Обновяване',
|
||||
'uploaded' => 'Качен',
|
||||
'user' => 'Потребител',
|
||||
'accepted' => 'приет',
|
||||
'declined' => 'отказан',
|
||||
'unaccepted_asset_report' => 'Неприети активи',
|
||||
'users' => 'Потребители',
|
||||
'viewassets' => 'Преглед на изписаните активи',
|
||||
'website' => 'Страница',
|
||||
'welcome' => 'Добре дошли, :name',
|
||||
'years' => 'години',
|
||||
'yes' => 'Да',
|
||||
'zip' => 'Пощенски код',
|
||||
];
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Предишна',
|
||||
|
||||
'next' => 'Следваща »',
|
||||
|
||||
);
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Паролата трябва да бъде поне 6 символа и да съвпада с потвърждението.",
|
||||
|
||||
"user" => "Грешно потребителско име или имейл адрес",
|
||||
|
||||
"token" => "Връзката за възстановяване на паролата е невалидна.",
|
||||
|
||||
"sent" => "Ако е зададен email, на потребителя ще бъде изпратена връзка за възстановяване на паролата.",
|
||||
|
||||
);
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'actions' => 'Действия',
|
||||
'action' => 'Действие',
|
||||
'by' => 'От',
|
||||
'item' => 'Информация',
|
||||
|
||||
);
|
||||
Executable
+95
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
"accepted" => ":attribute трябва да бъде потвърден.",
|
||||
"active_url" => ":attribute не е валиден URL адрес.",
|
||||
"after" => ":attribute трябва да бъде дата след :date.",
|
||||
"alpha" => ":attribute може да съдържа единствено букви.",
|
||||
"alpha_dash" => ":attribute може да съдържа единствено букви, числа и тире.",
|
||||
"alpha_num" => ":attribute може да съдържа единствено букви и числа.",
|
||||
"before" => ":attribute трябва да бъде дата преди :date.",
|
||||
"between" => array(
|
||||
"numeric" => ":attribute трябва да бъде между :min и :max.",
|
||||
"file" => ":attribute трябва да бъде с големина между :min и :max KB.",
|
||||
"string" => ":attribute трябва да бъде с дължина между :min и :max символа.",
|
||||
),
|
||||
"confirmed" => ":attribute потвърждение не съвпада.",
|
||||
"date" => ":attribute не е валидна дата.",
|
||||
"date_format" => ":attribute не съвпада с формата :format.",
|
||||
"different" => ":attribute и :other трябва да се различават.",
|
||||
"digits" => ":attribute трябва да бъде с дължина :digits цифри.",
|
||||
"digits_between" => ":attribute трябва да бъде с дължина между :min и :max цифри.",
|
||||
"email" => ":attribute е с невалиден формат.",
|
||||
"exists" => "Избраният :attribute е невалиден.",
|
||||
"image" => ":attribute трябва да бъде изображение.",
|
||||
"in" => "Избраният :attribute е невалиден.",
|
||||
"integer" => ":attribute трябва да бъде целочислен.",
|
||||
"ip" => ":attribute трябва да бъде валиден IP адрес.",
|
||||
"max" => array(
|
||||
"numeric" => ":attribute не може да бъде по-дълъг от :max.",
|
||||
"file" => ":attribute не може да бъде по-голям от :max KB.",
|
||||
"string" => ":attribute не може да бъде по-дълъг от :max символа.",
|
||||
),
|
||||
"mimes" => ":attribute трябва да бъде файл с един от следните типове: :values.",
|
||||
"min" => array(
|
||||
"numeric" => ":attribute трябва да бъде минимум :min.",
|
||||
"file" => ":attribute трябва да бъде с големина минимум :min KB.",
|
||||
"string" => ":attribute трябва да бъде минимум :min символа.",
|
||||
),
|
||||
"not_in" => "Избраният :attribute е невалиден.",
|
||||
"numeric" => ":attribute трябва да бъде число.",
|
||||
"regex" => "Форматът на :attribute е невалиден.",
|
||||
"required" => "Полето :attribute е задължително.",
|
||||
"required_if" => "Полето :attribute е задължително, когато :other е :value.",
|
||||
"required_with" => ":attribute е задължителен, когато са избрани :values.",
|
||||
"required_without" => ":attribute е задължителен, когато не са избрани :values.",
|
||||
"same" => ":attribute и :other трябва да съвпадат.",
|
||||
"size" => array(
|
||||
"numeric" => ":attribute трябва да бъде с дължина :size.",
|
||||
"file" => ":attribute трябва да бъде с големина :size KB.",
|
||||
"string" => ":attribute трябва да бъде с дължина :size символа.",
|
||||
),
|
||||
"unique" => ":attribute вече е вписан.",
|
||||
"url" => "Форматът на :attribute е невалиден.",
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => array(),
|
||||
'alpha_space' => ":attribute съдържа символи, които са забранени.",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => array(),
|
||||
|
||||
);
|
||||
@@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'dl_csv' => 'Download CSV',
|
||||
'eula_text' => 'EULA',
|
||||
'id' => 'ID',
|
||||
'require_acceptance' => 'Přijetí',
|
||||
'title' => 'Název příslušenství',
|
||||
|
||||
|
||||
);
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'confirm' => 'Are you sure you wish to delete this consumable?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'success' => 'The consumable was deleted successfully.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -10,6 +10,8 @@ return array(
|
||||
'backups' => 'Zálohy',
|
||||
'barcode_type' => 'Tyo čárového kódu',
|
||||
'barcode_settings' => 'Nastavení čárového kódu',
|
||||
'custom_css' => 'Custom CSS',
|
||||
'custom_css_help' => 'Enter any custom CSS overrides you would like to use. Do not include the <style></style> tags.',
|
||||
'default_currency' => 'Default Currency',
|
||||
'default_eula_text' => 'Výchozí EULA',
|
||||
'default_eula_help_text' => 'Můžete také spojit vlastní EULA se specifickými kategoriemi majetku.',
|
||||
@@ -20,6 +22,7 @@ return array(
|
||||
'eula_settings' => 'Nastavení EULA',
|
||||
'eula_markdown' => 'Tato EULA umožňuje <a href="https://help.github.com/articles/github-flavored-markdown/">Github markdown</a>.',
|
||||
'general_settings' => 'Obecné nastavení',
|
||||
'generate_backup' => 'Generate Backup',
|
||||
'header_color' => 'Barva záhlaví',
|
||||
'info' => 'Tato nastavení umožňují zvolit určité prvky instalace.',
|
||||
'laravel' => 'Verze Laravel',
|
||||
|
||||
@@ -4,8 +4,14 @@ return array(
|
||||
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Vyskytla se chyba při aktualizaci. ',
|
||||
'success' => 'Nastavení úspěšně uloženo.'
|
||||
'error' => 'Vyskytla se chyba při aktualizaci. ',
|
||||
'success' => 'Nastavení úspěšně uloženo.'
|
||||
),
|
||||
'backup' => array(
|
||||
'delete_confirm' => 'Are you sure you would like to delete this backup file? This action cannot be undone. ',
|
||||
'file_deleted' => 'The backup file was successfully deleted. ',
|
||||
'generated' => 'A new backup file was successfully created.',
|
||||
'file_not_found' => 'That backup file could not be found on the server.',
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -10,7 +10,7 @@ return array(
|
||||
'filetype_info' => 'Povolené přílohy: png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, and rar.',
|
||||
'history_user' => 'Historie:',
|
||||
'last_login' => 'Poslední přihlášení',
|
||||
'ldap_config_text' => 'LDAP configuration settings can be found in the app/config folder in a file called ldap.php',
|
||||
'ldap_config_text' => 'LDAP configuration settings can be found in the app/config folder in a file called ldap.php. The selected location will be set for all imported users. You will need to have at least one location set to use this feature.',
|
||||
'ldap_text' => 'Connect to LDAP and create users. Passwords will be auto-generated.',
|
||||
'software_user' => 'Software vydaný pro :name',
|
||||
'view_user' => 'Zobraz uživatele',
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'dl_csv' => 'Download CSV',
|
||||
'eula_text' => 'Slutbrugerlicens',
|
||||
'id' => 'ID',
|
||||
'require_acceptance' => 'Accept',
|
||||
'title' => 'Tilbehør Navn',
|
||||
|
||||
|
||||
);
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'confirm' => 'Are you sure you wish to delete this consumable?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'success' => 'The consumable was deleted successfully.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -10,6 +10,8 @@ return array(
|
||||
'backups' => 'Backups',
|
||||
'barcode_type' => 'Barcode Type',
|
||||
'barcode_settings' => 'Barcode Settings',
|
||||
'custom_css' => 'Custom CSS',
|
||||
'custom_css_help' => 'Enter any custom CSS overrides you would like to use. Do not include the <style></style> tags.',
|
||||
'default_currency' => 'Default Currency',
|
||||
'default_eula_text' => 'Default EULA',
|
||||
'default_eula_help_text' => 'You can also associate custom EULAs to specific asset categories.',
|
||||
@@ -20,6 +22,7 @@ return array(
|
||||
'eula_settings' => 'EULA Settings',
|
||||
'eula_markdown' => 'This EULA allows <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>.',
|
||||
'general_settings' => 'General Settings',
|
||||
'generate_backup' => 'Generate Backup',
|
||||
'header_color' => 'Header Color',
|
||||
'info' => 'These settings let you customize certain aspects of your installation.',
|
||||
'laravel' => 'Laravel Version',
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user