Skip to content

Commit

Permalink
Add .table-responsive when tables are used. Fix #77
Browse files Browse the repository at this point in the history
  • Loading branch information
jpajuelo committed May 11, 2016
1 parent f8358b9 commit 228b9e1
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 88 deletions.
27 changes: 14 additions & 13 deletions views/partials/stock/product-catalogue/update-party.jade
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
table.table.table-bordered
thead
tr
th Username
th Owner
th Seller
tbody
tr(ng-repeat="party in updateVM.item.relatedParty")
td {{ party.id }}
td.text-success
i.fa.fa-check-circle-o(ng-if="party.role == 'Owner'")
td.text-success
i.fa.fa-check-circle-o(ng-if="party.role == 'Seller'")
.table-responsive
table.table.table-bordered
thead
tr
th Username
th Owner
th Seller
tbody
tr(ng-repeat="party in updateVM.item.relatedParty")
td {{ party.id }}
td.text-success
i.fa.fa-check-circle-o(ng-if="party.role == 'Owner'")
td.text-success
i.fa.fa-check-circle-o(ng-if="party.role == 'Seller'")
45 changes: 23 additions & 22 deletions views/partials/stock/product/create-form-characteristics.jade
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
table.table.table-bordered(ng-if="createVM.characteristics.length")
thead
tr
th #
th Name
th Type
th Values
th Default
th Delete
tbody
tr(ng-repeat="characteristic in createVM.characteristics")
th {{ $index + 1 }}
td {{ characteristic.name }}
td {{ characteristic.valueType }}
td
span(ng-repeat="value in characteristic.productSpecCharacteristicValue")
span(ng-if="!$first") ,
span {{ createVM.getFormattedValueOf(characteristic, value) }}
td {{ createVM.getFormattedValueOf(characteristic, createVM.getDefaultValueOf(characteristic)) }}
td
a.alert-link-danger(ng-click="createVM.removeCharacteristic($index)")
span.fa.fa-trash
.table-responsive
table.table.table-bordered(ng-if="createVM.characteristics.length")
thead
tr
th #
th Name
th Type
th Values
th Default
th Delete
tbody
tr(ng-repeat="characteristic in createVM.characteristics")
th {{ $index + 1 }}
td {{ characteristic.name }}
td {{ characteristic.valueType }}
td
span(ng-repeat="value in characteristic.productSpecCharacteristicValue")
span(ng-if="!$first") ,
span {{ createVM.getFormattedValueOf(characteristic, value) }}
td {{ createVM.getFormattedValueOf(characteristic, createVM.getDefaultValueOf(characteristic)) }}
td
a.alert-link-danger(ng-click="createVM.removeCharacteristic($index)")
span.fa.fa-trash
.alert.alert-info.text-center(ng-if="!createVM.characteristics.length")
| No characteristic included.
include ./create-form-characteristic-form.jade
Expand Down
37 changes: 19 additions & 18 deletions views/partials/stock/product/create-form-finish.jade
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,25 @@ form(name="step.form", novalidate)
.col-sm-12
.h4.text-dark-secondary
strong Characteristics
table.table.table-bordered
thead
tr
th #
th Name
th Type
th Values
th Default
tbody
tr(ng-repeat="characteristic in createVM.characteristics")
th {{ $index + 1 }}
td {{ characteristic.name }}
td {{ characteristic.valueType }}
td
span(ng-repeat="value in characteristic.productSpecCharacteristicValue")
span(ng-if="!$first") ,
span {{ createVM.getFormattedValueOf(characteristic, value) }}
td {{ createVM.getFormattedValueOf(characteristic, createVM.getDefaultValueOf(characteristic)) }}
.table-responsive
table.table.table-bordered
thead
tr
th #
th Name
th Type
th Values
th Default
tbody
tr(ng-repeat="characteristic in createVM.characteristics")
th {{ $index + 1 }}
td {{ characteristic.name }}
td {{ characteristic.valueType }}
td
span(ng-repeat="value in characteristic.productSpecCharacteristicValue")
span(ng-if="!$first") ,
span {{ createVM.getFormattedValueOf(characteristic, value) }}
td {{ createVM.getFormattedValueOf(characteristic, createVM.getDefaultValueOf(characteristic)) }}
.form-group
label Description
textarea.form-control(
Expand Down
19 changes: 10 additions & 9 deletions views/partials/stock/sharing-models/create-form-finish.jade
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,16 @@ form(name="step.form", novalidate)
strong Stakeholders
.row
.col-sm-12
table.table.table-bordered(ng-if="createVM.data.stakeholders.length")
thead
tr
th User
th Percentage
tbody
tr(ng-repeat="stakeholder in createVM.data.stakeholders")
td {{ stakeholder.stakeholderId }}
td {{ stakeholder.modelValue }} %
.table-responsive
table.table.table-bordered(ng-if="createVM.data.stakeholders.length")
thead
tr
th User
th Percentage
tbody
tr(ng-repeat="stakeholder in createVM.data.stakeholders")
td {{ stakeholder.stakeholderId }}
td {{ stakeholder.modelValue }} %
.alert.alert-info.text-center(ng-if="!createVM.data.stakeholders.length")
| No stakeholders included.

Expand Down
27 changes: 14 additions & 13 deletions views/partials/stock/sharing-models/create-form-stakeholders.jade
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
table.table.table-bordered(ng-if="createVM.data.stakeholders.length")
thead
tr
th User
th Percentage
th Delete
tbody
tr(ng-repeat="stakeholder in createVM.data.stakeholders")
td {{ stakeholder.stakeholderId }}
td {{ stakeholder.modelValue }} %
td
a.alert-link-danger(ng-click="createVM.removeStakeholder($index)")
span.fa.fa-trash
.table-responsive
table.table.table-bordered(ng-if="createVM.data.stakeholders.length")
thead
tr
th User
th Percentage
th Delete
tbody
tr(ng-repeat="stakeholder in createVM.data.stakeholders")
td {{ stakeholder.stakeholderId }}
td {{ stakeholder.modelValue }} %
td
a.alert-link-danger(ng-click="createVM.removeStakeholder($index)")
span.fa.fa-trash
.alert.alert-info.text-center(ng-if="!createVM.data.stakeholders.length")
| No stakeholders included.

Expand Down
27 changes: 14 additions & 13 deletions views/partials/stock/sharing-models/update-form.jade
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,20 @@ form(name="updateVM.form", novalidate)
span(ng-message="max") This field must not be higher than 100.
span(ng-message="number") This field must be a valid number.

table.table.table-bordered(ng-if="updateVM.data.stakeholders.length")
thead
tr
th User
th Percentage
th Delete
tbody
tr(ng-repeat="stakeholder in updateVM.data.stakeholders")
td {{ stakeholder.stakeholderId }}
td {{ stakeholder.modelValue }} %
td
a.alert-link-danger(ng-click="updateVM.removeStakeholder($index)")
span.fa.fa-trash
.table-responsive
table.table.table-bordered(ng-if="updateVM.data.stakeholders.length")
thead
tr
th User
th Percentage
th Delete
tbody
tr(ng-repeat="stakeholder in updateVM.data.stakeholders")
td {{ stakeholder.stakeholderId }}
td {{ stakeholder.modelValue }} %
td
a.alert-link-danger(ng-click="updateVM.removeStakeholder($index)")
span.fa.fa-trash
.alert.alert-info.text-center(ng-if="!updateVM.data.stakeholders.length")
| No stakeholders included.

Expand Down

0 comments on commit 228b9e1

Please sign in to comment.