You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.0 KiB
65 lines
2.0 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('feature.show') . ' | ' . $feature->name . ' | ' . $feature->project->name)
|
|
|
|
@section('content')
|
|
@include('features.partials.breadcrumb')
|
|
|
|
<h1 class="page-header">
|
|
<div class="pull-right">
|
|
{!! html_link_to_route('features.create', trans('feature.create'), [$feature->project_id], ['class' => 'btn btn-success','icon' => 'plus']) !!}
|
|
{!! link_to_route('features.edit', trans('feature.edit'), [$feature->id], ['class' => 'btn btn-warning']) !!}
|
|
{!! link_to_route('projects.features', trans('feature.back_to_index'), [$feature->project_id, '#' . $feature->id], ['class' => 'btn btn-default']) !!}
|
|
</div>
|
|
{{ $feature->name }} <small>{{ trans('feature.show') }}</small>
|
|
</h1>
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
@include('features.partials.feature-show')
|
|
</div>
|
|
<div class="col-sm-7">
|
|
@include('features.partials.feature-tasks-operation')
|
|
</div>
|
|
</div>
|
|
@include('features.partials.feature-tasks')
|
|
@endsection
|
|
|
|
@if (Request::get('action') == 'task_edit' && $editableTask)
|
|
@section('ext_css')
|
|
{!! Html::style(url('assets/css/plugins/rangeslider.css')) !!}
|
|
<style>
|
|
.rangeslider--horizontal {
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
height: 10px;
|
|
}
|
|
.rangeslider--horizontal .rangeslider__handle {
|
|
top : -5px;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
.rangeslider--horizontal .rangeslider__handle:after {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
</style>
|
|
@endsection
|
|
|
|
@section('ext_js')
|
|
{!! Html::script(url('assets/js/plugins/rangeslider.min.js')) !!}
|
|
@endsection
|
|
|
|
@section('script')
|
|
<script>
|
|
(function() {
|
|
$('input[type="range"]').rangeslider({ polyfill: false });
|
|
|
|
$(document).on('input', 'input[type="range"]', function(e) {
|
|
var ap_weight = e.currentTarget.value;
|
|
$('#ap_weight').text(ap_weight);
|
|
});
|
|
})();
|
|
</script>
|
|
@endsection
|
|
|
|
@endif
|