Skip to content

Commit a431ff2

Browse files
committed
Merge branch 'master' of https://github.com/ilios/ilios
2 parents 87ef216 + e1b3b19 commit a431ff2

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install:
2020

2121
before_script:
2222
# Set up Sauce Connect if we have a Sauce username set
23-
- if [ "$SAUCE_USERNAME" ] ; then (curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash); fi
23+
- if [ "$SAUCE_USERNAME" ] ; then (curl -L https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash); fi
2424

2525
# Provision web server for Behat tests
2626
- "sudo apt-get install -y --force-yes mysql-server apache2 libapache2-mod-php5 php5-mysql php5-ldap sendmail expect > /dev/null"

web/application/controllers/curriculum_inventory_manager.php

-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public function __construct ()
6969
public function index ()
7070
{
7171
$data = array();
72-
$data['institution_name'] = $this->config->item('ilios_institution_name');
7372
$data['user_id'] = $this->session->userdata('uid');
7473

7574
// authorization check
@@ -148,7 +147,6 @@ public function create ()
148147
$rhett = array();
149148

150149
$data = array();
151-
$data['institution_name'] = $this->config->item('ilios_institution_name');
152150
$data['user_id'] = $this->session->userdata('uid');
153151

154152
// authorization check
@@ -292,7 +290,6 @@ public function update ()
292290
public function export ()
293291
{
294292
$data = array();
295-
$data['institution_name'] = $this->config->item('ilios_institution_name');
296293
$data['user_id'] = $this->session->userdata('uid');
297294

298295
// authorization check
@@ -398,7 +395,6 @@ public function delete ()
398395
public function download ()
399396
{
400397
$data = array();
401-
$data['institution_name'] = $this->config->item('ilios_institution_name');
402398
$data['user_id'] = $this->session->userdata('uid');
403399

404400
// authorization check

web/application/language/ilios_strings_en_US.properties

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ general.phrases.add_user=Add User
6363
general.phrases.advanced_search=Advanced Search
6464
general.phrases.associated_courses=Associated Courses
6565
general.phrases.associated_learners=Associated Student Groups
66+
general.phrases.available_cohorts=Available Cohorts
67+
general.phrases.available_items=Available items
6668
general.phrases.choose_date=Choose a date
6769
general.phrases.class_title_prefix=Class of
6870
general.phrases.clear_dates=Clear Dates
@@ -147,6 +149,7 @@ general.phrases.select_cohort=Select Cohort
147149
general.phrases.select_items=Please select items
148150
general.phrases.select_one=Please select one
149151
general.phrases.select_school=Select School to View
152+
general.phrases.selected_cohorts=Selected Cohorts
150153
general.phrases.selected_items=Selected items
151154
general.phrases.show_course_summary=Show Course Summary
152155
general.phrases.show_less=Show Less

web/application/language/ilios_strings_xx.properties

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ general.phrases.add_user=X$X$X$X$
6363
general.phrases.advanced_search=X$X$X$X$
6464
general.phrases.associated_courses=X$X$X$X$
6565
general.phrases.associated_learners=X$X$X$X$
66+
general.phrases.available_cohorts=X$X$X$X$
67+
general.phrases.available_items=X$X$X$X$
6668
general.phrases.choose_date=X$X$X$X$
6769
general.phrases.class_title_prefix=X$X$X$X$
6870
general.phrases.clear_dates=X$X$X$X$
@@ -147,6 +149,7 @@ general.phrases.select_cohort=X$X$X$X$
147149
general.phrases.select_items=X$X$X$X$
148150
general.phrases.select_one=X$X$X$X$
149151
general.phrases.select_school=X$X$X$X$
152+
general.phrases.selected_cohorts=X$X$X$X$
150153
general.phrases.selected_items=X$X$X$X$
151154
general.phrases.show_course_summary=X$X$X$X$
152155
general.phrases.show_less=X$X$X$X$

web/application/views/course/course_manager.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@
160160
window.inform = ilios.alert.inform;
161161
});
162162

163-
var tmpStr = '<?php echo $institution_name; ?> ' + ilios_i18nVendor.getI18NString('general.terms.programs');
164163
var sessionTypeModel = null;
165164

166165
<?php
@@ -177,10 +176,11 @@
177176
hide_autocomplete_input : 'value matters not',
178177
submit_override : ilios.cm.handleProgramCohortDialogSubmit,
179178
widget_dom_generator : ilios.ui.programCohortDialogTreeDOMGenerator,
180-
tab_title : ilios_i18nVendor.getI18NString('general.phrases.select_cohort'),
179+
tab_title : ilios_i18nVendor.getI18NString('general.phrases.available_cohorts'),
181180
id_uniquer : 'scde_',
182-
panel_title_text : tmpStr,
183181
dom_root : 'cohort_pick_dialog',
182+
title: ilios_i18nVendor.getI18NString('course_management.select_cohorts'),
183+
selected_items_title: ilios_i18nVendor.getI18NString('general.phrases.selected_cohorts'),
184184
deselect_handler : ilios.cm.handleProgramCohortDialogDeselection,
185185
max_displayed_results: 250,
186186
panel_width: '700px'

web/application/views/group/group_manager.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@
100100
window.inform = ilios.alert.inform;
101101
});
102102

103-
var tmpStr = '<?php echo $institution_name; ?> '
104-
+ ilios_i18nVendor.getI18NString('general.terms.programs')
105-
+ ' - '
106-
+ ilios_i18nVendor.getI18NString('general.phrases.school_of')
107-
+ ' <?php echo $school_name; ?>';
108-
109103
ilios.preferences.installPreferencesModel();
110104

