-
-
-
-
+ return (
+
+
- );
- } else {
- return null;
- }
-
+
+ );
}
});
diff --git a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js
new file mode 100644
index 00000000..7aaf9dd8
--- /dev/null
+++ b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js
@@ -0,0 +1,31 @@
+import React from 'react';
+
+import Glyphicon from 'react-bootstrap/lib/Glyphicon';
+import DropdownButton from 'react-bootstrap/lib/DropdownButton';
+import MenuItem from 'react-bootstrap/lib/MenuItem';
+
+let PieceListToolbarFilterWidgetFilter = React.createClass({
+ render() {
+ let filterIcon =
;
+
+ return (
+
+
+ Show Pieces that:
+
+
+
+
+ );
+ }
+});
+
+export default PieceListToolbarFilterWidgetFilter;
\ No newline at end of file
diff --git a/js/components/piece_list.js b/js/components/piece_list.js
index 9580ffb1..e6735a27 100644
--- a/js/components/piece_list.js
+++ b/js/components/piece_list.js
@@ -10,6 +10,7 @@ import AccordionListItemTableEditions from './ascribe_accordion_list/accordion_l
import Pagination from './ascribe_pagination/pagination';
+import PieceListBulkModal from './ascribe_piece_list_bulk_modal/piece_list_bulk_modal';
import PieceListToolbar from './ascribe_piece_list_toolbar/piece_list_toolbar';
@@ -51,6 +52,7 @@ let PieceList = React.createClass({
return (
+
);
diff --git a/js/stores/piece_list_store.js b/js/stores/piece_list_store.js
index 97e3f4a4..7ca96c87 100644
--- a/js/stores/piece_list_store.js
+++ b/js/stores/piece_list_store.js
@@ -24,6 +24,19 @@ class PieceListStore {
this.bindActions(PieceListActions);
}
+ onShowEditionList(pieceId) {
+ this.pieceList
+ .forEach((piece) => {
+ if(piece.id === pieceId) {
+ if(piece.show) {
+ piece.show = false;
+ } else {
+ piece.show = true;
+ }
+ }
+ });
+ }
+
onUpdatePieceList({ page, pageSize, search, pieceList, orderBy, orderAsc, pieceListCount }) {
this.page = page;
this.pageSize = pageSize;
diff --git a/sass/ascribe-accordion_list.scss b/sass/ascribe_accordion_list.scss
similarity index 100%
rename from sass/ascribe-accordion_list.scss
rename to sass/ascribe_accordion_list.scss
diff --git a/sass/ascribe-piece-list-toolbar.scss b/sass/ascribe_piece_list_bulk_modal.scss
similarity index 85%
rename from sass/ascribe-piece-list-toolbar.scss
rename to sass/ascribe_piece_list_bulk_modal.scss
index 6093aed9..4a6b98d7 100644
--- a/sass/ascribe-piece-list-toolbar.scss
+++ b/sass/ascribe_piece_list_bulk_modal.scss
@@ -1,4 +1,4 @@
-.ascribe-piece-list-toolbar {
+.ascribe-piece-list-bulk-modal {
position: fixed;
top:0;
width:1170px;
@@ -14,7 +14,7 @@
z-index:9999;
}
-.piece-list-toolbar-clear-all {
+.piece-list-bulk-modal-clear-all {
text-decoration: underline;
cursor:pointer;
}
\ No newline at end of file
diff --git a/sass/ascribe_piece_list_toolbar.scss b/sass/ascribe_piece_list_toolbar.scss
new file mode 100644
index 00000000..73c0bc94
--- /dev/null
+++ b/sass/ascribe_piece_list_toolbar.scss
@@ -0,0 +1,3 @@
+.ascribe-piece-list-toolbar {
+ margin-bottom: 1.5em;
+}
\ No newline at end of file
diff --git a/sass/ascribe-variables.scss b/sass/ascribe_variables.scss
similarity index 100%
rename from sass/ascribe-variables.scss
rename to sass/ascribe_variables.scss
diff --git a/sass/main.scss b/sass/main.scss
index 471a6124..5327032e 100644
--- a/sass/main.scss
+++ b/sass/main.scss
@@ -1,12 +1,14 @@
// If you import a new .scss file, make sure to restart gulp
// otherwise it will not be included
@import 'variables';
-@import 'ascribe-variables';
+@import 'ascribe_variables';
@import '../node_modules/bootstrap-sass/assets/stylesheets/bootstrap';
@import './ascribe-fonts/style';
@import './ascribe-fonts/ascribe-fonts';
-@import 'ascribe-accordion_list';
-@import 'ascribe-piece-list-toolbar';
+@import 'ascribe_accordion_list';
+@import 'ascribe_piece_list_bulk_modal';
+@import 'ascribe_piece_list_toolbar';
+@import 'offset_right';
.hidden {
display: none;
@@ -15,10 +17,10 @@
.navbar-default {
border-left:0;
border-right:0;
- margin-bottom: 3em;
+ margin-bottom: 1.5em;
}
-.clear-margins-and-paddings {
+.clear-paddings {
padding-left:0;
padding-right:0;
}
diff --git a/sass/offset_right.scss b/sass/offset_right.scss
new file mode 100644
index 00000000..f844ce20
--- /dev/null
+++ b/sass/offset_right.scss
@@ -0,0 +1,164 @@
+/* Taken from: http://stackoverflow.com/a/27501063/1263876 */
+
+.col-xs-offset-right-12 {
+ margin-right: 100%;
+}
+.col-xs-offset-right-11 {
+ margin-right: 91.66666667%;
+}
+.col-xs-offset-right-10 {
+ margin-right: 83.33333333%;
+}
+.col-xs-offset-right-9 {
+ margin-right: 75%;
+}
+.col-xs-offset-right-8 {
+ margin-right: 66.66666667%;
+}
+.col-xs-offset-right-7 {
+ margin-right: 58.33333333%;
+}
+.col-xs-offset-right-6 {
+ margin-right: 50%;
+}
+.col-xs-offset-right-5 {
+ margin-right: 41.66666667%;
+}
+.col-xs-offset-right-4 {
+ margin-right: 33.33333333%;
+}
+.col-xs-offset-right-3 {
+ margin-right: 25%;
+}
+.col-xs-offset-right-2 {
+ margin-right: 16.66666667%;
+}
+.col-xs-offset-right-1 {
+ margin-right: 8.33333333%;
+}
+.col-xs-offset-right-0 {
+ margin-right: 0;
+}
+@media (min-width: 768px) {
+ .col-sm-offset-right-12 {
+ margin-right: 100%;
+ }
+ .col-sm-offset-right-11 {
+ margin-right: 91.66666667%;
+ }
+ .col-sm-offset-right-10 {
+ margin-right: 83.33333333%;
+ }
+ .col-sm-offset-right-9 {
+ margin-right: 75%;
+ }
+ .col-sm-offset-right-8 {
+ margin-right: 66.66666667%;
+ }
+ .col-sm-offset-right-7 {
+ margin-right: 58.33333333%;
+ }
+ .col-sm-offset-right-6 {
+ margin-right: 50%;
+ }
+ .col-sm-offset-right-5 {
+ margin-right: 41.66666667%;
+ }
+ .col-sm-offset-right-4 {
+ margin-right: 33.33333333%;
+ }
+ .col-sm-offset-right-3 {
+ margin-right: 25%;
+ }
+ .col-sm-offset-right-2 {
+ margin-right: 16.66666667%;
+ }
+ .col-sm-offset-right-1 {
+ margin-right: 8.33333333%;
+ }
+ .col-sm-offset-right-0 {
+ margin-right: 0;
+ }
+}
+@media (min-width: 992px) {
+ .col-md-offset-right-12 {
+ margin-right: 100%;
+ }
+ .col-md-offset-right-11 {
+ margin-right: 91.66666667%;
+ }
+ .col-md-offset-right-10 {
+ margin-right: 83.33333333%;
+ }
+ .col-md-offset-right-9 {
+ margin-right: 75%;
+ }
+ .col-md-offset-right-8 {
+ margin-right: 66.66666667%;
+ }
+ .col-md-offset-right-7 {
+ margin-right: 58.33333333%;
+ }
+ .col-md-offset-right-6 {
+ margin-right: 50%;
+ }
+ .col-md-offset-right-5 {
+ margin-right: 41.66666667%;
+ }
+ .col-md-offset-right-4 {
+ margin-right: 33.33333333%;
+ }
+ .col-md-offset-right-3 {
+ margin-right: 25%;
+ }
+ .col-md-offset-right-2 {
+ margin-right: 16.66666667%;
+ }
+ .col-md-offset-right-1 {
+ margin-right: 8.33333333%;
+ }
+ .col-md-offset-right-0 {
+ margin-right: 0;
+ }
+}
+@media (min-width: 1200px) {
+ .col-lg-offset-right-12 {
+ margin-right: 100%;
+ }
+ .col-lg-offset-right-11 {
+ margin-right: 91.66666667%;
+ }
+ .col-lg-offset-right-10 {
+ margin-right: 83.33333333%;
+ }
+ .col-lg-offset-right-9 {
+ margin-right: 75%;
+ }
+ .col-lg-offset-right-8 {
+ margin-right: 66.66666667%;
+ }
+ .col-lg-offset-right-7 {
+ margin-right: 58.33333333%;
+ }
+ .col-lg-offset-right-6 {
+ margin-right: 50%;
+ }
+ .col-lg-offset-right-5 {
+ margin-right: 41.66666667%;
+ }
+ .col-lg-offset-right-4 {
+ margin-right: 33.33333333%;
+ }
+ .col-lg-offset-right-3 {
+ margin-right: 25%;
+ }
+ .col-lg-offset-right-2 {
+ margin-right: 16.66666667%;
+ }
+ .col-lg-offset-right-1 {
+ margin-right: 8.33333333%;
+ }
+ .col-lg-offset-right-0 {
+ margin-right: 0;
+ }
+}
\ No newline at end of file