This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @jsx React.DOM | |
*/ | |
var React = require('react'); | |
var Lookup = require('./lookup.jsx'); | |
var CourseLookup = React.createClass({ | |
getInitialState: function () { | |
return { | |
// this could be expanded out to include any config necessary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const React = require('react') | |
const {ElementQueryMixin} = require('../helpers/element-query') | |
require('./card.styl') | |
module.exports = { | |
title: 'Element Queries', | |
component: React.createClass({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render():ReactElement { | |
var cid = this.getParams().cid | |
var config = this.config() | |
this.saveCourse(this.course().value) // We shouldn't do this on render. It also saves on window resize. | |
return ( | |
<Layout cursor={this.cursor()} config={config} mode={EDIT}> | |
<EditOptions cid={cid}/> | |
</Layout> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package train; | |
import java.awt.Color; | |
import javax.persistence.AttributeConverter; | |
import javax.persistence.Converter; | |
@Converter | |
public class ColorConverter implements AttributeConverter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react/addons') | |
var Router = require('react-router') | |
var TestUtils = React.addons.TestUtils | |
var state = require('../../state') | |
var routes = require('../../routes') | |
var getIntlData = require('../../../../client/app/i18n/data') | |
var GroupsUsers = require('../../authed') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void setDepartmentInventoryResults(ClassDescriptionAdminInfo rv, ClassDescriptionAdminRequest request, AdminAcl acl) { | |
SisInstitution inst = request.getInstitution(); | |
String car = request.getCar(); | |
String strm = request.getStrm(); | |
String subj = request.getSubj(); | |
CatalogNumber catalogNumber = request.getCatalogNumber(); | |
Map<String, Object> pd = new HashMap<>(); | |
pd.put("inst", inst.name()); | |
pd.put("car", car); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public List<ClassDeptDescriptionSearchResult> searchDepartmentDescriptions( | |
String inst, String car, String strm, String subj, String catalogNumber, String subjectLetter) { | |
List<String> classCriteria = new ArrayList<String>(); | |
List<String> args = new ArrayList<String>(); | |
classCriteria.add("a.institution = :1"); | |
args.add(inst); | |
classCriteria.add("a.acad_career = :2"); | |
args.add(car); | |
String matchSubj = subj; |