111105
YAHOO.util.Event.onDOMReady(ilios.dom.generateGenericDialogMarkupAndWireContent, {
@@ -130,9 +124,9 @@
130124
trigger : 'find_cohort_and_program',
131125
display_handler : ilios.ui.handleProgramCohortSelectionDialogDisplay,
132126
widget_dom_generator : ilios.ui.programCohortDialogTreeDOMGenerator,
133-
tab_title : ilios_i18nVendor.getI18NString('general.phrases.select_cohort'),
127+
tab_title : ilios_i18nVendor.getI18NString('general.phrases.available_cohorts'),
134128
id_uniquer : 'dme_',
135-
panel_title_text : tmpStr,
129+
title: ilios_i18nVendor.getI18NString('groups.select_program'),
136130
dom_root : 'cohort_pick_dialog'
137131
});
138132

web/application/views/scripts/ilios_dom.js

+17-13
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ ilios.dom.generateAutoCompleteDialogMarkup = function (args) {
329329
* whose id is provided; the elements represent the UI
330330
* single-selection widget
331331
* hide_autocomplete_input: if non-null, then the autocomplete input will be hidden
332-
* tab_title: the title for the tab containing the selection widget;
333-
* panel_title_text: the header title text for the panel (not to be
334-
* confused with the title bar text which will
335-
* be "Please select items")
332+
* tab_title: the title for the tab containing the selection widget (optional, defaults to "Available items")
333+
* selected_items_title: the title for the selected items list (optional, defaults to "Selected items")
334+
* title: the widget title (optional, defaults to "Please select items")
335+
* panel_title_text: the header title text for the panel (optional, not displayed when not given)
336336
* dom_root: the id of the DOM element into which this markup should
337337
* be inserted
338338
* panel_width: if this is non-null, it is expected to a valid CSS
@@ -374,17 +374,20 @@ ilios.dom.generateGenericDialogMarkupAndWireContent = function (use, less, args)
374374
var autoCompleteTextFieldId = args['id_uniquer'] + '_auto_comp_input';
375375
var selectedItemListElement = args['id_uniquer'] + '_selected_item_list';
376376
var autoCompleter = null;
377-
var aStr = ilios_i18nVendor.getI18NString('general.phrases.select_items');
377+
var aStr = args['title'] || ilios_i18nVendor.getI18NString('general.phrases.select_items');
378378
var noAutoCompleter = (args['remote_data'] == null);
379379
var showAutoCompleteInput = (args['hide_autocomplete_input'] == null);
380+
var panelTitle = args['panel_title_text'] || '';
380381

381382
contents += '<div class="visuallyhidden" id="' + autoCompleteHiddenContainerId + '"></div>\n';
382383

383384
contents += '<div class="hd">' + aStr + '</div>\n';
384385
contents += '<div class="bd">\n';
385386
contents += '<div class="dialog_wrap">';
386387

387-
contents += '<p>' + args['panel_title_text'] + '</p>';
388+
if (panelTitle) {
389+
contents += '<p>' + panelTitle + '</p>';
390+
}
388391

389392
if (args['indeterminate_loading_id'] != null) {
390393
contents += '<div id="' + args['indeterminate_loading_id']
@@ -396,7 +399,7 @@ ilios.dom.generateGenericDialogMarkupAndWireContent = function (use, less, args)
396399

397400
contents += '<div class="dialog_left">';
398401

399-
aStr = ilios_i18nVendor.getI18NString('general.phrases.selected_items');
402+
aStr = args['selected_items_title'] || ilios_i18nVendor.getI18NString('general.phrases.selected_items');
400403
contents += '<label class="picked_label" for="' + selectedItemListElement + '">';
401404
contents += aStr;
402405
contents += '</label>';
@@ -966,9 +969,8 @@ ilios.dom.generateTreeSelectionDialogMarkupAndWireContent = function (use, less,
966969
* whose id is provided; the elements represent the UI
967970
* single-selection widget
968971
* tab_title: the title for the tab containing the selection widget
969-
* panel_title_text: the header title text for the panel (not to be
970-
* confused with the title bar text which will
971-
* be "Please select items")
972+
* title: the widget title (optional, defaults to "Please select items")
973+
* panel_title_text: the header title text for the panel (optional, not displayed when not given)
972974
* dom_root: the id of the DOM element into which this markup should
973975
* be inserted
974976
* panel_width: if this is non-null, it is expected to a valid CSS
@@ -993,13 +995,15 @@ ilios.dom.generateSelectAndCloseDialogMarkupAndWireContent = function (use, less
993995
var panelWidth = (args['panel_width'] != null) ? args['panel_width'] : "600px";
994996
var dialog = null;
995997
var displayOnTriggerHandler = null;
996-
var i18nStr = ilios_i18nVendor.getI18NString('general.phrases.select_items');
998+
var i18nStr = args['title'] || ilios_i18nVendor.getI18NString('general.phrases.select_items');
999+
var panelTitleText = args['panel_title_text'] || '';
9971000

9981001
contents += '<div class="hd">' + i18nStr + '</div>\n';
9991002
contents += '<div class="bd">\n';
10001003

1001-
contents += '<p>' + args['panel_title_text'] + '</p>';
1002-
1004+
if (panelTitleText) {
1005+
contents += '<p>' + panelTitleText + '</p>';
1006+
}
10031007

10041008
// YUI -- IF THERE'S NO FORM INSIDE A DIALOG DOM, IT REVEALS A YUI BUG
10051009
contents += '<form method="POST" action="matters not at all">\n';

0 commit comments

Comments
 (0)