diff --git a/src/addon/calendar/pages/event/event.html b/src/addon/calendar/pages/event/event.html index 7e1087d80..dfa30e593 100644 --- a/src/addon/calendar/pages/event/event.html +++ b/src/addon/calendar/pages/event/event.html @@ -11,7 +11,7 @@ - + diff --git a/src/addon/calendar/pages/list/list.html b/src/addon/calendar/pages/list/list.html index de5065205..04e0d3e8a 100644 --- a/src/addon/calendar/pages/list/list.html +++ b/src/addon/calendar/pages/list/list.html @@ -23,7 +23,7 @@ - +

{{ event.timestart | coreToLocaleString }}

diff --git a/src/addon/calendar/providers/helper.ts b/src/addon/calendar/providers/helper.ts index c1a0a8888..a1a85759d 100644 --- a/src/addon/calendar/providers/helper.ts +++ b/src/addon/calendar/providers/helper.ts @@ -24,11 +24,11 @@ export class AddonCalendarHelperProvider { protected logger; protected EVENTICONS = { - course: 'ionic', + course: 'fa-university', group: 'people', site: 'globe', user: 'person', - category: 'albums' + category: 'fa-cubes' }; constructor(logger: CoreLoggerProvider, private courseProvider: CoreCourseProvider) { diff --git a/src/addon/mod/data/data.scss b/src/addon/mod/data/data.scss index 75b6d30ae..d8cb84608 100644 --- a/src/addon/mod/data/data.scss +++ b/src/addon/mod/data/data.scss @@ -34,20 +34,21 @@ page-addon-mod-data-edit { vertical-align: top; } - .item.item-input.item-block .item-inner ion-input, - .item.item-input.item-input-has-focus .item-inner ion-input, - .item.item-input.input-has-focus .item-inner ion-input { - border: 0 !important; - box-shadow: none; - } - .addon-data-lantlong { display: flex; } - form, .addon-data-advanced-search { + .addon-data-contents form, + form .addon-data-advanced-search { background-color: $list-background-color; + .item.item-input .item-block .item-inner ion-input, + .item.item-input.item-input-has-focus .item-inner ion-input, + .item.item-input.input-has-focus .item-inner ion-input { + border: 0 !important; + box-shadow: none; + } + .core-mark-required { float: right; diff --git a/src/addon/mod/data/fields/latlong/component/addon-mod-data-field-latlong.html b/src/addon/mod/data/fields/latlong/component/addon-mod-data-field-latlong.html index a219e554f..c8acdf842 100644 --- a/src/addon/mod/data/fields/latlong/component/addon-mod-data-field-latlong.html +++ b/src/addon/mod/data/fields/latlong/component/addon-mod-data-field-latlong.html @@ -2,11 +2,11 @@ -
+
°N
-
+
°E
diff --git a/src/addon/mod/data/pages/search/search.html b/src/addon/mod/data/pages/search/search.html index 687e42605..3103a74d9 100644 --- a/src/addon/mod/data/pages/search/search.html +++ b/src/addon/mod/data/pages/search/search.html @@ -10,8 +10,8 @@
diff --git a/src/addon/mod/data/pages/search/search.ts b/src/addon/mod/data/pages/search/search.ts index 160f0ad59..e5a0ac8a7 100644 --- a/src/addon/mod/data/pages/search/search.ts +++ b/src/addon/mod/data/pages/search/search.ts @@ -47,14 +47,26 @@ export class AddonModDataSearchPage { this.data = params.get('data'); const advanced = {}; - this.search.advanced.forEach((field) => { - advanced[field.name] = field.value ? this.textUtils.parseJSON(field.value) : ''; - }); + if (typeof this.search.advanced == 'object') { + Object.keys(this.search.advanced).forEach((index) => { + if (typeof this.search.advanced[index] != 'undefined' && typeof this.search.advanced[index].name != 'undefined') { + advanced[this.search.advanced[index].name] = this.search.advanced[index].value ? + this.textUtils.parseJSON(this.search.advanced[index].value) : ''; + } else { + advanced[index] = this.search.advanced[index] ? + this.textUtils.parseJSON(this.search.advanced[index]) : ''; + } + }); + } else { + this.search.advanced.forEach((field) => { + advanced[field.name] = field.value ? this.textUtils.parseJSON(field.value) : ''; + }); + } this.search.advanced = advanced; this.searchForm = fb.group({ text: [this.search.text], - sortBy: [this.search.sortBy || 0], + sortBy: [this.search.sortBy || '0'], sortDirection: [this.search.sortDirection || 'DESC'], firstname: [this.search.advanced['firstname'] || ''], lastname: [this.search.advanced['lastname'] || ''] diff --git a/src/addon/mod/feedback/pages/form/form.html b/src/addon/mod/feedback/pages/form/form.html index c67fc5376..2d261ceec 100644 --- a/src/addon/mod/feedback/pages/form/form.html +++ b/src/addon/mod/feedback/pages/form/form.html @@ -64,7 +64,7 @@
- +