#207 Changed font-size for awarded time in the report in mobile view

Also made minor alignment changes.
This commit is contained in:
Mark Nelson 2018-07-09 22:48:49 +08:00
parent c395c7dadc
commit 47f1102545
3 changed files with 19 additions and 12 deletions

View file

@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$addons = array( $addons = [
'mod_customcert' => [ // Plugin identifier. 'mod_customcert' => [ // Plugin identifier.
'handlers' => [ // Different places where the plugin will display content. 'handlers' => [ // Different places where the plugin will display content.
'issueview' => [ // Handler unique name. 'issueview' => [ // Handler unique name.
@ -34,6 +34,10 @@ $addons = array(
], ],
'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the plugin). 'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the plugin).
'method' => 'mobile_view_activity', // Main function in \mod_customcert\output\mobile. 'method' => 'mobile_view_activity', // Main function in \mod_customcert\output\mobile.
'styles' => [
'url' => '/mod/customcert/mobile/styles.css',
'version' => 1
]
] ]
], ],
'lang' => [ // Language strings that are used in all the handlers. 'lang' => [ // Language strings that are used in all the handlers.
@ -45,6 +49,6 @@ $addons = array(
['receiveddate', 'customcert'], ['receiveddate', 'customcert'],
['requiredtimenotmet', 'customcert'], ['requiredtimenotmet', 'customcert'],
['selectagroup', 'moodle'] ['selectagroup', 'moodle']
], ]
] ]
); ];

3
mobile/styles.css Normal file
View file

@ -0,0 +1,3 @@
.timerewarded {
font-size: 14px;
}

View file

@ -120,7 +120,7 @@
<ion-label>{{ 'plugin.mod_customcert.selectagroup' | translate }}</ion-label> <ion-label>{{ 'plugin.mod_customcert.selectagroup' | translate }}</ion-label>
<ion-select (ionChange)="updateContent({cmid: <% cmid %>, courseid: <% certificate.course %>, group: $event})" interface="popover"> <ion-select (ionChange)="updateContent({cmid: <% cmid %>, courseid: <% certificate.course %>, group: $event})" interface="popover">
<%#groups%> <%#groups%>
<ion-option value="<% id %>" <%#selected%>selected<%/selected%>><% name %></ion-option> <ion-option value="<% id %>" <%#selected%>selected<%/selected%>><% name %></ion-option>
<%/groups%> <%/groups%>
</ion-select> </ion-select>
</ion-item> </ion-item>
@ -134,20 +134,20 @@
<ion-col col-6 class="text-left"> <ion-col col-6 class="text-left">
<% displayname %> <% displayname %>
<br /> <br />
{{ <% timecreated %> | coreToLocaleString }} <div class="timerewarded">{{ <% timecreated %> | coreToLocaleString }}</div>
</ion-col> </ion-col>
<ion-col col-6 class="text-right"> <ion-col col-6 class="text-right">
<button ion-button icon-only clear [core-download-file]="{fileurl: '<% fileurl %>', timemodified: '<% currenttimestamp %>'}" moduleId="<% cmid %>" courseId="<% certificate.course %>" component="mod_customcert"> <button ion-button icon-only clear [core-download-file]="{fileurl: '<% fileurl %>', timemodified: '<% currenttimestamp %>'}" moduleId="<% cmid %>" courseId="<% certificate.course %>" component="mod_customcert">
<ion-icon name="download"></ion-icon> <ion-icon name="download"></ion-icon>
</button> </button>
<%#canmanage%> <%#canmanage%>
<button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue" <button ion-button icon-only clear core-site-plugins-call-ws name="mod_customcert_delete_issue"
[params]="{certificateid: <% certificate.id %>, issueid: <% issueid %>}" [params]="{certificateid: <% certificate.id %>, issueid: <% issueid %>}"
[preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}" [preSets]="{getFromCache: 0, saveToCache: 0, typeExpected: 'boolean'}"
confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}" confirmMessage="{{ 'plugin.mod_customcert.deleteissueconfirm' | translate }}"
refreshOnSuccess="true"> refreshOnSuccess="true">
<ion-icon name="trash"></ion-icon> <ion-icon name="trash"></ion-icon>
</button> </button>
<%/canmanage%> <%/canmanage%>
</ion-col> </ion-col>
</ion-row> </ion-row>