Style/i18n fixes

This commit is contained in:
Juan Ferrer 2019-09-25 23:09:10 +02:00
parent dba4ae14d5
commit 2a0cc1dc8b
7 changed files with 14 additions and 11 deletions

View File

@ -62,6 +62,7 @@ $color-notice-medium: lighten($color-notice, 20%);
$color-notice-light: lighten($color-notice, 35%);
$color-alert-medium: lighten($color-alert, 20%);
$color-alert-light: lighten($color-alert, 35%);
/**/
// Dark theme
/*

View File

@ -35,10 +35,10 @@
</vn-vertical>
</vn-card>
<vn-button-bar>
<vn-submit label="Send"></vn-submit>
<vn-submit label="Query"></vn-submit>
</vn-button-bar>
</form>
<vn-card pad-medium margin-medium-top>
<vn-card pad-medium margin-medium-top>
<vn-zone-calendar
events="events.events"
exclusions="events.exclusions">

View File

@ -6,7 +6,7 @@ vn-zone-delivery-days {
flex-wrap: wrap;
& > vn-calendar {
min-width: 15em;
min-width: 16.5em;
}
}
}

View File

@ -20,7 +20,7 @@
{{::row.from | dateTime:'dd/MM/yyyy'}} - {{::row.to | dateTime:'dd/MM/yyyy'}}
</span>
<span ng-if="!row.to" translate>
Always
Indefinitely
</span>
<span ng-if="row.weekDays">
({{::$ctrl.formatWdays(row.weekDays)}})

View File

@ -43,14 +43,14 @@ class Controller {
this.options = [
{
label: 'Specific day',
label: 'One day',
value: 'day'
}, {
label: 'Range of dates',
value: 'range'
}, {
label: 'Always',
value: 'always'
label: 'Indefinitely',
value: 'indefinitely'
}
];
@ -86,7 +86,7 @@ class Controller {
if (row.from && !row.to)
this.eventType = 'day';
else if (!row.from)
this.eventType = 'always';
this.eventType = 'indefinitely';
else
this.eventType = 'range';
@ -114,7 +114,7 @@ class Controller {
let selected = this.selected;
if (this.eventType == 'always') {
if (this.eventType == 'indefinitely') {
selected.from = null;
selected.to = null;
}

View File

@ -17,6 +17,7 @@ vn-zone-events {
justify-content: center;
align-items: center;
outline: none;
background-color: rgba(0, 0, 0, .05);
&.marked {
background: $color-main;

View File

@ -17,11 +17,12 @@ Search zone by id or name: Buscar zonas por identificador o nombre
From: Desde
To: Hasta
Closing: Cierre
Specific day: Día específico
One day: Un día
Range of dates: Rango de fechas
Always: Siempre
Indefinitely: Indefinido
Everyday: Todos los días
Delivery days: Días de entrega
Province: Provincia
Postcode: Código postal
Inflation: Inflación
Query: Consultar