Browse Source

Update 2016-08-04.22.39

Redirect Feature creation to feature detail page
Fix notifier position
pull/1/head
Nafies Luthfi 10 years ago
parent
commit
d7a9f6f477
  1. 2
      app/Http/Controllers/Projects/FeaturesController.php
  2. 8
      public/assets/css/app.css
  3. 2
      public/assets/css/app.css.map
  4. 4
      resources/assets/sass/app.scss
  5. 4
      resources/views/features/show.blade.php
  6. 1
      tests/ManageFeaturesTest.php

2
app/Http/Controllers/Projects/FeaturesController.php

@ -49,7 +49,7 @@ class FeaturesController extends Controller {
{ {
$feature = $this->repo->createFeature($req->except('_token'), $projectId); $feature = $this->repo->createFeature($req->except('_token'), $projectId);
flash()->success(trans('feature.created')); flash()->success(trans('feature.created'));
return redirect()->route('projects.features', $feature->project_id);
return redirect()->route('features.show', $feature->id);
} }
public function storeFromOtherProject(Request $req, $projectId) public function storeFromOtherProject(Request $req, $projectId)

8
public/assets/css/app.css

@ -7176,7 +7176,8 @@ label.control-label {
@media (min-width: 768px) { @media (min-width: 768px) {
#page-wrapper { #page-wrapper {
margin-left: 200px; margin-left: 200px;
padding: 0; }
padding: 0;
position: relative; }
/* /*
.hidden-xs { .hidden-xs {
display: block; display: block;
@ -7205,7 +7206,10 @@ label.control-label {
div.notifier { div.notifier {
border-radius: 0; border-radius: 0;
margin-bottom: 0; }
margin-bottom: 0;
position: absolute;
left: 0;
right: 0; }
#footer { #footer {
padding: 15px 10px; } padding: 15px 10px; }

2
public/assets/css/app.css.map
File diff suppressed because it is too large
View File

4
resources/assets/sass/app.scss

@ -75,6 +75,7 @@ label.control-label {
#page-wrapper { #page-wrapper {
margin-left: 200px; margin-left: 200px;
padding: 0; padding: 0;
position: relative;
} }
/* /*
.hidden-xs { .hidden-xs {
@ -116,6 +117,9 @@ label.control-label {
div.notifier { div.notifier {
border-radius: 0; border-radius: 0;
margin-bottom: 0; margin-bottom: 0;
position: absolute;
left: 0;
right: 0;
} }
#footer { #footer {

4
resources/views/features/show.blade.php

@ -13,10 +13,10 @@
{{ $feature->name }} <small>{{ trans('feature.show') }}</small> {{ $feature->name }} <small>{{ trans('feature.show') }}</small>
</h1> </h1>
<div class="row"> <div class="row">
<div class="col-md-4">
<div class="col-md-5">
@include('features.partials.feature-show') @include('features.partials.feature-show')
</div> </div>
<div class="col-sm-8">
<div class="col-sm-7">
@include('features.partials.feature-tasks-operation') @include('features.partials.feature-tasks-operation')
</div> </div>
</div> </div>

1
tests/ManageFeaturesTest.php

@ -38,7 +38,6 @@ class ManageFeaturesTest extends TestCase
$this->type('Similique, eligendi fuga animi? Ipsam magnam laboriosam distinctio officia facere sapiente eius corporis','description'); $this->type('Similique, eligendi fuga animi? Ipsam magnam laboriosam distinctio officia facere sapiente eius corporis','description');
$this->press(trans('feature.create')); $this->press(trans('feature.create'));
$this->seePageIs('projects/' . $project->id . '/features');
$this->see(trans('feature.created')); $this->see(trans('feature.created'));
$this->seeInDatabase('features', [ $this->seeInDatabase('features', [
'name' => 'Nama Fitur Baru', 'name' => 'Nama Fitur Baru',

Loading…
Cancel
Save