From 245f06c93a7cc1232e778abb56cb51c0b97830e0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 14 Jan 2016 09:17:23 +0100 Subject: [PATCH] Fix test, expand index. --- database/seeds/TestDataSeeder.php | 2 +- resources/views/rules/index.twig | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/database/seeds/TestDataSeeder.php b/database/seeds/TestDataSeeder.php index 925f17048a..d12955607a 100644 --- a/database/seeds/TestDataSeeder.php +++ b/database/seeds/TestDataSeeder.php @@ -215,7 +215,7 @@ class TestDataSeeder extends Seeder $rule = new Rule; $rule->user()->associate($this->user); $rule->ruleGroup()->associate(RuleGroup::find(1)); - $rule->order = 2; + $rule->order = 3; $rule->active = 1; $rule->stop_processing = 0; $rule->title = 'Move savings'; diff --git a/resources/views/rules/index.twig b/resources/views/rules/index.twig index 829b626fdd..bdce941bae 100644 --- a/resources/views/rules/index.twig +++ b/resources/views/rules/index.twig @@ -63,14 +63,25 @@
+ {% if rule.order > 1 %} + class="fa fa-fw fa-arrow-up"> + {% else %} + + {% endif %} + {% if rule.order < ruleGroup.rules.count %} + class="btn btn-default"> + + {% else %} + + {% endif %} + class="fa fa-fw fa-pencil"> + class="fa fa-fw fa-trash">