commit
c7b38b5d6a
|
@ -11,7 +11,7 @@
|
||||||
<ion-card>
|
<ion-card>
|
||||||
<ion-card-content>
|
<ion-card-content>
|
||||||
<ion-card-title text-wrap>
|
<ion-card-title text-wrap>
|
||||||
<ion-icon *ngIf="!event.moduleIcon" name="{{event.icon}}" item-start></ion-icon>
|
<core-icon *ngIf="event.icon && !event.moduleIcon" [name]="event.icon" item-start></core-icon>
|
||||||
<core-format-text [text]="event.name"></core-format-text>
|
<core-format-text [text]="event.name"></core-format-text>
|
||||||
</ion-card-title>
|
</ion-card-title>
|
||||||
<ion-item text-wrap>
|
<ion-item text-wrap>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<ion-list *ngIf="filteredEvents && filteredEvents.length" no-margin>
|
<ion-list *ngIf="filteredEvents && filteredEvents.length" no-margin>
|
||||||
<a ion-item text-wrap *ngFor="let event of filteredEvents" [title]="event.name" (click)="gotoEvent(event.id)" [class.core-split-item-selected]="event.id == eventId">
|
<a ion-item text-wrap *ngFor="let event of filteredEvents" [title]="event.name" (click)="gotoEvent(event.id)" [class.core-split-item-selected]="event.id == eventId">
|
||||||
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start class="core-module-icon">
|
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start class="core-module-icon">
|
||||||
<ion-icon *ngIf="!event.moduleIcon" name="{{event.icon}}" item-start></ion-icon>
|
<core-icon *ngIf="event.icon && !event.moduleIcon" [name]="event.icon" item-start></core-icon>
|
||||||
<h2><core-format-text [text]="event.name"></core-format-text></h2>
|
<h2><core-format-text [text]="event.name"></core-format-text></h2>
|
||||||
<p>{{ event.timestart | coreToLocaleString }}</p>
|
<p>{{ event.timestart | coreToLocaleString }}</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -24,11 +24,11 @@ export class AddonCalendarHelperProvider {
|
||||||
protected logger;
|
protected logger;
|
||||||
|
|
||||||
protected EVENTICONS = {
|
protected EVENTICONS = {
|
||||||
course: 'ionic',
|
course: 'fa-university',
|
||||||
group: 'people',
|
group: 'people',
|
||||||
site: 'globe',
|
site: 'globe',
|
||||||
user: 'person',
|
user: 'person',
|
||||||
category: 'albums'
|
category: 'fa-cubes'
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(logger: CoreLoggerProvider, private courseProvider: CoreCourseProvider) {
|
constructor(logger: CoreLoggerProvider, private courseProvider: CoreCourseProvider) {
|
||||||
|
|
|
@ -34,6 +34,14 @@ page-addon-mod-data-edit {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.addon-data-lantlong {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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-block .item-inner ion-input,
|
||||||
.item.item-input.item-input-has-focus .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 {
|
.item.item-input.input-has-focus .item-inner ion-input {
|
||||||
|
@ -41,13 +49,6 @@ page-addon-mod-data-edit {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addon-data-lantlong {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
form, .addon-data-advanced-search {
|
|
||||||
background-color: $list-background-color;
|
|
||||||
|
|
||||||
.core-mark-required {
|
.core-mark-required {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
<ion-input *ngIf="mode == 'search'" type="text" [placeholder]="field.name" [formControlName]="'f_'+field.id"></ion-input>
|
<ion-input *ngIf="mode == 'search'" type="text" [placeholder]="field.name" [formControlName]="'f_'+field.id"></ion-input>
|
||||||
|
|
||||||
<span *ngIf="mode == 'edit'" [core-mark-required]="field.required" class="core-mark-required"></span>
|
<span *ngIf="mode == 'edit'" [core-mark-required]="field.required" class="core-mark-required"></span>
|
||||||
<div class="addon-data-lantlong">
|
<div *ngIf="mode == 'edit'" class="addon-data-lantlong">
|
||||||
<ion-input type="text" [formControlName]="'f_'+field.id+'_0'" maxlength="10"></ion-input>
|
<ion-input type="text" [formControlName]="'f_'+field.id+'_0'" maxlength="10"></ion-input>
|
||||||
<span class="placeholder-icon" item-right>°N</span>
|
<span class="placeholder-icon" item-right>°N</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="addon-data-lantlong">
|
<div *ngIf="mode == 'edit'" class="addon-data-lantlong">
|
||||||
<ion-input type="text" [formControlName]="'f_'+field.id+'_1'" maxlength="10"></ion-input>
|
<ion-input type="text" [formControlName]="'f_'+field.id+'_1'" maxlength="10"></ion-input>
|
||||||
<span class="placeholder-icon" item-right>°E</span>
|
<span class="placeholder-icon" item-right>°E</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="fixed-content core-tabs-bar">
|
<div class="fixed-content core-tabs-bar">
|
||||||
<a [attr.aria-selected]="!search.searchingAdvanced" (click)="toggleAdvanced()">{{ 'addon.mod_data.search' | translate}}</a>
|
<a class="tab-slide" [attr.aria-selected]="!search.searchingAdvanced" (click)="toggleAdvanced()">{{ 'addon.mod_data.search' | translate}}</a>
|
||||||
<a [attr.aria-selected]="search.searchingAdvanced" (click)="toggleAdvanced()">{{ 'addon.mod_data.advancedsearch' | translate }}</a>
|
<a class="tab-slide" [attr.aria-selected]="search.searchingAdvanced" (click)="toggleAdvanced()">{{ 'addon.mod_data.advancedsearch' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
<form (ngSubmit)="searchEntries()" [formGroup]="searchForm">
|
<form (ngSubmit)="searchEntries()" [formGroup]="searchForm">
|
||||||
<ion-list no-margin>
|
<ion-list no-margin>
|
||||||
|
|
|
@ -47,14 +47,26 @@ export class AddonModDataSearchPage {
|
||||||
this.data = params.get('data');
|
this.data = params.get('data');
|
||||||
|
|
||||||
const advanced = {};
|
const advanced = {};
|
||||||
|
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) => {
|
this.search.advanced.forEach((field) => {
|
||||||
advanced[field.name] = field.value ? this.textUtils.parseJSON(field.value) : '';
|
advanced[field.name] = field.value ? this.textUtils.parseJSON(field.value) : '';
|
||||||
});
|
});
|
||||||
|
}
|
||||||
this.search.advanced = advanced;
|
this.search.advanced = advanced;
|
||||||
|
|
||||||
this.searchForm = fb.group({
|
this.searchForm = fb.group({
|
||||||
text: [this.search.text],
|
text: [this.search.text],
|
||||||
sortBy: [this.search.sortBy || 0],
|
sortBy: [this.search.sortBy || '0'],
|
||||||
sortDirection: [this.search.sortDirection || 'DESC'],
|
sortDirection: [this.search.sortDirection || 'DESC'],
|
||||||
firstname: [this.search.advanced['firstname'] || ''],
|
firstname: [this.search.advanced['firstname'] || ''],
|
||||||
lastname: [this.search.advanced['lastname'] || '']
|
lastname: [this.search.advanced['lastname'] || '']
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
</div>
|
</div>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ion-grid>
|
<ion-grid *ngIf="!preview">
|
||||||
<ion-row align-items-center>
|
<ion-row align-items-center>
|
||||||
<ion-col *ngIf="hasPrevPage">
|
<ion-col *ngIf="hasPrevPage">
|
||||||
<button ion-button block outline icon-start (click)="gotoPage(true)">
|
<button ion-button block outline icon-start (click)="gotoPage(true)">
|
||||||
|
|
|
@ -49,7 +49,7 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
wiki: any; // The wiki instance.
|
wiki: any; // The wiki instance.
|
||||||
isMainPage: boolean; // Whether the user is viewing wiki's main page (just entered the wiki).
|
isMainPage: boolean; // Whether the user is viewing wiki's main page (just entered the wiki).
|
||||||
canEdit = false; // Whether user can edit the page.
|
canEdit = false; // Whether user can edit the page.
|
||||||
pageStr = this.translate.instant('addon.mod_wiki.page');
|
pageStr = '';
|
||||||
pageWarning: string; // Message telling that the page was discarded.
|
pageWarning: string; // Message telling that the page was discarded.
|
||||||
loadedSubwikis: any[] = []; // The loaded subwikis.
|
loadedSubwikis: any[] = []; // The loaded subwikis.
|
||||||
pageIsOffline: boolean; // Whether the loaded page is an offline page.
|
pageIsOffline: boolean; // Whether the loaded page is an offline page.
|
||||||
|
@ -83,6 +83,8 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
protected navCtrl: NavController, protected utils: CoreUtilsProvider, protected groupsProvider: CoreGroupsProvider,
|
protected navCtrl: NavController, protected utils: CoreUtilsProvider, protected groupsProvider: CoreGroupsProvider,
|
||||||
protected userProvider: CoreUserProvider, private popoverCtrl: PopoverController) {
|
protected userProvider: CoreUserProvider, private popoverCtrl: PopoverController) {
|
||||||
super(injector, content);
|
super(injector, content);
|
||||||
|
|
||||||
|
this.pageStr = this.translate.instant('addon.mod_wiki.page');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -180,8 +180,8 @@ ion-datetime {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Format Text */
|
/** Format Text */
|
||||||
core-format-text[maxHeight], *[core-format-text][maxHeight],
|
core-format-text[maxHeight],
|
||||||
core-format-text[ng-reflect-max-height], *[core-format-text][ng-reflect-max-height] {
|
core-format-text[ng-reflect-max-height] {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -254,8 +254,8 @@ core-format-text[ng-reflect-max-height], *[core-format-text][ng-reflect-max-heig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
core-format-text[singleLine="true"], *[core-format-text][singleLine="true"],
|
core-format-text[singleLine="true"],
|
||||||
core-format-text[ng-reflect-single-line="true"], *[core-format-text][ng-reflect-single-line="true"] {
|
core-format-text[ng-reflect-single-line="true"] {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -298,7 +298,7 @@ audio.core-media-adapt-width {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
core-format-text, *[core-format-text] {
|
core-format-text {
|
||||||
audio, video, a, iframe {
|
audio, video, a, iframe {
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
|
@ -329,12 +329,6 @@ core-format-text, *[core-format-text] {
|
||||||
position: initial !important;
|
position: initial !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text.
|
|
||||||
img {
|
|
||||||
width: initial;
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.core-disable-media-adapt,
|
.core-disable-media-adapt,
|
||||||
.core-disable-media-adapt .core-media-adapt-width {
|
.core-disable-media-adapt .core-media-adapt-width {
|
||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
|
@ -345,6 +339,12 @@ core-format-text, *[core-format-text] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text.
|
||||||
|
ion-card core-format-text img {
|
||||||
|
width: initial;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
// Message item.
|
// Message item.
|
||||||
.item-message {
|
.item-message {
|
||||||
core-format-text > p:only-child {
|
core-format-text > p:only-child {
|
||||||
|
|
|
@ -51,10 +51,14 @@ core-course-module {
|
||||||
}
|
}
|
||||||
|
|
||||||
.md core-course-module {
|
.md core-course-module {
|
||||||
.core-module-description,
|
.core-module-description {
|
||||||
|
padding-right: $label-md-margin-end;
|
||||||
|
margin-bottom: $label-md-margin-bottom;
|
||||||
|
|
||||||
.core-module-description .core-show-more {
|
.core-module-description .core-show-more {
|
||||||
padding-right: $label-md-margin-end;
|
padding-right: $label-md-margin-end;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a.core-course-module-handler .core-module-icon {
|
a.core-course-module-handler .core-module-icon {
|
||||||
margin-top: $label-md-margin-top;
|
margin-top: $label-md-margin-top;
|
||||||
|
@ -77,10 +81,14 @@ core-course-module {
|
||||||
}
|
}
|
||||||
|
|
||||||
.ios core-course-module {
|
.ios core-course-module {
|
||||||
.core-module-description,
|
.core-module-description {
|
||||||
|
padding-right: $label-ios-margin-end;
|
||||||
|
margin-bottom: $label-md-margin-bottom;
|
||||||
|
|
||||||
.core-module-description .core-show-more {
|
.core-module-description .core-show-more {
|
||||||
padding-right: $label-ios-margin-end;
|
padding-right: $label-ios-margin-end;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a.core-course-module-handler .core-module-icon {
|
a.core-course-module-handler .core-module-icon {
|
||||||
margin-top: $label-ios-margin-top;
|
margin-top: $label-ios-margin-top;
|
||||||
|
@ -98,10 +106,14 @@ core-course-module {
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp core-course-module {
|
.wp core-course-module {
|
||||||
.core-module-description,
|
.core-module-description {
|
||||||
|
padding-right: ($item-wp-padding-end / 2);
|
||||||
|
margin-bottom: $label-md-margin-bottom;
|
||||||
|
|
||||||
.core-module-description .core-show-more {
|
.core-module-description .core-show-more {
|
||||||
padding-right: ($item-wp-padding-end / 2);
|
padding-right: ($item-wp-padding-end / 2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a.core-course-module-handler .core-module-icon {
|
a.core-course-module-handler .core-module-icon {
|
||||||
margin-top: $item-wp-padding-top;
|
margin-top: $item-wp-padding-top;
|
||||||
|
|
|
@ -61,7 +61,7 @@ export class CoreCoursesMainMenuHandler implements CoreMainMenuHandler {
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
icon: 'ionic',
|
icon: 'fa-graduation-cap',
|
||||||
title: 'core.courses.mycourses',
|
title: 'core.courses.mycourses',
|
||||||
page: 'CoreCoursesMyCoursesPage',
|
page: 'CoreCoursesMyCoursesPage',
|
||||||
class: 'core-mycourses-handler'
|
class: 'core-mycourses-handler'
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
page-core-mainmenu {
|
page-core-mainmenu {
|
||||||
|
.ion-md-fa-graduation-cap,
|
||||||
|
.ion-ios-fa-graduation-cap,
|
||||||
|
.ion-wp-fa-graduation-cap,
|
||||||
|
.ion-fa-graduation-cap {
|
||||||
|
@extend .fa-graduation-cap;
|
||||||
|
@extend .fa;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { CoreCoursesMyOverviewProvider } from '@core/courses/providers/my-overvi
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CoreSiteHomeMainMenuHandler implements CoreMainMenuHandler {
|
export class CoreSiteHomeMainMenuHandler implements CoreMainMenuHandler {
|
||||||
name = 'CoreSiteHome';
|
name = 'CoreSiteHome';
|
||||||
priority = 1000;
|
priority = 1200;
|
||||||
isOverviewEnabled: boolean;
|
isOverviewEnabled: boolean;
|
||||||
|
|
||||||
constructor(private siteHomeProvider: CoreSiteHomeProvider, private myOverviewProvider: CoreCoursesMyOverviewProvider) { }
|
constructor(private siteHomeProvider: CoreSiteHomeProvider, private myOverviewProvider: CoreCoursesMyOverviewProvider) { }
|
||||||
|
|
Loading…
Reference in New Issue