updated td-editable styles #1313
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-04-09 13:47:13 +02:00
parent 9ce1e93da7
commit b3c00e5a29
2 changed files with 15 additions and 26 deletions

View File

@ -2,6 +2,7 @@
vn-td-editable {
text {
border-bottom: 1px solid rgba(0,0,0,.12);
cursor: pointer;
display: block
}
@ -9,15 +10,7 @@ vn-td-editable {
outline: none;
position: relative;
&:not([disabled="true"]) {
cursor: initial;
text:hover::after {
font-family: 'salixfont';
float: right;
content: '\e900';
display: block
}
cursor: initial
}
&[disabled="true"] {
cursor: not-allowed;

View File

@ -26,8 +26,8 @@
<vn-th field="warehouse">Warehouse</vn-th>
<vn-th field="salesPersonNickname">SalesPerson</vn-th>
<vn-th field="description">Description</vn-th>
<vn-th field="quantity" editable>Quantity</vn-th>
<vn-th field="price">Price</vn-th>
<vn-th field="quantity" number editable>Quantity</vn-th>
<vn-th field="price" number>Price</vn-th>
<vn-th field="atenderNickname">Atender</vn-th>
<vn-th field="itemFk">itemFk</vn-th>
<vn-th field="description">Concept</vn-th>
@ -49,30 +49,26 @@
<vn-td>{{::request.warehouse}}</vn-td>
<vn-td>{{::request.salesPersonNickname}}</vn-td>
<vn-td>{{::request.description}}</vn-td>
<vn-td>{{::request.quantity}}</vn-td>
<vn-td>{{::request.price}}</vn-td>
<vn-td number>{{::request.quantity}}</vn-td>
<vn-td number>{{::request.price}}</vn-td>
<vn-td>{{::request.atenderNickname}}</vn-td>
<vn-td-editable>
<vn-td-editable number>
<text>{{request.itemFk}}</text>
<field>
<vn-textfield
vn-focus
<vn-input-number vn-focus
model="request.itemFk"
on-change="$ctrl.confirmRequest(request)"
type="number">
</vn-textfield>
on-change="$ctrl.confirmRequest(request)">
</vn-input-number>
</field>
</vn-td-editable>
<vn-td>{{::request.itemDescription}}</vn-td>
<vn-td-editable disabled="!request.saleFk && request.itemFk">
<text>{{request.saleQuantity}}</text>
<vn-td-editable disabled="!request.saleFk && request.itemFk" number>
<text number>{{request.saleQuantity}}</text>
<field>
<vn-textfield
vn-focus
<vn-input-number vn-focus
model="request.saleQuantity"
on-change="$ctrl.changeQuantity(request)"
type="number">
</vn-textfield>
on-change="$ctrl.changeQuantity(request)">
</vn-input-number>
</field>
</vn-td-editable>
<vn-td>{{::$ctrl.getState(request.isOk)}}</vn-td>