Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #115 from SlateFoundation/develop
Browse files Browse the repository at this point in the history
Release: slate-admin v2.1.13
  • Loading branch information
themightychris authored Oct 7, 2016
2 parents 57eabdb + 4472b5b commit cdad592
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 32 deletions.
14 changes: 8 additions & 6 deletions sencha-workspace/SlateAdmin/app/controller/progress/Interims.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Ext.define('SlateAdmin.controller.progress.Interims', {

xtype: 'progress-interims-manager'
},
myClassesToggleBtn: 'progress-interims-sectionsgrid button[action=myClassesToggle]',
myClassesOnlyCheckbox: 'progress-interims-sectionsgrid checkboxfield[name=myClassesOnly]',
termSelector: 'progress-interims-sectionsgrid #termSelector',
sectionsGrid: 'progress-interims-sectionsgrid',
studentsGrid: 'progress-interims-studentsgrid',
Expand All @@ -41,8 +41,8 @@ Ext.define('SlateAdmin.controller.progress.Interims', {
activate: 'onManagerActivate'
},

myClassesToggleBtn: {
toggle: 'onMyClassesToggle'
myClassesOnlyCheckbox: {
change: 'onMyClassesOnlyCheckboxChange'
},
termSelector: {
change: 'onTermChange'
Expand Down Expand Up @@ -115,7 +115,7 @@ Ext.define('SlateAdmin.controller.progress.Interims', {
this.syncSections();
},

onMyClassesToggle: function () {
onMyClassesOnlyCheckboxChange: function () {
this.syncSections();
},

Expand Down Expand Up @@ -234,6 +234,8 @@ Ext.define('SlateAdmin.controller.progress.Interims', {
student.set('report', report, { dirty: false });
}

me.fireEvent('beforereportload', report);

editorForm.enable();
editorForm.setScrollY(0, true);
editorForm.loadRecord(report);
Expand Down Expand Up @@ -368,7 +370,7 @@ Ext.define('SlateAdmin.controller.progress.Interims', {
sectionsStore = me.getProgressInterimsSectionsStore(),
sectionsProxy = sectionsStore.getProxy(),
managerCt = me.getManagerCt(),
myClassesToggleBtn = me.getMyClassesToggleBtn(),
myClassesOnlyCheckbox = me.getMyClassesOnlyCheckbox(),
termSelector = me.getTermSelector(),
termsStore = termSelector.getStore(),
term = termSelector.getValue();
Expand Down Expand Up @@ -399,7 +401,7 @@ Ext.define('SlateAdmin.controller.progress.Interims', {
return; // setting the term will call this function again via the change event
}

sectionsProxy.setExtraParam('enrolled_user', myClassesToggleBtn.pressed ? 'current' : '');
sectionsProxy.setExtraParam('enrolled_user', myClassesOnlyCheckbox.getValue() ? 'current' : '');
sectionsProxy.setExtraParam('term', term);
sectionsStore.loadIfDirty();
},
Expand Down
16 changes: 8 additions & 8 deletions sencha-workspace/SlateAdmin/app/view/progress/NavPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Ext.define('SlateAdmin.view.progress.NavPanel', {
text: 'Section Interim Reports',
href: '#progress/interims',
children: [
{
text: 'Search & Print',
href: '#progress/interims/print'
}
// {
// text: 'Search & Print',
// href: '#progress/interims/print'
// }
// {
// text: 'Email',
// href: '#progress/interims/email'
Expand All @@ -30,10 +30,10 @@ Ext.define('SlateAdmin.view.progress.NavPanel', {
text: 'Section Term Reports',
href: '#progress/narratives',
children: [
{
text: 'Search & Print',
href: '#progress/narratives/print'
}
// {
// text: 'Search & Print',
// href: '#progress/narratives/print'
// }
// {
// text: 'Email',
// href: '#progress/narratives/email'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,45 @@ Ext.define('SlateAdmin.view.progress.interims.SectionsGrid', {
requires: [
'Ext.grid.column.Template',
'Ext.toolbar.Spacer',
'Ext.button.Button'
'Ext.form.field.ComboBox',
'Ext.form.field.Checkbox'
],


width: 250,
store: 'progress.interims.Sections',
componentCls: 'progress-interims-grid',
tbar: [
dockedItems: [
{
xtype: 'button',
text: 'My classes only',
action: 'myClassesToggle',
enableToggle: true
},
{
xtype: 'tbspacer'
dock: 'top',

xtype: 'toolbar',
items: [
{
itemId: 'termSelector',
flex: 1,

xtype: 'combobox',

queryMode: 'local',
store: 'Terms',
valueField: 'Handle',
displayField: 'Title',
forceSelection: true
}
]
},
{
itemId: 'termSelector',
flex: 1,

xtype: 'combobox',
dock: 'top',

queryMode: 'local',
store: 'Terms',
valueField: 'Handle',
displayField: 'Title',
forceSelection: true
xtype: 'toolbar',
items: [
{
xtype: 'checkboxfield',
boxLabel: 'Show only my classes',
name: 'myClassesOnly'
}
]
}
],
columns: [{
Expand Down

0 comments on commit cdad592

Please sign in to comment.