Merge branch 'dev-angular' into feature/client-side-routing

Conflicts:
	app/views/work_packages/index.html.erb
pull/1315/head
Till Breuer 11 years ago
commit 8a0270329f
  1. 9
      app/assets/javascripts/angular/controllers/work-packages-controller.js
  2. 58
      app/assets/stylesheets/content/_modal.sass
  3. 19
      app/assets/stylesheets/fonts/_openproject_icon_font.sass
  4. 23
      app/assets/stylesheets/layout/_drop_down.sass
  5. 6
      public/templates/work_packages/modals/columns.html
  6. 2
      public/templates/work_packages/modals/export.html
  7. 8
      public/templates/work_packages/modals/save.html
  8. 2
      public/templates/work_packages/modals/settings.html
  9. 4
      public/templates/work_packages/modals/share.html
  10. 2
      public/templates/work_packages/modals/sorting.html

@ -237,13 +237,4 @@ angular.module('openproject.workPackages.controllers')
} }
}); });
// Note: Again, this was in the work packages table directive but in an isolated scope so it wasn't picking up the changes to sortation.
// Think it would probably be a good idea to have the table directive just share the scope but that requires a refactor.
$scope.$watch('query.sortation.sortElements', function(oldValue, newValue) {
if (JSON.stringify(newValue) != JSON.stringify(oldValue)) {
$scope.updateResults();
$scope.updateBackUrl();
}
}, true);
}]); }]);

@ -12,7 +12,7 @@ $ng-modal-image-width: $ng-modal-image-height
.ng-modal-window .ng-modal-window
// overlay // overlay
+position(fixed, 0px 0px 0px 0px) +position(fixed, 0px 0px 0px 0px)
background: rgba(0, 0, 0, 0.2) background: rgba(0, 0, 0, 0.5)
text-align: left text-align: left
z-index: 10000 z-index: 10000
@ -34,8 +34,6 @@ $ng-modal-image-width: $ng-modal-image-height
.ng-modal-inner .ng-modal-inner
+transition(opacity 0.25s ease) +transition(opacity 0.25s ease)
border-radius: $base-border-radius
box-shadow: 0 5px 10px rgba(0, 0, 0, .2)
background: $ng-modal-background background: $ng-modal-background
margin: auto margin: auto
max-height: 95% max-height: 95%
@ -46,46 +44,32 @@ $ng-modal-image-width: $ng-modal-image-height
margin-top: .6em margin-top: .6em
//+media($medium-screen) //+media($medium-screen)
//padding: $ng-modal-padding //padding: $ng-modal-padding
//width: 60% //width: 50%
//max-height: 60% //max-height: 50%
//margin-top: 10em //margin-top: 10em
//+media($large-screen) //+media($large-screen)
width: 50% width: 40%
margin-top: 10em margin-top: 10em
.modal-header .modal-header
padding: 0 padding: 0
i i
float: right float: right
padding: 10px cursor: pointer
label
#content-behind-modal padding: 0 50px 0 0
position: absolute input
z-index: 1 width: 230px
padding: 10px height: 30px
line-height: 30px
#modal-dark-overlay padding: 0 5px
position: absolute background: #ffffff
z-index: 2 border: 1px solid #cacaca
background: #000000 font-size: 13px
opacity: 0.3 color: #222222
width: 97% border-radius: 2px
height: 94% button
margin: 30px 7px 0 0
.modal-container
position: relative
z-index: 3
margin: 20px auto
width: 60%
background: #ffffff
padding: 0
.modal-header
padding: 0
i
float: right
padding: 10px
.modal-content
padding: 20px 20px 20px 20px

@ -67,12 +67,16 @@
font-size: 12px font-size: 12px
@mixin icon-dropdown-rules @mixin icon-dropdown-rules
padding: 0 0px 0 3px padding: 0 0 0 3px
font-size: 13px font-size: 13px
@mixin icon-button-rules @mixin icon-button-rules
padding: 0 5px 0 0px padding: 0 5px 0 0
font-size: 13px font-size: 13px
@mixin icon-dropdown-menu-rules
padding: 0 8px 0 0
font-size: 14px
@mixin icon-context-rules @mixin icon-context-rules
padding: 0 4px 0 0 padding: 0 4px 0 0
@ -124,6 +128,11 @@
content: attr(data-icon-dropdown) content: attr(data-icon-dropdown)
@include icon-dropdown-rules @include icon-dropdown-rules
[data-icon-dropdown-menu]:before
@include icon-common
content: attr(data-icon-dropdown-menu)
@include icon-dropdown-menu-rules
[data-icon-button]:before [data-icon-button]:before
@include icon-common @include icon-common
content: attr(data-icon-button) content: attr(data-icon-button)
@ -133,7 +142,7 @@
@include icon-common @include icon-common
content: attr(data-icon-table) content: attr(data-icon-table)
@include icon-table-rules @include icon-table-rules
[data-icon-action-menu]:before [data-icon-action-menu]:before
content: attr(data-icon-action-menu) content: attr(data-icon-action-menu)
@include icon-action-menu-rules @include icon-action-menu-rules
@ -173,6 +182,10 @@
.icon-dropdown:before .icon-dropdown:before
@include icon-dropdown-rules @include icon-dropdown-rules
// used for icons dropdown-menus
.icon-dropdown-menu:before
@include icon-dropdown-menu-rules
// used for icons in buttons // used for icons in buttons
.icon-buttons:before .icon-buttons:before
@include icon-button-rules @include icon-button-rules

