Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use .table-responsive in tables #83

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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