This file contains hidden or 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
| import React, { Component } from 'react' | |
| import PropTypes from 'prop-types' | |
| class FullArea extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.state = { | |
| width: 0, | |
| height: 0, |
This file contains hidden or 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
| import classNames from 'classnames' | |
| import PropTypes from 'prop-types' | |
| import React, { Component } from 'react' | |
| import withStyles from '@material-ui/core/styles/withStyles' | |
| import CircularProgress from '@material-ui/core/CircularProgress' | |
| import FullArea from 'components/FullArea' | |
| import GridContainer from 'components/Grid/GridContainer' | |
| import GridItem from 'components/Grid/GridItem' |
This file contains hidden or 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
| from app.models import Manifest, ManifestFileRecord | |
| from django_datatables_view.base_datatable_view import BaseDatatableView | |
| logger = logging.getLogger(__name__) | |
| class ManifestDatatableView(BaseDatatableView): | |
| model = Manifest | |
| columns = ['id', 'name', 'created', 'updated', 'tags', 'automan_params'] |
This file contains hidden or 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
| {% block view_scripts %} | |
| <script type="text/javascript"> | |
| var MANIFEST_TABLE_URL = '{{ reverse('manifests:manifest-files-table', kwargs={'manifest_id': object.manifest.id if object.manifest else 'none'}) }}'; | |
| </script> | |
| <script> | |
| var table2 = $('#manifestfilestable').DataTable({ | |
| language: dt_language, // global variable defined in html |
This file contains hidden or 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
| from django.db.models import CharField, Model, OneToOneField, AutoField, EmailField | |
| class User(Model): | |
| id = AutoField(primary_key=True) # The default Id field from django | |
| username = CharField(max_length=30) | |
| profile = OneToOneField(Profile, primary_key=True, related_name='user') | |
| class Profile(Model): |
NewerOlder