parent
0a611f0924
commit
abc9d507bb
Before Width: | Height: | Size: 387 KiB After Width: | Height: | Size: 387 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 616 B |
@ -1,16 +0,0 @@ |
||||
|
||||
// Full screen toggle indicator on the |
||||
// left side of the details container |
||||
.wp--details--switch-fullscreen |
||||
display: inline-block |
||||
width: 20px |
||||
height: 50px |
||||
cursor: pointer |
||||
|
||||
// Align icon |
||||
font-size: 0.9rem |
||||
text-align: center |
||||
padding-top: 10px |
||||
|
||||
span:before |
||||
padding: 0 |
@ -0,0 +1,26 @@ |
||||
.work-packages--details-content |
||||
// Override the top header in create mode |
||||
&.-create-mode |
||||
top: 0 |
||||
|
||||
// Details header containing switch icon and status|type row |
||||
.work-packages--new-details-header |
||||
margin-top: 0.375em |
||||
display: flex |
||||
align-items: stretch |
||||
|
||||
// Full screen toggle indicator on the |
||||
// left side of the details container |
||||
.wp--details--switch-fullscreen |
||||
flex: 1 |
||||
display: inline-block |
||||
width: 20px |
||||
cursor: pointer |
||||
|
||||
// Align icon |
||||
font-size: 0.9rem |
||||
text-align: right |
||||
padding-top: 14px |
||||
|
||||
span:before |
||||
padding: 0 |
@ -0,0 +1,18 @@ |
||||
.wp-new-top-row |
||||
@include varprop(color, content-link-color) |
||||
display: flex |
||||
font-size: 24px |
||||
// Create some margin to the bottom |
||||
margin-bottom: 15px |
||||
|
||||
// Set the correct height when editing these fields |
||||
.wp-inline-edit--field |
||||
height: 40px |
||||
|
||||
// Add some minor margin between active status and type field |
||||
.wp-inline-edit--active-field |
||||
margin-right: 5px |
||||
|
||||
// Disable text decoration from toolbar span |
||||
.wp-edit-field--display-field:hover |
||||
text-decoration: none |
@ -0,0 +1,14 @@ |
||||
<div ng-if="$ctrl.workPackage" class="wp-new-top-row"> |
||||
<div class="work-packages--status-selector wp-new-top-row--element"> |
||||
<wp-edit-field work-package-id="$ctrl.workPackage.id" |
||||
wrapper-classes="'wp-new-top-row--status -no-label'" |
||||
field-name="'status'"> |
||||
</wp-edit-field> |
||||
</div> |
||||
<div class="work-packages--type-selector wp-new-top-row--element"> |
||||
<wp-edit-field work-package-id="$ctrl.workPackage.id" |
||||
wrapper-classes="'wp-new-top-row--type -no-label'" |
||||
field-name="'type'"> |
||||
</wp-edit-field> |
||||
</div> |
||||
</div> |
@ -0,0 +1,52 @@ |
||||
// -- copyright
|
||||
// OpenProject is a project management system.
|
||||
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License version 3.
|
||||
//
|
||||
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
||||
// Copyright (C) 2006-2013 Jean-Philippe Lang
|
||||
// Copyright (C) 2010-2013 the ChiliProject Team
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
//
|
||||
// See doc/COPYRIGHT.rdoc for more details.
|
||||
// ++
|
||||
|
||||
import {opWorkPackagesModule} from "../../../angular-modules"; |
||||
import {scopedObservable} from "../../../helpers/angular-rx-utils"; |
||||
import {WorkPackageResource} from "../../api/api-v3/hal-resources/work-package-resource.service"; |
||||
import {WorkPackageCacheService} from "../work-package-cache.service"; |
||||
|
||||
class WorkPackageTypeStatusController { |
||||
public workPackage:WorkPackageResource; |
||||
} |
||||
|
||||
function wpTypeStatusDirective() { |
||||
return { |
||||
restrict: 'E', |
||||
templateUrl: '/components/work-packages/wp-type-status/wp-type-status.directive.html', |
||||
scope: { |
||||
workPackage: '=' |
||||
}, |
||||
bindToController: true, |
||||
controller: WorkPackageTypeStatusController, |
||||
controllerAs: '$ctrl' |
||||
}; |
||||
} |
||||
|
||||
opWorkPackagesModule.directive('wpTypeStatus', wpTypeStatusDirective); |
||||
|
Loading…
Reference in new issue