added skeleton for infoscreen app
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class InfoscreenConfig(AppConfig):
|
||||
name = 'infoscreen'
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -0,0 +1,2 @@
|
||||
<iframe scrolling='no' style='margin:0;padding:0;border:none;border-radius:15px;overflow:hidden;width:1920px;height:1080px' src='https://hsl.trapeze.fi/omatpysakit/web?command=embedded&c=20&o=1&t=s&id=2222235'></iframe>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -0,0 +1,3 @@
|
||||
app.controller('templateDefault', function($scope){
|
||||
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
var app = angular.module('infoscreen', ['ngRoute']);
|
||||
|
||||
app.config(['$routeProvider', function($routeProvider){
|
||||
$routeProvider
|
||||
.when('/',{
|
||||
templateUrl:"/static/html/templatedefault.html",
|
||||
controller:'templateDefault',
|
||||
})
|
||||
.otherwise({
|
||||
'redirectTo':"/"
|
||||
})
|
||||
}]);
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html ng-app="infoscreen">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Infoscreen</title>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular-route.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"></link>
|
||||
<script src="/static/js/routes.js"></script>
|
||||
<script src="/static/js/controllers.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="jumbotron" ng-view>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@@ -0,0 +1,4 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
def index(request , *args, **kwargs):
|
||||
return render(request, 'infoscreen_index.html',{})
|
||||
@@ -39,6 +39,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.staticfiles',
|
||||
'webapp',
|
||||
'members',
|
||||
'infoscreen',
|
||||
]
|
||||
|
||||
MIDDLEWARE_CLASSES = [
|
||||
|
||||
Reference in New Issue
Block a user