@ -32,6 +32,10 @@
// https://github.com/plapier/jquery-dropdown // https://github.com/plapier/jquery-dropdown
// (dual MIT/GPL-Licensed) // (dual MIT/GPL-Licensed)
#settingsDropdown
margin: 10px 0 0 0
.dropdown .dropdown
position: absolute position: absolute
z-index: 9999999 z-index: 9999999
@ -45,7 +49,7 @@
background: #FFF background: #FFF
border: solid 1px #DDD border: solid 1px #DDD
border: solid 1px rgba(0, 0, 0, .2) border: solid 1px rgba(0, 0, 0, .2)
border-radius: 6px border-radius: 0px
box-shadow: 0 5px 10px rgba(0, 0, 0, .2) box-shadow: 0 5px 10px rgba(0, 0, 0, .2)
overflow: visible overflow: visible
padding: 4px 0 padding: 4px 0
@ -103,21 +107,28 @@
color: #555 color: #555
text-decoration: none text-decoration: none
line-height: 18px line-height: 18px
padding: 3px 15px padding: 3px 32px
white-space: nowrap white-space: nowrap
.dropdown .dropdown-menu LI > A:hover, .dropdown .dropdown-menu LI > A:hover,
.dropdown .dropdown-menu LABEL:hover .dropdown .dropdown-menu LABEL:hover
background-color: #08C background-color: #F0F0F0
color: #FFF
cursor: pointer cursor: pointer
.dropdown LI > A.dropdown-menu-hasicons
display: block
color: #555
text-decoration: none
line-height: 18px
padding: 3px 10px
white-space: nowrap
.dropdown .dropdown-menu .dropdown-divider .dropdown .dropdown-menu .dropdown-divider
font-size: 1px font-size: 1px
border-top: solid 1px #E5E5E5 border-top: solid 1px #E5E5E5
padding: 0 padding: 0
margin: 5px 0 margin: 4px 0
/* Icon Examples - icons courtesy of http://p.yusukekamiyamane.com/ */ /* Icon Examples - icons courtesy of http://p.yusukekamiyamane.com/ */
.dropdown.has-icons LI > A .dropdown.has-icons LI > A

@ -2,7 +2,7 @@
<div class="ng-modal-inner"> <div class="ng-modal-inner">
<div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div> <div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div>
<h1>Columns</h1> <h3>Columns</h3>
<div> <div>
<label for="selected_columns">Selected Columns</label> <label for="selected_columns">Selected Columns</label>
@ -16,8 +16,8 @@
</div> </div>
<div> <div>
<button ng-click="updateSelectedColumns()">Apply</button> <button class="button_highlight" ng-click="updateSelectedColumns()">Apply</button>
<button ng-click="modal.closeMe()">Cancel</button> <button class="button" ng-click="modal.closeMe()">Cancel</button>
</div> </div>
</div> </div>

@ -2,7 +2,7 @@
<div class="ng-modal-inner"> <div class="ng-modal-inner">
<div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div> <div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div>
<h1>{{modal.name}}</h1> <h3>{{modal.name}}</h3>
<div class="grid-items-lines"> <div class="grid-items-lines">
<a ng-repeat="(key, value) in modal.formats" ng-href="{{value}}" class="grid-item"> <a ng-repeat="(key, value) in modal.formats" ng-href="{{value}}" class="grid-item">
<img src="" alt=""> <img src="" alt="">

@ -2,15 +2,15 @@
<div class="ng-modal-inner"> <div class="ng-modal-inner">
<div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div> <div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div>
<h1>Save</h1> <h3>Save</h3>
<div> <div>
<label for="name">Name</label> <label for="name">Name</label>
<input type="text" name="query_name" ng-model="queryName"></input> <input class="short" type="text" name="query_name" ng-model="queryName"></input>
</div> </div>
<div> <div>
<button ng-click="modal.closeMe()">Cancel</button> <button class="button_highlight" ng-click="saveQueryAs(queryName)">Save</button>
<button ng-click="saveQueryAs(queryName)">Save</button> <button class="button" ng-click="modal.closeMe()">Cancel</button>
</div> </div>
</div> </div>

@ -2,7 +2,7 @@
<div class="ng-modal-inner"> <div class="ng-modal-inner">
<div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div> <div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div>
<h1>Settings</h1> <h3>Settings</h3>
</div> </div>
</div> </div>

@ -2,15 +2,15 @@
<div class="ng-modal-inner"> <div class="ng-modal-inner">
<div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div> <div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div>
<h1>Share</h1> <h3>Share</h3>
<div> <div>
<label for="name">Page visible for others</label> <label for="name">Page visible for others</label>
<input type="checkbox" name="is_public" ng-model="query.isPublic"></input> <input type="checkbox" name="is_public" ng-model="query.isPublic"></input>
</div> </div>
<div> <div>
<button ng-click="modal.closeMe()">Cancel</button>
<button ng-click="saveQuery()">Save</button> <button ng-click="saveQuery()">Save</button>
<button ng-click="modal.closeMe()">Cancel</button>
</div> </div>
</div> </div>

@ -2,7 +2,7 @@
<div class="ng-modal-inner modal-content"> <div class="ng-modal-inner modal-content">
<div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div> <div class="modal-header"><i class="icon-close" ng-click="modal.closeMe()"></i></div>
<h1>Sorting</h1> <h3>Sorting</h3>
<div ng-repeat="element in sortElements"> <div ng-repeat="element in sortElements">
<input type="hidden" <input type="hidden"

Loading…
Cancel
Save