Some database and css fixes. [skip ci]

This commit is contained in:
James Cole
2015-06-23 21:14:21 +02:00
parent a7555bcce3
commit cd27f0ad69
5 changed files with 36 additions and 19 deletions

View File

@@ -71,16 +71,16 @@ class Journal extends Twig_Extension
switch ($type) {
case 'Withdrawal':
$txt = '<span class="glyphicon glyphicon-arrow-left" title="' . trans('firefly.withdrawal') . '"></span>';
$txt = '<i class="fa fa-long-arrow-left fa-fw" title="' . trans('firefly.withdrawal') . '"></i>';
break;
case 'Deposit':
$txt = '<span class="glyphicon glyphicon-arrow-right" title="' . trans('firefly.deposit') . '"></span>';
$txt = '<i class="fa fa-long-arrow-right fa-fw" title="' . trans('firefly.deposit') . '"></i>';
break;
case 'Transfer':
$txt = '<i class="fa fa-fw fa-exchange" title="' . trans('firefly.transfer') . '"></i>';
break;
case 'Opening balance':
$txt = '<span class="glyphicon glyphicon-ban-circle" title="' . trans('firefly.openingBalance') . '"></span>';
$txt = '<i class="fa-fw fa fa-ban" title="' . trans('firefly.openingBalance') . '"></i>';
break;
default:
$txt = '';

View File

@@ -1,6 +1,7 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class ChangesForV3451
@@ -14,14 +15,12 @@ class ChangesForV3451 extends Migration
*/
public function down()
{
DB::statement('UPDATE `piggy_banks` SET `reminder_skip` = 0 WHERE `reminder_skip` IS NULL;');
DB::statement('ALTER TABLE `piggy_banks` MODIFY `reminder_skip` SMALLINT UNSIGNED NOT NULL;');
DB::statement('UPDATE `piggy_banks` SET `remind_me` = 0 WHERE `remind_me` IS NULL;');
DB::statement('ALTER TABLE `piggy_banks` MODIFY `remind_me` TINYINT UNSIGNED NOT NULL;');
}
//$table->smallInteger('reminder_skip')->unsigned();
//$table->boolean('remind_me');
/**
* Run the migrations.
*
@@ -30,11 +29,6 @@ class ChangesForV3451 extends Migration
public function up()
{
DB::statement('ALTER TABLE `piggy_banks` MODIFY `reminder_skip` SMALLINT UNSIGNED NULL;');
DB::statement('ALTER TABLE `piggy_banks` MODIFY `remind_me` TINYINT UNSIGNED NULL;');
//'reminder_skip'
//'remind_me'
}
}

View File

@@ -263,6 +263,8 @@ class TestDataSeeder extends Seeder
'targetamount' => 2000,
'startdate' => $this->som,
'targetdate' => null,
'reminder_skip' => 0,
'remind_me' => 0,
'order' => 0,
]
);
@@ -277,6 +279,8 @@ class TestDataSeeder extends Seeder
'targetamount' => 2000,
'startdate' => $this->som,
'targetdate' => $end,
'reminder_skip' => 0,
'remind_me' => 0,
'order' => 0,
]
);
@@ -298,6 +302,8 @@ class TestDataSeeder extends Seeder
'targetamount' => 1000,
'startdate' => $this->som,
'targetdate' => $nextYear,
'reminder_skip' => 0,
'remind_me' => 0,
'order' => 0,
]
);
@@ -308,6 +314,8 @@ class TestDataSeeder extends Seeder
'targetamount' => 1000,
'startdate' => $this->som,
'targetdate' => null,
'reminder_skip' => 0,
'remind_me' => 0,
'order' => 0,
]
);
@@ -422,7 +430,8 @@ class TestDataSeeder extends Seeder
$user = User::whereEmail('thegrumpydictator@gmail.com')->first();
Tag::create(
['tag' => 'TagOne', 'tagMode' => 'nothing', 'user_id' => $user->id]);
['tag' => 'TagOne', 'tagMode' => 'nothing', 'user_id' => $user->id]
);
Tag::create(['tag' => 'TagTwo', 'tagMode' => 'nothing', 'user_id' => $user->id]);
Tag::create(['tag' => 'TagThree', 'tagMode' => 'nothing', 'user_id' => $user->id]);

13
public/bootstrap/css/bootstrap.min.css vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

11
public/bootstrap/js/bootstrap.min.js vendored Normal file → Executable file

File diff suppressed because one or more lines are too long