@@ -1,161 +1,161 | |||
|
1 | 1 | # Django settings for abs_webapp_dev project. No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | import os, sys No newline at end of file |
|
4 | 4 | PROJECT_DIR = os.path.split(os.path.dirname(__file__))[0] No newline at end of file |
|
5 | 5 | API_DIR = "/home/dev/workspace/absclient" No newline at end of file |
|
6 | 6 | sys.path.append(API_DIR) No newline at end of file |
|
7 | 7 | No newline at end of file |
|
8 | 8 | DEBUG = True No newline at end of file |
|
9 | 9 | TEMPLATE_DEBUG = DEBUG No newline at end of file |
|
10 | 10 | No newline at end of file |
|
11 | 11 | ADMINS = ( No newline at end of file |
|
12 | 12 | # ('Your Name', 'your_email@example.com'), No newline at end of file |
|
13 | 13 | ) No newline at end of file |
|
14 | 14 | No newline at end of file |
|
15 | 15 | MANAGERS = ADMINS No newline at end of file |
|
16 | 16 | No newline at end of file |
|
17 | 17 | DATABASES = { No newline at end of file |
|
18 | 18 | 'default': { No newline at end of file |
|
19 | 19 | 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. No newline at end of file |
|
20 | 20 | 'NAME': 'db_jrowebapp_dev', # Or path to database file if using sqlite3. No newline at end of file |
|
21 | 21 | 'USER': 'abscontrol', # Not used with sqlite3. No newline at end of file |
|
22 | 22 | 'PASSWORD': 'abscontrol', # Not used with sqlite3. No newline at end of file |
|
23 | 23 | 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. No newline at end of file |
|
24 | 24 | 'PORT': '3306', # Set to empty string for default. Not used with sqlite3. No newline at end of file |
|
25 | 25 | } No newline at end of file |
|
26 | 26 | } No newline at end of file |
|
27 | 27 | No newline at end of file |
|
28 | 28 | # Local time zone for this installation. Choices can be found here: No newline at end of file |
|
29 | 29 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name No newline at end of file |
|
30 | 30 | # although not all choices may be available on all operating systems. No newline at end of file |
|
31 | 31 | # In a Windows environment this must be set to your system time zone. No newline at end of file |
|
32 | 32 | TIME_ZONE = 'America/Lima' No newline at end of file |
|
33 | 33 | No newline at end of file |
|
34 | 34 | # Language code for this installation. All choices can be found here: No newline at end of file |
|
35 | 35 | # http://www.i18nguy.com/unicode/language-identifiers.html No newline at end of file |
|
36 | 36 | LANGUAGE_CODE = 'en-us' No newline at end of file |
|
37 | 37 | No newline at end of file |
|
38 | 38 | SITE_ID = 1 No newline at end of file |
|
39 | 39 | No newline at end of file |
|
40 | 40 | # If you set this to False, Django will make some optimizations so as not No newline at end of file |
|
41 | 41 | # to load the internationalization machinery. No newline at end of file |
|
42 | 42 | USE_I18N = True No newline at end of file |
|
43 | 43 | No newline at end of file |
|
44 | 44 | # If you set this to False, Django will not format dates, numbers and No newline at end of file |
|
45 | 45 | # calendars according to the current locale. No newline at end of file |
|
46 | 46 | USE_L10N = True No newline at end of file |
|
47 | 47 | No newline at end of file |
|
48 | 48 | # If you set this to False, Django will not use timezone-aware datetimes. No newline at end of file |
|
49 | 49 | USE_TZ = True No newline at end of file |
|
50 | 50 | No newline at end of file |
|
51 | 51 | # Absolute filesystem path to the directory that will hold user-uploaded files. No newline at end of file |
|
52 | 52 | # Example: "/home/media/media.lawrence.com/media/" No newline at end of file |
|
53 | 53 | MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media').replace('\\', '/') No newline at end of file |
|
54 | 54 | No newline at end of file |
|
55 | 55 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a No newline at end of file |
|
56 | 56 | # trailing slash. No newline at end of file |
|
57 | 57 | # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" No newline at end of file |
|
58 | 58 | MEDIA_URL = '/media/' No newline at end of file |
|
59 | 59 | No newline at end of file |
|
60 | 60 | # Absolute path to the directory static files should be collected to. No newline at end of file |
|
61 | 61 | # Don't put anything in this directory yourself; store your static files No newline at end of file |
|
62 | 62 | # in apps' "static/" subdirectories and in STATICFILES_DIRS. No newline at end of file |
|
63 | 63 | # Example: "/home/media/media.lawrence.com/static/" No newline at end of file |
|
64 | 64 | #STATIC_ROOT = os.path.join(PROJECT_DIR, 'static-serve').replace('\\', '/'), No newline at end of file |
|
65 | 65 | STATIC_ROOT = '' No newline at end of file |
|
66 | 66 | No newline at end of file |
|
67 | 67 | # URL prefix for static files. No newline at end of file |
|
68 | 68 | # Example: "http://media.lawrence.com/static/" No newline at end of file |
|
69 | 69 | STATIC_URL = '/static/' No newline at end of file |
|
70 | 70 | No newline at end of file |
|
71 | 71 | # Additional locations of static files No newline at end of file |
|
72 | 72 | STATICFILES_DIRS = ( No newline at end of file |
|
73 | 73 | # Put strings here, like "/home/html/static" or "C:/www/django/static". No newline at end of file |
|
74 | 74 | # Always use forward slashes, even on Windows. No newline at end of file |
|
75 | 75 | # Don't forget to use absolute paths, not relative paths. No newline at end of file |
|
76 | 76 | #os.path.join(PROJECT_DIR, "static").replace('\\', '/'), No newline at end of file |
|
77 | 77 | ("static", os.path.join(PROJECT_DIR, "static").replace('\\', '/')), No newline at end of file |
|
78 | 78 | ) No newline at end of file |
|
79 | 79 | No newline at end of file |
|
80 | 80 | # List of finder classes that know how to find static files in No newline at end of file |
|
81 | 81 | # various locations. No newline at end of file |
|
82 | 82 | STATICFILES_FINDERS = ( No newline at end of file |
|
83 | 83 | 'django.contrib.staticfiles.finders.FileSystemFinder', No newline at end of file |
|
84 | 84 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder', No newline at end of file |
|
85 | 85 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder', No newline at end of file |
|
86 | 86 | ) No newline at end of file |
|
87 | 87 | No newline at end of file |
|
88 | 88 | # Make this unique, and don't share it with anybody. No newline at end of file |
|
89 | 89 | SECRET_KEY = '=^abu)gd=)7hf#rme_vw=tv!bdh7+tts*^&)h(n=7@7(9#__@e' No newline at end of file |
|
90 | 90 | No newline at end of file |
|
91 | 91 | # List of callables that know how to import templates from various sources. No newline at end of file |
|
92 | 92 | TEMPLATE_LOADERS = ( No newline at end of file |
|
93 | 93 | 'django.template.loaders.filesystem.Loader', No newline at end of file |
|
94 | 94 | 'django.template.loaders.app_directories.Loader', No newline at end of file |
|
95 | 95 | # 'django.template.loaders.eggs.Loader', No newline at end of file |
|
96 | 96 | ) No newline at end of file |
|
97 | 97 | No newline at end of file |
|
98 | 98 | MIDDLEWARE_CLASSES = ( No newline at end of file |
|
99 | 99 | 'django.middleware.common.CommonMiddleware', No newline at end of file |
|
100 | 100 | 'django.contrib.sessions.middleware.SessionMiddleware', |
|
101 | No newline at end of file | |
|
101 | #'django.middleware.csrf.CsrfViewMiddleware', No newline at end of file | |
|
102 | 102 | 'django.contrib.auth.middleware.AuthenticationMiddleware', No newline at end of file |
|
103 | 103 | 'django.contrib.messages.middleware.MessageMiddleware', No newline at end of file |
|
104 | 104 | # Uncomment the next line for simple clickjacking protection: No newline at end of file |
|
105 | 105 | # 'django.middleware.clickjacking.XFrameOptionsMiddleware', No newline at end of file |
|
106 | 106 | ) No newline at end of file |
|
107 | 107 | No newline at end of file |
|
108 | 108 | ROOT_URLCONF = 'abs_webapp_dev.urls' No newline at end of file |
|
109 | 109 | No newline at end of file |
|
110 | 110 | # Python dotted path to the WSGI application used by Django's runserver. No newline at end of file |
|
111 | 111 | WSGI_APPLICATION = 'abs_webapp_dev.wsgi.application' No newline at end of file |
|
112 | 112 | No newline at end of file |
|
113 | 113 | TEMPLATE_DIRS = ( No newline at end of file |
|
114 | 114 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". No newline at end of file |
|
115 | 115 | # Always use forward slashes, even on Windows. No newline at end of file |
|
116 | 116 | # Don't forget to use absolute paths, not relative paths. No newline at end of file |
|
117 | 117 | os.path.join(PROJECT_DIR, "templates").replace('\\', '/'), No newline at end of file |
|
118 | 118 | ) No newline at end of file |
|
119 | 119 | No newline at end of file |
|
120 | 120 | INSTALLED_APPS = ( No newline at end of file |
|
121 | 121 | 'django.contrib.auth', No newline at end of file |
|
122 | 122 | 'django.contrib.contenttypes', No newline at end of file |
|
123 | 123 | 'django.contrib.sessions', No newline at end of file |
|
124 | 124 | 'django.contrib.sites', No newline at end of file |
|
125 | 125 | 'django.contrib.messages', No newline at end of file |
|
126 | 126 | 'django.contrib.staticfiles', No newline at end of file |
|
127 | 127 | # Uncomment the next line to enable the admin: No newline at end of file |
|
128 | 128 | 'django.contrib.admin', No newline at end of file |
|
129 | 129 | # Uncomment the next line to enable admin documentation: No newline at end of file |
|
130 | 130 | # 'django.contrib.admindocs', No newline at end of file |
|
131 | 131 | 'abscontrol', No newline at end of file |
|
132 | 132 | ) No newline at end of file |
|
133 | 133 | No newline at end of file |
|
134 | 134 | # A sample logging configuration. The only tangible logging No newline at end of file |
|
135 | 135 | # performed by this configuration is to send an email to No newline at end of file |
|
136 | 136 | # the site admins on every HTTP 500 error when DEBUG=False. No newline at end of file |
|
137 | 137 | # See http://docs.djangoproject.com/en/dev/topics/logging for No newline at end of file |
|
138 | 138 | # more details on how to customize your logging configuration. No newline at end of file |
|
139 | 139 | LOGGING = { No newline at end of file |
|
140 | 140 | 'version': 1, No newline at end of file |
|
141 | 141 | 'disable_existing_loggers': False, No newline at end of file |
|
142 | 142 | 'filters': { No newline at end of file |
|
143 | 143 | 'require_debug_false': { No newline at end of file |
|
144 | 144 | '()': 'django.utils.log.RequireDebugFalse' No newline at end of file |
|
145 | 145 | } No newline at end of file |
|
146 | 146 | }, No newline at end of file |
|
147 | 147 | 'handlers': { No newline at end of file |
|
148 | 148 | 'mail_admins': { No newline at end of file |
|
149 | 149 | 'level': 'ERROR', No newline at end of file |
|
150 | 150 | 'filters': ['require_debug_false'], No newline at end of file |
|
151 | 151 | 'class': 'django.utils.log.AdminEmailHandler' No newline at end of file |
|
152 | 152 | } No newline at end of file |
|
153 | 153 | }, No newline at end of file |
|
154 | 154 | 'loggers': { No newline at end of file |
|
155 | 155 | 'django.request': { No newline at end of file |
|
156 | 156 | 'handlers': ['mail_admins'], No newline at end of file |
|
157 | 157 | 'level': 'ERROR', No newline at end of file |
|
158 | 158 | 'propagate': True, No newline at end of file |
|
159 | 159 | }, No newline at end of file |
|
160 | 160 | } No newline at end of file |
|
161 | 161 | } No newline at end of file |
@@ -1,26 +1,27 | |||
|
1 | 1 | from django.conf.urls import patterns, include, url No newline at end of file |
|
2 | 2 | from django.conf import settings No newline at end of file |
|
3 | 3 | No newline at end of file |
|
4 | 4 | # Uncomment the next two lines to enable the admin: No newline at end of file |
|
5 | 5 | from django.contrib import admin No newline at end of file |
|
6 | 6 | admin.autodiscover() No newline at end of file |
|
7 | 7 | No newline at end of file |
|
8 | 8 | urlpatterns = patterns('', No newline at end of file |
|
9 | 9 | # Examples: No newline at end of file |
|
10 | 10 | # url(r'^$', 'abs_webapp_dev.views.home', name='home'), No newline at end of file |
|
11 | 11 | # url(r'^abs_webapp_dev/', include('abs_webapp_dev.foo.urls')), No newline at end of file |
|
12 | 12 | No newline at end of file |
|
13 | 13 | # Uncomment the admin/doc line below to enable admin documentation: No newline at end of file |
|
14 | 14 | # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), No newline at end of file |
|
15 | 15 | No newline at end of file |
|
16 | 16 | # Uncomment the next line to enable the admin: No newline at end of file |
|
17 | 17 | url(r'^admin/', include(admin.site.urls)), No newline at end of file |
|
18 | 18 | url(r'^abscontrol/', include('abscontrol.urls')), No newline at end of file |
|
19 | 19 | url(r'^accounts/login/$', 'django.contrib.auth.views.login'), No newline at end of file |
|
20 | url(r'^$', 'abscontrol.views.index'), No newline at end of file | |
|
20 | 21 | No newline at end of file |
|
21 | 22 | ) No newline at end of file |
|
22 | 23 | No newline at end of file |
|
23 | 24 | if settings.DEBUG: No newline at end of file |
|
24 | 25 | urlpatterns = patterns('', No newline at end of file |
|
25 | 26 | url(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), No newline at end of file |
|
26 | 27 | ) + urlpatterns No newline at end of file |
@@ -1,502 +1,504 | |||
|
1 | 1 | from django.shortcuts import render_to_response, redirect No newline at end of file |
|
2 | 2 | from django.http import HttpResponse No newline at end of file |
|
3 | 3 | from django.conf import settings No newline at end of file |
|
4 | 4 | from django.utils.encoding import smart_str No newline at end of file |
|
5 | 5 | from django.core.servers.basehttp import FileWrapper No newline at end of file |
|
6 | 6 | import mimetypes No newline at end of file |
|
7 | from django.contrib.auth.decorators import login_required No newline at end of file | |
|
7 | 8 | No newline at end of file |
|
8 | 9 | from datetime import datetime No newline at end of file |
|
9 | 10 | No newline at end of file |
|
10 | 11 | from abscontrol.models import Profile, Pattern, AntennaDown, AntennaUp No newline at end of file |
|
11 | 12 | No newline at end of file |
|
12 | 13 | from util.readABSFile import readABSFile No newline at end of file |
|
13 | 14 | from util.saveABSFile import saveABSFile No newline at end of file |
|
14 | 15 | from util.ABSData import ABSData No newline at end of file |
|
15 | 16 | from scripts.sendFile import sendFile No newline at end of file |
|
16 | 17 | No newline at end of file |
|
17 | 18 | txtAntenna = "[[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
18 | 19 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file |
|
19 | 20 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
20 | 21 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
21 | 22 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file |
|
22 | 23 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
23 | 24 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file |
|
24 | 25 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]]" No newline at end of file |
|
25 | 26 | No newline at end of file |
|
26 | 27 | txtTxUp = "[[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
27 | 28 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
28 | 29 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
29 | 30 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
30 | 31 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
31 | 32 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
32 | 33 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
33 | 34 | "[1,1,1,1,1,1,1,1]]" No newline at end of file |
|
34 | 35 | No newline at end of file |
|
35 | 36 | txtTxDown = "[[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
36 | 37 | "[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
37 | 38 | "[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
38 | 39 | "[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
39 | 40 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
40 | 41 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
41 | 42 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
42 | 43 | "[0,0,0,0,1,1,1,1]]" No newline at end of file |
|
43 | 44 | No newline at end of file |
|
44 | 45 | txtRxUp = "[[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
45 | 46 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
46 | 47 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
47 | 48 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
48 | 49 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
49 | 50 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
50 | 51 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
51 | 52 | "[1,1,1,1,1,1,1,1]]" No newline at end of file |
|
52 | 53 | No newline at end of file |
|
53 | 54 | txtRxDown = "[[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
54 | 55 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
55 | 56 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
56 | 57 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
57 | 58 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
58 | 59 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
59 | 60 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
60 | 61 | "[1,1,1,1,1,1,1,1]]" No newline at end of file |
|
61 | 62 | No newline at end of file |
|
62 | 63 | arrayTx = [["0","0","0","0","0","0","0","0"],\ No newline at end of file |
|
63 | 64 | ["0","0","0","0","0","0","0","0"],\ No newline at end of file |
|
64 | 65 | ["0","0","0","0","0","0","0","0"],\ No newline at end of file |
|
65 | 66 | ["0","0","0","0","0","0","0","0"],\ No newline at end of file |
|
66 | 67 | ["0","0","0","0","0","0","0","0"],\ No newline at end of file |
|
67 | 68 | ["0","0","0","0","0","0","0","0"],\ No newline at end of file |
|
68 | 69 | ["0","0","0","0","0","0","0","0"],\ No newline at end of file |
|
69 | 70 | ["0","0","0","0","0","0","0","0"]] No newline at end of file |
|
70 | 71 | No newline at end of file |
|
71 | 72 | arrayUes = ["0.533333","0.00000","1.06667","0.00000"] No newline at end of file |
|
72 | 73 | No newline at end of file |
|
74 | @login_required(login_url='/accounts/login/') No newline at end of file | |
|
73 | 75 | def index(request): No newline at end of file |
|
74 | 76 | #latest_poll_list = profileAntenna.objects.all().order_by('-pub_date')[:5] No newline at end of file |
|
75 | 77 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
76 | 78 | return render_to_response('abscontrol/index.html', {'profile_list': profile_list}) No newline at end of file |
|
77 | 79 | No newline at end of file |
|
78 | 80 | def new(request): No newline at end of file |
|
79 | 81 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
80 | 82 | txtProfile = datetime.now().strftime("%Y%m%d%H%M%S%f") No newline at end of file |
|
81 | 83 | newprofile = Profile(name=txtProfile) No newline at end of file |
|
82 | 84 | newprofile.save() No newline at end of file |
|
83 | 85 | No newline at end of file |
|
84 | 86 | lsPatterns = None No newline at end of file |
|
85 | 87 | No newline at end of file |
|
86 | 88 | return render_to_response('abscontrol/new.html', {'profile_list': profile_list, No newline at end of file |
|
87 | 89 | 'profile_name' : newprofile.name, No newline at end of file |
|
88 | 90 | 'profile_id' : newprofile.id, No newline at end of file |
|
89 | 91 | 'lsPatterns' : lsPatterns, No newline at end of file |
|
90 | 92 | 'range' : range(8), 'arrayUes' : arrayUes, No newline at end of file |
|
91 | 93 | }) No newline at end of file |
|
92 | 94 | No newline at end of file |
|
93 | 95 | def save(request): No newline at end of file |
|
94 | 96 | No newline at end of file |
|
95 | 97 | txtProfile = request.POST["txtProfile"] No newline at end of file |
|
96 | 98 | No newline at end of file |
|
97 | 99 | txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file |
|
98 | 100 | txtTxUp = request.POST["txtTxUp"] No newline at end of file |
|
99 | 101 | txtRxUp = request.POST["txtRxUp"] No newline at end of file |
|
100 | 102 | txtUesUp = request.POST["txtUesUp"] No newline at end of file |
|
101 | 103 | No newline at end of file |
|
102 | 104 | txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file |
|
103 | 105 | txtTxDown = request.POST["txtTxDown"] No newline at end of file |
|
104 | 106 | txtRxDown = request.POST["txtRxDown"] No newline at end of file |
|
105 | 107 | txtUesDown = request.POST["txtUesDown"] No newline at end of file |
|
106 | 108 | No newline at end of file |
|
107 | 109 | newprofile = Profile(name=txtProfile) No newline at end of file |
|
108 | 110 | newprofile.save() No newline at end of file |
|
109 | 111 | No newline at end of file |
|
110 | 112 | newpattern = newprofile.pattern_set.create(value=1) No newline at end of file |
|
111 | 113 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file |
|
112 | 114 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file |
|
113 | 115 | No newline at end of file |
|
114 | 116 | newurl = '/abscontrol/view/%d' % newprofile.id No newline at end of file |
|
115 | 117 | No newline at end of file |
|
116 | 118 | return redirect(newurl) No newline at end of file |
|
117 | 119 | No newline at end of file |
|
118 | 120 | # Update temporal experiment No newline at end of file |
|
119 | 121 | def upgrade(request, profile_id): No newline at end of file |
|
120 | 122 | txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file |
|
121 | 123 | txtTxUp = request.POST["txtTxUp"] No newline at end of file |
|
122 | 124 | txtRxUp = request.POST["txtRxUp"] No newline at end of file |
|
123 | 125 | txtUesUp = request.POST["txtUesUp"] No newline at end of file |
|
124 | 126 | No newline at end of file |
|
125 | 127 | txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file |
|
126 | 128 | txtTxDown = request.POST["txtTxDown"] No newline at end of file |
|
127 | 129 | txtRxDown = request.POST["txtRxDown"] No newline at end of file |
|
128 | 130 | txtUesDown = request.POST["txtUesDown"] No newline at end of file |
|
129 | 131 | No newline at end of file |
|
130 | 132 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
131 | 133 | newpattern = objProfile.pattern_set.create(value=1) No newline at end of file |
|
132 | 134 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file |
|
133 | 135 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file |
|
134 | 136 | No newline at end of file |
|
135 | 137 | newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id) No newline at end of file |
|
136 | 138 | return redirect(newurl) No newline at end of file |
|
137 | 139 | No newline at end of file |
|
138 | 140 | def update(request, profile_id): No newline at end of file |
|
139 | 141 | txtProfile = request.POST["txtProfile"] No newline at end of file |
|
140 | 142 | No newline at end of file |
|
141 | 143 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
142 | 144 | objProfile.name = txtProfile No newline at end of file |
|
143 | 145 | objProfile.state = 1 No newline at end of file |
|
144 | 146 | objProfile.save() No newline at end of file |
|
145 | 147 | No newline at end of file |
|
146 | 148 | newurl = '/abscontrol/view/%d' % objProfile.id No newline at end of file |
|
147 | 149 | return redirect(newurl) No newline at end of file |
|
148 | 150 | No newline at end of file |
|
149 | 151 | def changeName(request, profile_id): No newline at end of file |
|
150 | 152 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
151 | 153 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
152 | 154 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
153 | 155 | No newline at end of file |
|
154 | 156 | return render_to_response('abscontrol/changeName.html', {'profile_list': profile_list, No newline at end of file |
|
155 | 157 | 'objProfile': objProfile, No newline at end of file |
|
156 | 158 | 'lsPatterns' : lsPatterns, No newline at end of file |
|
157 | 159 | }) No newline at end of file |
|
158 | 160 | No newline at end of file |
|
159 | 161 | def view(request, profile_id): No newline at end of file |
|
160 | 162 | nextPattern = 0 No newline at end of file |
|
161 | 163 | No newline at end of file |
|
162 | 164 | if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file |
|
163 | 165 | pattern_value = request.GET["pattern"] No newline at end of file |
|
164 | 166 | else: No newline at end of file |
|
165 | 167 | pattern_value = 1 No newline at end of file |
|
166 | 168 | No newline at end of file |
|
167 | 169 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
168 | 170 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
169 | 171 | No newline at end of file |
|
170 | 172 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
171 | 173 | patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file |
|
172 | 174 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
173 | 175 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
174 | 176 | No newline at end of file |
|
175 | 177 | if len(lsPatterns) > 1: No newline at end of file |
|
176 | 178 | if pattern_value == 1: No newline at end of file |
|
177 | 179 | nextValuePattern = pattern_value + 1 No newline at end of file |
|
178 | 180 | nextPattern = objProfile.pattern_set.get(value=nextValuePattern) No newline at end of file |
|
179 | 181 | No newline at end of file |
|
180 | 182 | No newline at end of file |
|
181 | 183 | return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
182 | 184 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
183 | 185 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
184 | 186 | 'nextPattern' : nextPattern, No newline at end of file |
|
185 | 187 | }) No newline at end of file |
|
186 | 188 | No newline at end of file |
|
187 | 189 | def edit(request, profile_id): No newline at end of file |
|
188 | 190 | if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file |
|
189 | 191 | pattern_value = request.GET["pattern"] No newline at end of file |
|
190 | 192 | else: No newline at end of file |
|
191 | 193 | pattern_value = 1 No newline at end of file |
|
192 | 194 | No newline at end of file |
|
193 | 195 | absData = ABSData() No newline at end of file |
|
194 | 196 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
195 | 197 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
196 | 198 | No newline at end of file |
|
197 | 199 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
198 | 200 | patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file |
|
199 | 201 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
200 | 202 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
201 | 203 | No newline at end of file |
|
202 | 204 | arrayAntennaUp = absData.convertStringtoList2(objAntennaUp.value) No newline at end of file |
|
203 | 205 | if objAntennaUp.tx != None: No newline at end of file |
|
204 | 206 | arrayTxUp = absData.convertStringtoList2(objAntennaUp.tx) No newline at end of file |
|
205 | 207 | else: No newline at end of file |
|
206 | 208 | arrayTxUp = arrayTx No newline at end of file |
|
207 | 209 | if objAntennaUp.rx != None: No newline at end of file |
|
208 | 210 | arrayRxUp = absData.convertStringtoList2(objAntennaUp.rx) No newline at end of file |
|
209 | 211 | else: No newline at end of file |
|
210 | 212 | arrayRxUp = arrayTx No newline at end of file |
|
211 | 213 | if objAntennaUp.ues != None: No newline at end of file |
|
212 | 214 | arrayUesUp = absData.convertStringtoList1(objAntennaUp.ues) No newline at end of file |
|
213 | 215 | else: No newline at end of file |
|
214 | 216 | arrayUesUp = arrayUes No newline at end of file |
|
215 | 217 | No newline at end of file |
|
216 | 218 | No newline at end of file |
|
217 | 219 | arrayAntennaDown = absData.convertStringtoList2(objAntennaDown.value) No newline at end of file |
|
218 | 220 | if objAntennaDown.tx != None: No newline at end of file |
|
219 | 221 | arrayTxDown = absData.convertStringtoList2(objAntennaDown.tx) No newline at end of file |
|
220 | 222 | else: No newline at end of file |
|
221 | 223 | arrayTxDown = arrayTx No newline at end of file |
|
222 | 224 | if objAntennaDown.rx != None: No newline at end of file |
|
223 | 225 | arrayRxDown = absData.convertStringtoList2(objAntennaDown.rx) No newline at end of file |
|
224 | 226 | else: No newline at end of file |
|
225 | 227 | arrayRxDown = arrayTx No newline at end of file |
|
226 | 228 | if objAntennaDown.ues != None: No newline at end of file |
|
227 | 229 | arrayUesDown = absData.convertStringtoList1(objAntennaDown.ues) No newline at end of file |
|
228 | 230 | else: No newline at end of file |
|
229 | 231 | arrayUesDown = arrayUes No newline at end of file |
|
230 | 232 | No newline at end of file |
|
231 | 233 | return render_to_response('abscontrol/edit.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
232 | 234 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
233 | 235 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
234 | 236 | 'arrayAntennaUp' : arrayAntennaUp, 'arrayTxUp' : arrayTxUp, No newline at end of file |
|
235 | 237 | 'arrayRxUp' : arrayRxUp, 'arrayRxDown' : arrayRxDown, No newline at end of file |
|
236 | 238 | 'arrayAntennaDown' : arrayAntennaDown, 'arrayTxDown' : arrayTxDown, No newline at end of file |
|
237 | 239 | 'arrayUesUp' : arrayUesUp, 'arrayUesDown' : arrayUesDown, No newline at end of file |
|
238 | 240 | }) No newline at end of file |
|
239 | 241 | No newline at end of file |
|
240 | 242 | def addPattern(request, profile_id): No newline at end of file |
|
241 | 243 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
242 | 244 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
243 | 245 | No newline at end of file |
|
244 | 246 | return render_to_response('abscontrol/addPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
245 | 247 | 'range' : range(8), 'arrayUes' : arrayUes, No newline at end of file |
|
246 | 248 | }) No newline at end of file |
|
247 | 249 | No newline at end of file |
|
248 | 250 | def editPattern(request, profile_id, pattern_id): No newline at end of file |
|
249 | 251 | absData = ABSData() No newline at end of file |
|
250 | 252 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
251 | 253 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
252 | 254 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
253 | 255 | patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file |
|
254 | 256 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
255 | 257 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
256 | 258 | No newline at end of file |
|
257 | 259 | arrayAntennaUp = absData.convertStringtoList2(objAntennaUp.value) No newline at end of file |
|
258 | 260 | if objAntennaUp.tx != None: No newline at end of file |
|
259 | 261 | arrayTxUp = absData.convertStringtoList2(objAntennaUp.tx) No newline at end of file |
|
260 | 262 | else: No newline at end of file |
|
261 | 263 | arrayTxUp = arrayTx No newline at end of file |
|
262 | 264 | if objAntennaUp.rx != None: No newline at end of file |
|
263 | 265 | arrayRxUp = absData.convertStringtoList2(objAntennaUp.rx) No newline at end of file |
|
264 | 266 | else: No newline at end of file |
|
265 | 267 | arrayRxUp = arrayTx No newline at end of file |
|
266 | 268 | if objAntennaUp.ues != None: No newline at end of file |
|
267 | 269 | arrayUesUp = absData.convertStringtoList1(objAntennaUp.ues) No newline at end of file |
|
268 | 270 | else: No newline at end of file |
|
269 | 271 | arrayUesUp = arrayUes No newline at end of file |
|
270 | 272 | No newline at end of file |
|
271 | 273 | No newline at end of file |
|
272 | 274 | arrayAntennaDown = absData.convertStringtoList2(objAntennaDown.value) No newline at end of file |
|
273 | 275 | if objAntennaDown.tx != None: No newline at end of file |
|
274 | 276 | arrayTxDown = absData.convertStringtoList2(objAntennaDown.tx) No newline at end of file |
|
275 | 277 | else: No newline at end of file |
|
276 | 278 | arrayTxDown = arrayTx No newline at end of file |
|
277 | 279 | if objAntennaDown.rx != None: No newline at end of file |
|
278 | 280 | arrayRxDown = absData.convertStringtoList2(objAntennaDown.rx) No newline at end of file |
|
279 | 281 | else: No newline at end of file |
|
280 | 282 | arrayRxDown = arrayTx No newline at end of file |
|
281 | 283 | if objAntennaDown.ues != None: No newline at end of file |
|
282 | 284 | arrayUesDown = absData.convertStringtoList1(objAntennaDown.ues) No newline at end of file |
|
283 | 285 | else: No newline at end of file |
|
284 | 286 | arrayUesDown = arrayUes No newline at end of file |
|
285 | 287 | No newline at end of file |
|
286 | 288 | return render_to_response('abscontrol/editPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
287 | 289 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
288 | 290 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
289 | 291 | 'arrayAntennaUp' : arrayAntennaUp, 'arrayTxUp' : arrayTxUp, No newline at end of file |
|
290 | 292 | 'arrayRxUp' : arrayRxUp, 'arrayRxDown' : arrayRxDown, No newline at end of file |
|
291 | 293 | 'arrayAntennaDown' : arrayAntennaDown, 'arrayTxDown' : arrayTxDown, No newline at end of file |
|
292 | 294 | 'arrayUesUp' : arrayUesUp, 'arrayUesDown' : arrayUesDown, No newline at end of file |
|
293 | 295 | }) No newline at end of file |
|
294 | 296 | No newline at end of file |
|
295 | 297 | def savePattern(request, profile_id): No newline at end of file |
|
296 | 298 | pattern_id = 0 No newline at end of file |
|
297 | 299 | method = "save" No newline at end of file |
|
298 | 300 | No newline at end of file |
|
299 | 301 | if 'pattern_id' in request.POST: No newline at end of file |
|
300 | 302 | pattern_id = request.POST["pattern_id"] No newline at end of file |
|
301 | 303 | method = "update" No newline at end of file |
|
302 | 304 | No newline at end of file |
|
303 | 305 | maxValuePattern = 0 No newline at end of file |
|
304 | 306 | txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file |
|
305 | 307 | txtTxUp = request.POST["txtTxUp"] No newline at end of file |
|
306 | 308 | txtRxUp = request.POST["txtRxUp"] No newline at end of file |
|
307 | 309 | txtUesUp = request.POST["txtUesUp"] No newline at end of file |
|
308 | 310 | No newline at end of file |
|
309 | 311 | txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file |
|
310 | 312 | txtTxDown = request.POST["txtTxDown"] No newline at end of file |
|
311 | 313 | txtRxDown = request.POST["txtRxDown"] No newline at end of file |
|
312 | 314 | txtUesDown = request.POST["txtUesDown"] No newline at end of file |
|
313 | 315 | No newline at end of file |
|
314 | 316 | mode = request.POST["mode"] No newline at end of file |
|
315 | 317 | No newline at end of file |
|
316 | 318 | if method == "save": No newline at end of file |
|
317 | 319 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
318 | 320 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
319 | 321 | if len(lsPatterns) > 0: No newline at end of file |
|
320 | 322 | for element in lsPatterns: No newline at end of file |
|
321 | 323 | if element.value > maxValuePattern: No newline at end of file |
|
322 | 324 | maxPattern = element.value No newline at end of file |
|
323 | 325 | else: No newline at end of file |
|
324 | 326 | maxPattern = 0 No newline at end of file |
|
325 | 327 | No newline at end of file |
|
326 | 328 | if maxPattern < 10 : No newline at end of file |
|
327 | 329 | newValuePattern = maxPattern + 1 No newline at end of file |
|
328 | 330 | newpattern = objProfile.pattern_set.create(value=newValuePattern) No newline at end of file |
|
329 | 331 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file |
|
330 | 332 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file |
|
331 | 333 | error = 0 No newline at end of file |
|
332 | 334 | else: No newline at end of file |
|
333 | 335 | error = 1 # Can not add more patterns No newline at end of file |
|
334 | 336 | No newline at end of file |
|
335 | 337 | if mode == "e": No newline at end of file |
|
336 | 338 | newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id) No newline at end of file |
|
337 | 339 | else: No newline at end of file |
|
338 | 340 | newurl = '/abscontrol/%d/view/%d' % (int(profile_id), newpattern.id) No newline at end of file |
|
339 | 341 | else: No newline at end of file |
|
340 | 342 | txtAntennaUpId = request.POST["txtAntennaUpId"] No newline at end of file |
|
341 | 343 | objAntennaUp = AntennaUp.objects.get(pk=txtAntennaUpId) No newline at end of file |
|
342 | 344 | objAntennaUp.value = txtAntennaUp No newline at end of file |
|
343 | 345 | objAntennaUp.tx = txtTxUp No newline at end of file |
|
344 | 346 | objAntennaUp.rx = txtRxUp No newline at end of file |
|
345 | 347 | objAntennaUp.ues = txtUesUp No newline at end of file |
|
346 | 348 | objAntennaUp.save() No newline at end of file |
|
347 | 349 | No newline at end of file |
|
348 | 350 | txtAntennaDownId = request.POST["txtAntennaDownId"] No newline at end of file |
|
349 | 351 | objAntennaDown = AntennaDown.objects.get(pk=txtAntennaDownId) No newline at end of file |
|
350 | 352 | objAntennaDown.value = txtAntennaDown No newline at end of file |
|
351 | 353 | objAntennaDown.tx = txtTxDown No newline at end of file |
|
352 | 354 | objAntennaDown.rx = txtRxDown No newline at end of file |
|
353 | 355 | objAntennaDown.ues = txtUesDown No newline at end of file |
|
354 | 356 | objAntennaDown.save() No newline at end of file |
|
355 | 357 | No newline at end of file |
|
356 | 358 | if mode == "e": No newline at end of file |
|
357 | 359 | newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), int(pattern_id)) No newline at end of file |
|
358 | 360 | else: No newline at end of file |
|
359 | 361 | newurl = '/abscontrol/%d/view/%d' % (int(profile_id), int(pattern_id)) No newline at end of file |
|
360 | 362 | No newline at end of file |
|
361 | 363 | return redirect(newurl) No newline at end of file |
|
362 | 364 | No newline at end of file |
|
363 | 365 | def viewPattern(request, profile_id, pattern_id): No newline at end of file |
|
364 | 366 | No newline at end of file |
|
365 | 367 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
366 | 368 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
367 | 369 | No newline at end of file |
|
368 | 370 | patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file |
|
369 | 371 | No newline at end of file |
|
370 | 372 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
371 | 373 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
372 | 374 | No newline at end of file |
|
373 | 375 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
374 | 376 | No newline at end of file |
|
375 | 377 | return render_to_response('abscontrol/viewPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
376 | 378 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
377 | 379 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
378 | 380 | }) No newline at end of file |
|
379 | 381 | No newline at end of file |
|
380 | 382 | def deletePattern(request, profile_id, pattern_id): No newline at end of file |
|
381 | 383 | newurl = '/abscontrol/edit/%d' % int(profile_id) No newline at end of file |
|
382 | 384 | No newline at end of file |
|
383 | 385 | return redirect(newurl) No newline at end of file |
|
384 | 386 | No newline at end of file |
|
385 | 387 | def importProfile(request): No newline at end of file |
|
386 | 388 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
387 | 389 | return render_to_response('abscontrol/import.html', {'profile_list': profile_list,}) No newline at end of file |
|
388 | 390 | No newline at end of file |
|
389 | 391 | def upload(request): No newline at end of file |
|
390 | 392 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
391 | 393 | if request.method == 'POST': No newline at end of file |
|
392 | 394 | txtFilename = request.FILES['txtFile'] No newline at end of file |
|
393 | 395 | if txtFilename: No newline at end of file |
|
394 | 396 | destination = open('/tmp/'+txtFilename.name, 'wb+') No newline at end of file |
|
395 | 397 | for chunk in txtFilename.chunks(): No newline at end of file |
|
396 | 398 | destination.write(chunk) No newline at end of file |
|
397 | 399 | destination.close() No newline at end of file |
|
398 | 400 | filename = '/tmp/'+txtFilename.name No newline at end of file |
|
399 | 401 | readFile = readABSFile(filename) No newline at end of file |
|
400 | 402 | expName, num_patterns, patterns = readFile.getMetadata() No newline at end of file |
|
401 | 403 | No newline at end of file |
|
402 | 404 | if expName != "" and num_patterns > 0: No newline at end of file |
|
403 | 405 | newprofile = Profile(name=expName) No newline at end of file |
|
404 | 406 | newprofile.save() No newline at end of file |
|
405 | 407 | newprofile.state = 1 No newline at end of file |
|
406 | 408 | No newline at end of file |
|
407 | 409 | for element in patterns: No newline at end of file |
|
408 | 410 | newpattern = newprofile.pattern_set.create(value=element["number"]) No newline at end of file |
|
409 | 411 | newpattern.antennaup_set.create(value=element["up"]) No newline at end of file |
|
410 | 412 | newpattern.antennadown_set.create(value=element["down"]) No newline at end of file |
|
411 | 413 | No newline at end of file |
|
412 | 414 | newprofile.save() No newline at end of file |
|
413 | 415 | No newline at end of file |
|
414 | 416 | newurl = '/abscontrol/edit/%d' % int(newprofile.id) No newline at end of file |
|
415 | 417 | return redirect(newurl) No newline at end of file |
|
416 | 418 | else: No newline at end of file |
|
417 | 419 | txtError = "Experiment's name not found or the number of patterns is 0." No newline at end of file |
|
418 | 420 | return render_to_response('abscontrol/error.html', {'profile_list': profile_list, No newline at end of file |
|
419 | 421 | 'txtError' : txtError, }) No newline at end of file |
|
420 | 422 | else: No newline at end of file |
|
421 | 423 | txtError = "No file." No newline at end of file |
|
422 | 424 | No newline at end of file |
|
423 | 425 | return render_to_response('abscontrol/error.html', {'profile_list': profile_list, 'txtError' : txtError, }) No newline at end of file |
|
424 | 426 | No newline at end of file |
|
425 | 427 | def overJRO(request, profile_id, pattern_id, antenna_id): No newline at end of file |
|
426 | 428 | if request.GET["beam"] == "Up": No newline at end of file |
|
427 | 429 | objAntenna = AntennaUp.objects.get(pk=antenna_id) No newline at end of file |
|
428 | 430 | else: No newline at end of file |
|
429 | 431 | objAntenna = AntennaDown.objects.get(pk=antenna_id) No newline at end of file |
|
430 | 432 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
431 | 433 | exp_name = objProfile.name No newline at end of file |
|
432 | 434 | No newline at end of file |
|
433 | 435 | phase_tx = objAntenna.value No newline at end of file |
|
434 | 436 | gain_tx = objAntenna.tx No newline at end of file |
|
435 | 437 | gain_rx = objAntenna.rx No newline at end of file |
|
436 | 438 | ues_tx = objAntenna.ues No newline at end of file |
|
437 | 439 | only_rx = objAntenna.only_rx No newline at end of file |
|
438 | 440 | No newline at end of file |
|
439 | 441 | return exp_name, phase_tx, gain_tx, gain_rx, ues_tx, only_rx No newline at end of file |
|
440 | 442 | No newline at end of file |
|
441 | 443 | def export(request, profile_id): No newline at end of file |
|
442 | 444 | listPatterns = [] No newline at end of file |
|
443 | 445 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
444 | 446 | exp_name = objProfile.name No newline at end of file |
|
445 | 447 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
446 | 448 | for element in lsPatterns: No newline at end of file |
|
447 | 449 | objAntennaUp = element.antennaup_set.get() No newline at end of file |
|
448 | 450 | objAntennaDown = element.antennadown_set.get() No newline at end of file |
|
449 | 451 | dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file |
|
450 | 452 | listPatterns.append(dicPatterns) No newline at end of file |
|
451 | 453 | No newline at end of file |
|
452 | 454 | absFile = saveABSFile() No newline at end of file |
|
453 | 455 | absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file |
|
454 | 456 | filename, filesize = absFile.save() No newline at end of file |
|
455 | 457 | No newline at end of file |
|
456 | 458 | wrapper = FileWrapper( open( filename, "r" ) ) No newline at end of file |
|
457 | 459 | content_type = mimetypes.guess_type( filename )[0] No newline at end of file |
|
458 | 460 | No newline at end of file |
|
459 | 461 | response = HttpResponse(wrapper, content_type = content_type) No newline at end of file |
|
460 | 462 | response['Content-Description'] = 'File Transfer' No newline at end of file |
|
461 | 463 | response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(filename) No newline at end of file |
|
462 | 464 | response['Content-Transfer-Encoding'] = 'binary' No newline at end of file |
|
463 | 465 | response['Expires'] = '0' No newline at end of file |
|
464 | 466 | response['Cache-Control'] = 'must-revalidate' No newline at end of file |
|
465 | 467 | response['Pragma'] = 'public' No newline at end of file |
|
466 | 468 | response['Content-Length'] = '%s' % str(filesize) No newline at end of file |
|
467 | 469 | response['X-Sendfile'] = '%s' % smart_str(filename) No newline at end of file |
|
468 | 470 | No newline at end of file |
|
469 | 471 | return response No newline at end of file |
|
470 | 472 | No newline at end of file |
|
471 | 473 | def send(request, profile_id): No newline at end of file |
|
472 | 474 | listPatterns = [] No newline at end of file |
|
473 | 475 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
474 | 476 | exp_name = objProfile.name No newline at end of file |
|
475 | 477 | No newline at end of file |
|
476 | 478 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
477 | 479 | for element in lsPatterns: No newline at end of file |
|
478 | 480 | objAntennaUp = element.antennaup_set.get() No newline at end of file |
|
479 | 481 | objAntennaDown = element.antennadown_set.get() No newline at end of file |
|
480 | 482 | dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file |
|
481 | 483 | listPatterns.append(dicPatterns) No newline at end of file |
|
482 | 484 | No newline at end of file |
|
483 | 485 | absFile = saveABSFile() No newline at end of file |
|
484 | 486 | absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file |
|
485 | 487 | filename, filesize = absFile.save() No newline at end of file |
|
486 | 488 | No newline at end of file |
|
487 | 489 | apiclient = sendFile() No newline at end of file |
|
488 | 490 | apiclient.execute(filename) No newline at end of file |
|
489 | 491 | output = apiclient.getOutput() No newline at end of file |
|
490 | 492 | No newline at end of file |
|
491 | 493 | if output == "OK": No newline at end of file |
|
492 | 494 | message = "File sent successfully." No newline at end of file |
|
493 | 495 | objProfile.hits += 1 No newline at end of file |
|
494 | 496 | objProfile.save() No newline at end of file |
|
495 | 497 | else: No newline at end of file |
|
496 | 498 | message = "Error sending file." No newline at end of file |
|
497 | 499 | No newline at end of file |
|
498 | 500 | profile_list = Profile.objects.all() No newline at end of file |
|
499 | 501 | No newline at end of file |
|
500 | 502 | return render_to_response('abscontrol/sendFile.html', {'message': message, "profile_list" : profile_list, No newline at end of file |
|
501 | 503 | 'objProfile': objProfile, No newline at end of file |
|
502 | 504 | }) No newline at end of file |
@@ -1,577 +1,649 | |||
|
1 | 1 | /* No newline at end of file |
|
2 | 2 | * font-family: 'Droid Sans', sans-serif; No newline at end of file |
|
3 | 3 | * font-family: 'Ubuntu', sans-serif; No newline at end of file |
|
4 | 4 | * font-family: 'Open Sans', sans-serif; No newline at end of file |
|
5 | 5 | * font-family: 'Open Sans Condensed', sans-serif; No newline at end of file |
|
6 | 6 | * font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
7 | 7 | */ No newline at end of file |
|
8 | 8 | No newline at end of file |
|
9 | 9 | body { No newline at end of file |
|
10 | 10 | padding: 0; No newline at end of file |
|
11 | 11 | margin: 0; No newline at end of file |
|
12 | 12 | font-size: 12px; } No newline at end of file |
|
13 | 13 | No newline at end of file |
|
14 | 14 | header { No newline at end of file |
|
15 | 15 | width: 980px; No newline at end of file |
|
16 | 16 | height: 50px; No newline at end of file |
|
17 | 17 | text-align: center; No newline at end of file |
|
18 | 18 | line-height: 50px; No newline at end of file |
|
19 | 19 | border: 0px solid #fcc !important; } No newline at end of file |
|
20 | 20 | No newline at end of file |
|
21 | 21 | #schema { No newline at end of file |
|
22 | 22 | margin: 0 auto; No newline at end of file |
|
23 | 23 | width: 980px; No newline at end of file |
|
24 | 24 | padding: 10px 10px; No newline at end of file |
|
25 | 25 | border: 0px solid #f00 !important; } No newline at end of file |
|
26 | 26 | No newline at end of file |
|
27 | 27 | #content { No newline at end of file |
|
28 | 28 | margin: 5px 0px; No newline at end of file |
|
29 | 29 | border: 0px solid #1cc; } No newline at end of file |
|
30 | 30 | No newline at end of file |
|
31 | 31 | #topcolumn { No newline at end of file |
|
32 | 32 | float: left; No newline at end of file |
|
33 | 33 | width: 980px; No newline at end of file |
|
34 | 34 | height: 40px; No newline at end of file |
|
35 | 35 | line-height: 35px; No newline at end of file |
|
36 | 36 | margin: 2px 0px; No newline at end of file |
|
37 | 37 | border: 1px solid #ddd !important; No newline at end of file |
|
38 | 38 | box-shadow: 2px 2px 5px #888; } No newline at end of file |
|
39 | 39 | No newline at end of file |
|
40 | 40 | #maincolumn { No newline at end of file |
|
41 | 41 | float: left; No newline at end of file |
|
42 | 42 | width: 980px; No newline at end of file |
|
43 | 43 | margin: 2px 0px; No newline at end of file |
|
44 | 44 | padding: 0px 0px; No newline at end of file |
|
45 | 45 | border: 1px solid #ddd !important; No newline at end of file |
|
46 | 46 | box-shadow: 2px 2px 5px #666; } No newline at end of file |
|
47 | 47 | No newline at end of file |
|
48 | 48 | footer { No newline at end of file |
|
49 | 49 | height: 30px; No newline at end of file |
|
50 | 50 | line-height: 30px; No newline at end of file |
|
51 | 51 | text-align: center; No newline at end of file |
|
52 | 52 | margin: 0px 0px; No newline at end of file |
|
53 | 53 | border: 0px solid #200 !important; No newline at end of file |
|
54 | 54 | box-shadow: 2px 2px 5px #888; } No newline at end of file |
|
55 | 55 | No newline at end of file |
|
56 | 56 | .cleardivs { No newline at end of file |
|
57 | 57 | clear: both; No newline at end of file |
|
58 | 58 | border: 0px solid #400; No newline at end of file |
|
59 | 59 | height: 0px; } No newline at end of file |
|
60 | 60 | No newline at end of file |
|
61 | 61 | textarea { No newline at end of file |
|
62 | 62 | resize: none; No newline at end of file |
|
63 | 63 | overflow: hidden; } No newline at end of file |
|
64 | 64 | No newline at end of file |
|
65 | 65 | /****************************************************************************************/ No newline at end of file |
|
66 | 66 | /****** ESTILOS GENERALES *****************/ No newline at end of file |
|
67 | 67 | /****************************************************************************************/ No newline at end of file |
|
68 | 68 | .mnu { No newline at end of file |
|
69 | 69 | height: 22px; No newline at end of file |
|
70 | 70 | border: 0px solid #c55 !important; } No newline at end of file |
|
71 | 71 | No newline at end of file |
|
72 | 72 | .mnu li { No newline at end of file |
|
73 | 73 | display:inline; } No newline at end of file |
|
74 | 74 | No newline at end of file |
|
75 | 75 | .MnuVertical, .MnuHorizontal { No newline at end of file |
|
76 | 76 | font-family: 'Droid Sans', sans-serif; No newline at end of file |
|
77 | 77 | font-size: inherit; No newline at end of file |
|
78 | 78 | font-style: normal; No newline at end of file |
|
79 | 79 | text-shadow: 2px 2px #eee; } No newline at end of file |
|
80 | 80 | No newline at end of file |
|
81 | 81 | .MnuHorizontal ul { No newline at end of file |
|
82 | 82 | list-style: none; No newline at end of file |
|
83 | 83 | list-style-type: none; No newline at end of file |
|
84 | 84 | margin: 0; } No newline at end of file |
|
85 | 85 | No newline at end of file |
|
86 | 86 | /*.MnuHorizontal{ No newline at end of file |
|
87 | 87 | display: -webkit-box; No newline at end of file |
|
88 | 88 | -webkit-box-orient:horizontal; } No newline at end of file |
|
89 | 89 | No newline at end of file |
|
90 | 90 | .MnuHorizontal a{ No newline at end of file |
|
91 | 91 | display:block; No newline at end of file |
|
92 | 92 | padding:10px; No newline at end of file |
|
93 | 93 | -webkit-box-flex:1; No newline at end of file |
|
94 | 94 | text-align:center; }*/ No newline at end of file |
|
95 | 95 | No newline at end of file |
|
96 | 96 | /****************************************************************************************/ No newline at end of file |
|
97 | 97 | /****** MENU DE NAVEGACION DE PERFILES *************/ No newline at end of file |
|
98 | 98 | /****************************************************************************************/ No newline at end of file |
|
99 | 99 | #infoProfiles { No newline at end of file |
|
100 | 100 | float: left; No newline at end of file |
|
101 | 101 | width: 300px; No newline at end of file |
|
102 | 102 | margin: 0px; No newline at end of file |
|
103 | 103 | padding: 2px 0px; No newline at end of file |
|
104 | 104 | border: 0px solid #1cc !important; } No newline at end of file |
|
105 | 105 | No newline at end of file |
|
106 | 106 | #infoProfiles label { No newline at end of file |
|
107 | 107 | padding: 10px 10px 10px 12px; No newline at end of file |
|
108 | 108 | margin: 10px 0; No newline at end of file |
|
109 | 109 | font-family: 'Droid Sans', sans-serif; No newline at end of file |
|
110 | 110 | /*font-family: 'Roboto Condensed', sans-serif;*/ No newline at end of file |
|
111 | 111 | /*letter-spacing: 0.046em;*/ } No newline at end of file |
|
112 | 112 | No newline at end of file |
|
113 | 113 | #infoProfiles select { No newline at end of file |
|
114 | 114 | padding: 4px 0px; margin: 0; No newline at end of file |
|
115 | 115 | font-family: 'Droid Sans', sans-serif; No newline at end of file |
|
116 | 116 | font-size: 12px; No newline at end of file |
|
117 | 117 | letter-spacing: 0.006; No newline at end of file |
|
118 | 118 | width: 200px; } No newline at end of file |
|
119 | 119 | No newline at end of file |
|
120 | 120 | #mnuProfiles { No newline at end of file |
|
121 | 121 | margin: 0; No newline at end of file |
|
122 | 122 | float: right; No newline at end of file |
|
123 | 123 | padding: 2px 10px; No newline at end of file |
|
124 | 124 | border: 0px solid #1494F6 !important; } No newline at end of file |
|
125 | 125 | No newline at end of file |
|
126 | 126 | #mnuProfiles ul { No newline at end of file |
|
127 | 127 | list-style: none; No newline at end of file |
|
128 | 128 | list-style-type: none; No newline at end of file |
|
129 | 129 | margin: 0; No newline at end of file |
|
130 | 130 | padding-left: 20px; No newline at end of file |
|
131 | 131 | border: 0px solid #f00 !important; } No newline at end of file |
|
132 | 132 | No newline at end of file |
|
133 | 133 | #mnuProfiles li { No newline at end of file |
|
134 | 134 | width: 80px; No newline at end of file |
|
135 | 135 | float: left; No newline at end of file |
|
136 | 136 | padding: 2px; No newline at end of file |
|
137 | 137 | border: 0px solid #c55 !important; } No newline at end of file |
|
138 | 138 | No newline at end of file |
|
139 | 139 | #mnuProfiles a { No newline at end of file |
|
140 | 140 | font-weight: normal; No newline at end of file |
|
141 | 141 | color: #1494F6; No newline at end of file |
|
142 | 142 | display: block; No newline at end of file |
|
143 | 143 | text-align: center; No newline at end of file |
|
144 | 144 | border-bottom: 1px solid #1494F6 !important; No newline at end of file |
|
145 | 145 | text-decoration: none; No newline at end of file |
|
146 | 146 | padding: 0px 4px; No newline at end of file |
|
147 | 147 | line-height: 18px; No newline at end of file |
|
148 | 148 | margin: 6px; } No newline at end of file |
|
149 | 149 | No newline at end of file |
|
150 | 150 | /****************************************************************************************/ No newline at end of file |
|
151 | 151 | /******** FORMULARIO DE PERFILES *************************************/ No newline at end of file |
|
152 | 152 | /****************************************************************************************/ No newline at end of file |
|
153 | 153 | #divProfile { No newline at end of file |
|
154 | 154 | margin: 10px 0px; No newline at end of file |
|
155 | 155 | padding: 10px 10px; No newline at end of file |
|
156 | 156 | width: 500px; No newline at end of file |
|
157 | 157 | border: 0px solid #dff !important; } No newline at end of file |
|
158 | 158 | No newline at end of file |
|
159 | 159 | #divProfile label,input[type=text],input[type=file] { No newline at end of file |
|
160 | 160 | font-family: 'Open Sans', sans-serif; No newline at end of file |
|
161 | 161 | /*font-family: 'Roboto Condensed', sans-serif;*/ No newline at end of file |
|
162 | 162 | font-size: inherit; } No newline at end of file |
|
163 | 163 | No newline at end of file |
|
164 | 164 | #divPattern textarea,input[type=text],label,input[type=file],input[type=button],input[type=submit] { No newline at end of file |
|
165 | 165 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
166 | 166 | font-size: inherit; } No newline at end of file |
|
167 | 167 | No newline at end of file |
|
168 | 168 | .antenna, .NewAntenna { No newline at end of file |
|
169 | 169 | box-shadow: 1px 1px 2px #666; No newline at end of file |
|
170 | 170 | padding: 5px; No newline at end of file |
|
171 | 171 | margin: 10px auto; No newline at end of file |
|
172 | 172 | display: block; No newline at end of file |
|
173 | 173 | border: 0px solid #fee !important; } No newline at end of file |
|
174 | 174 | No newline at end of file |
|
175 | 175 | .antenna { No newline at end of file |
|
176 | 176 | width: 520px; } No newline at end of file |
|
177 | 177 | No newline at end of file |
|
178 | 178 | .NewAntenna { No newline at end of file |
|
179 | 179 | width: 750px; No newline at end of file |
|
180 | 180 | border: 0px solid #f00 !important; } No newline at end of file |
|
181 | 181 | No newline at end of file |
|
182 | 182 | .flsAntenna, .NewFlsAntenna { No newline at end of file |
|
183 | 183 | margin: 0; No newline at end of file |
|
184 | 184 | padding: 0px; No newline at end of file |
|
185 | 185 | border: 1px solid #fee !important; } No newline at end of file |
|
186 | 186 | No newline at end of file |
|
187 | 187 | .flsAntenna { No newline at end of file |
|
188 | 188 | width: 510px; } No newline at end of file |
|
189 | 189 | No newline at end of file |
|
190 | 190 | .NewFlsAntenna { No newline at end of file |
|
191 | 191 | width: 100%; } No newline at end of file |
|
192 | 192 | No newline at end of file |
|
193 | 193 | .legendAntenna { No newline at end of file |
|
194 | 194 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
195 | 195 | font-size: inherit; No newline at end of file |
|
196 | 196 | text-align: left; No newline at end of file |
|
197 | 197 | margin-left: 10px; } No newline at end of file |
|
198 | 198 | No newline at end of file |
|
199 | 199 | .infoAntenna { No newline at end of file |
|
200 | 200 | width: 500px; No newline at end of file |
|
201 | 201 | float: left; No newline at end of file |
|
202 | 202 | border: 0px solid #f00 !important; } No newline at end of file |
|
203 | 203 | No newline at end of file |
|
204 | 204 | .overJRO { No newline at end of file |
|
205 | 205 | width: 250px; No newline at end of file |
|
206 | 206 | float: left; No newline at end of file |
|
207 | 207 | margin: 0px 5px; No newline at end of file |
|
208 | 208 | border: 0px solid #1cc !important; } No newline at end of file |
|
209 | 209 | No newline at end of file |
|
210 | 210 | .divAntenna, .NewDivAntenna, .NewDivTx { No newline at end of file |
|
211 | 211 | float: left; No newline at end of file |
|
212 | 212 | margin: 10px; No newline at end of file |
|
213 | 213 | border: 0px solid #fcc !important; } No newline at end of file |
|
214 | 214 | No newline at end of file |
|
215 | 215 | .divAntenna { No newline at end of file |
|
216 | 216 | width: 220px; No newline at end of file |
|
217 | 217 | border: 0px solid #fcc !important; } No newline at end of file |
|
218 | 218 | No newline at end of file |
|
219 | 219 | .NewDivAntenna { No newline at end of file |
|
220 | 220 | border: 0px solid #fcc !important; } No newline at end of file |
|
221 | 221 | No newline at end of file |
|
222 | 222 | .NewDivTx { No newline at end of file |
|
223 | 223 | border: 0px solid #fcc !important; } No newline at end of file |
|
224 | 224 | No newline at end of file |
|
225 | 225 | .titleField { No newline at end of file |
|
226 | 226 | display: block; No newline at end of file |
|
227 | 227 | text-align: center; No newline at end of file |
|
228 | 228 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
229 | 229 | letter-spacing: 0.086em; } No newline at end of file |
|
230 | 230 | No newline at end of file |
|
231 | 231 | .txtAntenna, .view-textAntenna { No newline at end of file |
|
232 | 232 | width: 175px; No newline at end of file |
|
233 | 233 | max-width: 180px; No newline at end of file |
|
234 | 234 | height: 160px; No newline at end of file |
|
235 | 235 | max-height: 165px; No newline at end of file |
|
236 | 236 | background: #fdfdfb; No newline at end of file |
|
237 | 237 | border: 2px solid #eee !important; No newline at end of file |
|
238 | 238 | text-align: justify; No newline at end of file |
|
239 | 239 | margin: 0 auto; No newline at end of file |
|
240 | 240 | line-height: 20px; } No newline at end of file |
|
241 | 241 | No newline at end of file |
|
242 | 242 | .txtAntenna { No newline at end of file |
|
243 | 243 | padding: 4px; No newline at end of file |
|
244 | 244 | } No newline at end of file |
|
245 | 245 | No newline at end of file |
|
246 | 246 | .view-textAntenna { No newline at end of file |
|
247 | 247 | padding: 2px; No newline at end of file |
|
248 | 248 | font-family: "Ubuntu"; No newline at end of file |
|
249 | 249 | font-size: inherit; } No newline at end of file |
|
250 | 250 | No newline at end of file |
|
251 | 251 | .boxAntenna, .boxTR { No newline at end of file |
|
252 | 252 | border: 2px solid #eee !important; No newline at end of file |
|
253 | 253 | text-align: center; No newline at end of file |
|
254 | 254 | display: block; No newline at end of file |
|
255 | 255 | float: left; No newline at end of file |
|
256 | 256 | margin: 0; No newline at end of file |
|
257 | 257 | padding: 0; } No newline at end of file |
|
258 | 258 | No newline at end of file |
|
259 | 259 | .boxAntenna { No newline at end of file |
|
260 | 260 | padding: 3px; } No newline at end of file |
|
261 | 261 | No newline at end of file |
|
262 | 262 | .boxTR { No newline at end of file |
|
263 | 263 | padding: 3px; } No newline at end of file |
|
264 | 264 | No newline at end of file |
|
265 | 265 | .fullLine{ No newline at end of file |
|
266 | 266 | font-size: 0.95em; } No newline at end of file |
|
267 | 267 | No newline at end of file |
|
268 | 268 | .lineInputs, .lineInputsTx { No newline at end of file |
|
269 | 269 | text-align: left; No newline at end of file |
|
270 | 270 | line-height: 1.4em; No newline at end of file |
|
271 | 271 | padding: 0; No newline at end of file |
|
272 | 272 | margin: 0px; No newline at end of file |
|
273 | 273 | display: block; No newline at end of file |
|
274 | 274 | float: left; No newline at end of file |
|
275 | 275 | border: 0px solid #1cc !important; } No newline at end of file |
|
276 | 276 | No newline at end of file |
|
277 | 277 | .lineInputs { No newline at end of file |
|
278 | 278 | /*width: 240px;*/ No newline at end of file |
|
279 | 279 | border: 0px solid #1cc !important; } No newline at end of file |
|
280 | 280 | No newline at end of file |
|
281 | 281 | .lineInputsTx { No newline at end of file |
|
282 | 282 | /*width: 185px;*/ No newline at end of file |
|
283 | 283 | border: 0px solid #1cc !important; } No newline at end of file |
|
284 | 284 | No newline at end of file |
|
285 | 285 | .divValuesAntenna, .divValuesTx { No newline at end of file |
|
286 | 286 | float: left; No newline at end of file |
|
287 | 287 | display: block; No newline at end of file |
|
288 | 288 | margin: 0 auto; No newline at end of file |
|
289 | 289 | border: 0px solid #bbb !important; } No newline at end of file |
|
290 | 290 | No newline at end of file |
|
291 | 291 | .divValuesAntenna { No newline at end of file |
|
292 | 292 | /*width: 230px;*/ No newline at end of file |
|
293 | 293 | border: 0px solid #2eb !important; } No newline at end of file |
|
294 | 294 | No newline at end of file |
|
295 | 295 | .divValuesTx { No newline at end of file |
|
296 | 296 | /*width: 175px;*/ No newline at end of file |
|
297 | 297 | border: 0px solid #bbb !important; } No newline at end of file |
|
298 | 298 | No newline at end of file |
|
299 | 299 | .divValuesAntenna input[type=text], .divValuesTx input[type=text] { No newline at end of file |
|
300 | 300 | border: 0px; No newline at end of file |
|
301 | 301 | border-bottom: 1px solid #666 !important; No newline at end of file |
|
302 | 302 | line-height: 1.1em; No newline at end of file |
|
303 | 303 | font-family: 'Roboto Condensed', sans-serif; } No newline at end of file |
|
304 | 304 | No newline at end of file |
|
305 | 305 | .divValuesAntenna input[type=text] { No newline at end of file |
|
306 | 306 | width: 18px; } No newline at end of file |
|
307 | 307 | No newline at end of file |
|
308 | 308 | .divValuesTx input[type=text]{ No newline at end of file |
|
309 | 309 | width: 11px; } No newline at end of file |
|
310 | 310 | No newline at end of file |
|
311 | 311 | .lblSign, .lblSignTx { No newline at end of file |
|
312 | 312 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
313 | 313 | color: #666; No newline at end of file |
|
314 | 314 | float: left; No newline at end of file |
|
315 | 315 | margin: 0px; No newline at end of file |
|
316 | 316 | border: 0px solid #bbb !important; } No newline at end of file |
|
317 | 317 | No newline at end of file |
|
318 | 318 | .lblSignLeft { No newline at end of file |
|
319 | 319 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
320 | 320 | color: #666; No newline at end of file |
|
321 | 321 | float: left; No newline at end of file |
|
322 | 322 | margin: 0px 2px 0px 0px; No newline at end of file |
|
323 | 323 | padding: 0; No newline at end of file |
|
324 | 324 | border: 0px solid #f00 !important; } No newline at end of file |
|
325 | 325 | No newline at end of file |
|
326 | 326 | .lblSignRight { No newline at end of file |
|
327 | 327 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
328 | 328 | color: #666; No newline at end of file |
|
329 | 329 | float: left; No newline at end of file |
|
330 | 330 | margin: 0; No newline at end of file |
|
331 | 331 | padding: 0; No newline at end of file |
|
332 | 332 | border: 0px solid #f00 !important; } No newline at end of file |
|
333 | 333 | No newline at end of file |
|
334 | 334 | .lblNewSignLeft, .lblNewSignRight { No newline at end of file |
|
335 | 335 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
336 | 336 | color: #666; No newline at end of file |
|
337 | 337 | float: left; No newline at end of file |
|
338 | 338 | padding: 0; } No newline at end of file |
|
339 | 339 | No newline at end of file |
|
340 | 340 | .lblNewSignLeft { No newline at end of file |
|
341 | 341 | margin: 0px 2px 0px 0px; No newline at end of file |
|
342 | 342 | border: 0px solid #f00 !important; } No newline at end of file |
|
343 | 343 | No newline at end of file |
|
344 | 344 | .lblNewSignRight { No newline at end of file |
|
345 | 345 | margin: 0; No newline at end of file |
|
346 | 346 | border: 0px solid #f00 !important; } No newline at end of file |
|
347 | 347 | No newline at end of file |
|
348 | 348 | .divTx { No newline at end of file |
|
349 | 349 | display: block; No newline at end of file |
|
350 | 350 | float: left; No newline at end of file |
|
351 | 351 | margin: 10px; No newline at end of file |
|
352 | 352 | border: 0px solid #f00 !important; } No newline at end of file |
|
353 | 353 | No newline at end of file |
|
354 | 354 | .divTx label { No newline at end of file |
|
355 | 355 | display: block; } No newline at end of file |
|
356 | 356 | No newline at end of file |
|
357 | 357 | .divTx textarea { No newline at end of file |
|
358 | 358 | width: 100px; No newline at end of file |
|
359 | 359 | max-width: 100px; No newline at end of file |
|
360 | 360 | height: 160px; No newline at end of file |
|
361 | 361 | max-height: 165px; No newline at end of file |
|
362 | 362 | text-align: justify; No newline at end of file |
|
363 | 363 | border: 2px solid #eee !important; No newline at end of file |
|
364 | 364 | font-family: "Ubuntu"; No newline at end of file |
|
365 | 365 | font-size: inherit; No newline at end of file |
|
366 | 366 | line-height: 20px; } No newline at end of file |
|
367 | 367 | No newline at end of file |
|
368 | 368 | .divTx p { No newline at end of file |
|
369 | 369 | width: 100px; No newline at end of file |
|
370 | 370 | max-width: 105px; No newline at end of file |
|
371 | 371 | height: 160px; No newline at end of file |
|
372 | 372 | max-height: 165px; No newline at end of file |
|
373 | 373 | background: #fdfdfb; No newline at end of file |
|
374 | 374 | padding: 2px; No newline at end of file |
|
375 | 375 | border: 1px solid #eee !important; No newline at end of file |
|
376 | 376 | font-family: 'Ubuntu', sans-serif; No newline at end of file |
|
377 | 377 | font-size: inherit; No newline at end of file |
|
378 | 378 | text-align: justify; No newline at end of file |
|
379 | 379 | margin: 0 auto; No newline at end of file |
|
380 | 380 | line-height: 20px; } No newline at end of file |
|
381 | 381 | No newline at end of file |
|
382 | 382 | .divUes { No newline at end of file |
|
383 | 383 | display: block; No newline at end of file |
|
384 | 384 | margin: 10px; } No newline at end of file |
|
385 | 385 | No newline at end of file |
|
386 | 386 | .divUes input[type=text] { No newline at end of file |
|
387 | 387 | width: 240px; No newline at end of file |
|
388 | 388 | max-width: 240px; No newline at end of file |
|
389 | 389 | font-family: 'Ubuntu', sans-serif; No newline at end of file |
|
390 | 390 | font-size: inherit; } No newline at end of file |
|
391 | 391 | No newline at end of file |
|
392 | 392 | .divNewUes { No newline at end of file |
|
393 | 393 | width: 350px; No newline at end of file |
|
394 | 394 | display: block; No newline at end of file |
|
395 | 395 | margin: 0px 10px; No newline at end of file |
|
396 | 396 | padding: 0; No newline at end of file |
|
397 | 397 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
398 | 398 | /*overflow: hidden;*/ No newline at end of file |
|
399 | 399 | border: 0px solid #f00 !important; } No newline at end of file |
|
400 | 400 | No newline at end of file |
|
401 | 401 | .titleUes { No newline at end of file |
|
402 | 402 | width: 35px; No newline at end of file |
|
403 | 403 | text-align: right; No newline at end of file |
|
404 | 404 | padding-right: 5px; No newline at end of file |
|
405 | 405 | float: left; No newline at end of file |
|
406 | 406 | line-height: 22px; No newline at end of file |
|
407 | 407 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
408 | 408 | letter-spacing: 0.086em; No newline at end of file |
|
409 | 409 | border: 0px solid #266 !important; } No newline at end of file |
|
410 | 410 | No newline at end of file |
|
411 | 411 | .valueUes { No newline at end of file |
|
412 | 412 | width: 300px; No newline at end of file |
|
413 | 413 | float: left; No newline at end of file |
|
414 | 414 | border: 0px solid #2f4 !important; No newline at end of file |
|
415 | 415 | line-height: 22px; } No newline at end of file |
|
416 | 416 | No newline at end of file |
|
417 | 417 | .lblUes { No newline at end of file |
|
418 | 418 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
419 | 419 | color: #666; No newline at end of file |
|
420 | 420 | font-size: 1.1em; } No newline at end of file |
|
421 | 421 | No newline at end of file |
|
422 | 422 | .txtUnitUes { No newline at end of file |
|
423 | 423 | width: 60px; No newline at end of file |
|
424 | 424 | border: 0; No newline at end of file |
|
425 | 425 | padding: 0px 2px; No newline at end of file |
|
426 | 426 | text-align: center; No newline at end of file |
|
427 | 427 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
428 | 428 | font-size: 0.95em; No newline at end of file |
|
429 | 429 | border-bottom: 1px solid #666 !important; } No newline at end of file |
|
430 | 430 | /* No newline at end of file |
|
431 | 431 | .divNewUes input[type=text] { No newline at end of file |
|
432 | 432 | width: 240px; No newline at end of file |
|
433 | 433 | max-width: 240px; No newline at end of file |
|
434 | 434 | line-height: 22px; } No newline at end of file |
|
435 | 435 | */ No newline at end of file |
|
436 | 436 | .checkOnly { No newline at end of file |
|
437 | 437 | width: 120px; No newline at end of file |
|
438 | 438 | float: left; No newline at end of file |
|
439 | 439 | display: block; No newline at end of file |
|
440 | 440 | line-height: 25px; No newline at end of file |
|
441 | 441 | border: 0px solid #1cc !important; } No newline at end of file |
|
442 | 442 | No newline at end of file |
|
443 | 443 | .overJRO img { No newline at end of file |
|
444 | 444 | width: 400px; No newline at end of file |
|
445 | 445 | height: 200px; No newline at end of file |
|
446 | 446 | text-align: center; No newline at end of file |
|
447 | 447 | vertical-align: middle; No newline at end of file |
|
448 | 448 | margin: 40px 5px 5px 5px; No newline at end of file |
|
449 | 449 | display: block; No newline at end of file |
|
450 | 450 | background: #fdfdfb; No newline at end of file |
|
451 | 451 | border: 1px solid #eee !important; } No newline at end of file |
|
452 | 452 | No newline at end of file |
|
453 | 453 | .overJRO a { No newline at end of file |
|
454 | 454 | text-align: center; No newline at end of file |
|
455 | 455 | margin: 0 auto; No newline at end of file |
|
456 | 456 | display: block; } No newline at end of file |
|
457 | 457 | No newline at end of file |
|
458 | 458 | /****************************************************************************************/ No newline at end of file |
|
459 | 459 | /****** MENU DE NAVEGACION DE PATRONES **********************************/ No newline at end of file |
|
460 | 460 | /****************************************************************************************/ No newline at end of file |
|
461 | 461 | #divMnuPattern { No newline at end of file |
|
462 | 462 | width: 280px; No newline at end of file |
|
463 | 463 | height: 25px; No newline at end of file |
|
464 | 464 | display: block; No newline at end of file |
|
465 | 465 | float: right; No newline at end of file |
|
466 | 466 | margin: 5px 40px 5px 0px; No newline at end of file |
|
467 | 467 | border: 0px solid #1cc !important; } No newline at end of file |
|
468 | 468 | No newline at end of file |
|
469 | 469 | #divMnuPattern li { No newline at end of file |
|
470 | 470 | float: right; No newline at end of file |
|
471 | 471 | display: block; No newline at end of file |
|
472 | 472 | width: 60px; No newline at end of file |
|
473 | 473 | border: 0px solid #2cc !important; } No newline at end of file |
|
474 | 474 | No newline at end of file |
|
475 | 475 | #divMnuPattern a { No newline at end of file |
|
476 | 476 | display: block; No newline at end of file |
|
477 | 477 | line-height: 22px; No newline at end of file |
|
478 | 478 | text-decoration: none; No newline at end of file |
|
479 | 479 | padding: 0px 5px; No newline at end of file |
|
480 | 480 | margin: 0px 2px; No newline at end of file |
|
481 | 481 | text-align: center; No newline at end of file |
|
482 | 482 | color: #1494F6; No newline at end of file |
|
483 | 483 | border-bottom: 1px solid #1494F6 !important; } No newline at end of file |
|
484 | 484 | No newline at end of file |
|
485 | 485 | #infoPattern { No newline at end of file |
|
486 | 486 | display: block; No newline at end of file |
|
487 | 487 | margin: 0px 25px; No newline at end of file |
|
488 | 488 | border: 0px solid #1494f6 !important; } No newline at end of file |
|
489 | 489 | No newline at end of file |
|
490 | 490 | #navPatterns { No newline at end of file |
|
491 | 491 | margin: 0 auto; No newline at end of file |
|
492 | 492 | width: 700px; No newline at end of file |
|
493 | 493 | height: 30px; No newline at end of file |
|
494 | 494 | border: 0px solid #d00 !important; No newline at end of file |
|
495 | 495 | font-family: 'Ubuntu', sans-serif; No newline at end of file |
|
496 | 496 | font-size: 14px; No newline at end of file |
|
497 | 497 | padding: 5px 0px; } No newline at end of file |
|
498 | 498 | No newline at end of file |
|
499 | 499 | #navPatternList { No newline at end of file |
|
500 | 500 | margin: 0 auto; No newline at end of file |
|
501 | 501 | border: 0px solid #ecc !important; } No newline at end of file |
|
502 | 502 | No newline at end of file |
|
503 | 503 | #navPatternList ul { No newline at end of file |
|
504 | 504 | list-style: none; No newline at end of file |
|
505 | 505 | list-style-type: none; No newline at end of file |
|
506 | 506 | margin: 0; } No newline at end of file |
|
507 | 507 | No newline at end of file |
|
508 | 508 | #navPatternList ul li { No newline at end of file |
|
509 | 509 | float: left; No newline at end of file |
|
510 | 510 | width: 50px; No newline at end of file |
|
511 | 511 | border: 1px solid #eee !important; } No newline at end of file |
|
512 | 512 | No newline at end of file |
|
513 | 513 | #navPatternList a { No newline at end of file |
|
514 | 514 | width: 50px; No newline at end of file |
|
515 | 515 | display: block; No newline at end of file |
|
516 | 516 | text-align: center; No newline at end of file |
|
517 | 517 | line-height: 30px; No newline at end of file |
|
518 | 518 | padding: 1px 0px; No newline at end of file |
|
519 | 519 | border: 0px solid #1cc !important; } No newline at end of file |
|
520 | 520 | No newline at end of file |
|
521 | 521 | .lnkPattern { No newline at end of file |
|
522 | 522 | background-color: #ccc !important; No newline at end of file |
|
523 | 523 | color: #eee; } No newline at end of file |
|
524 | 524 | No newline at end of file |
|
525 | 525 | .lnkPatternSelected { No newline at end of file |
|
526 | 526 | background-color: #2cc !important; No newline at end of file |
|
527 | 527 | color: #fff; } No newline at end of file |
|
528 | 528 | No newline at end of file |
|
529 | 529 | .divListofPatterns { No newline at end of file |
|
530 | 530 | width: 650px; No newline at end of file |
|
531 | 531 | display: block; No newline at end of file |
|
532 | 532 | border: 1px solid #1cc !important; No newline at end of file |
|
533 | 533 | margin: 0 auto; } No newline at end of file |
|
534 | 534 | No newline at end of file |
|
535 | 535 | .divPattern { No newline at end of file |
|
536 | 536 | width: 600px; No newline at end of file |
|
537 | 537 | display: block; No newline at end of file |
|
538 | 538 | border: 1px solid #f00 !important; No newline at end of file |
|
539 | 539 | margin: 2px auto; } No newline at end of file |
|
540 | 540 | No newline at end of file |
|
541 | 541 | /****************************************************************************************/ No newline at end of file |
|
542 | 542 | /****** HEADER *************/ No newline at end of file |
|
543 | 543 | /****************************************************************************************/ No newline at end of file |
|
544 | 544 | header nav { No newline at end of file |
|
545 | 545 | width: 960px; No newline at end of file |
|
546 | 546 | margin: 0 auto; No newline at end of file |
|
547 | 547 | height: 100%; No newline at end of file |
|
548 | 548 | border: 0px solid #1cc !important; } No newline at end of file |
|
549 | 549 | No newline at end of file |
|
550 | 550 | header nav a { No newline at end of file |
|
551 | 551 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
552 | 552 | font-size: 1.98em; No newline at end of file |
|
553 | 553 | text-transform: uppercase; No newline at end of file |
|
554 | 554 | width: 232px; No newline at end of file |
|
555 | 555 | padding: 2px; No newline at end of file |
|
556 | 556 | text-align: center; No newline at end of file |
|
557 | 557 | border: 1px solid #ddd !important; No newline at end of file |
|
558 | 558 | box-shadow: 1px 1px 2px #ddd; No newline at end of file |
|
559 | 559 | display: block; No newline at end of file |
|
560 | 560 | float: left; No newline at end of file |
|
561 | 561 | height: 45px; No newline at end of file |
|
562 | 562 | text-decoration: none; No newline at end of file |
|
563 | 563 | background: #eee; No newline at end of file |
|
564 | 564 | line-height: 45px; No newline at end of file |
|
565 | 565 | color: #15425d; No newline at end of file |
|
566 | 566 | margin: 0px 1px; } No newline at end of file |
|
567 | 567 | No newline at end of file |
|
568 | 568 | header nav a.selected { No newline at end of file |
|
569 | 569 | background: #666; No newline at end of file |
|
570 | 570 | color: #fff; } No newline at end of file |
|
571 | 571 | No newline at end of file |
|
572 | #Main_Head { | |
|
No newline at end of file | ||
|
573 | margin: 0 auto; | |
|
No newline at end of file | ||
|
574 | height: 100%; | |
|
No newline at end of file | ||
|
575 | border: 1px solid #ddd !important; | |
|
No newline at end of file | ||
|
576 | box-shadow: 1px 1px 2px #ddd; | |
|
No newline at end of file | ||
|
577 | border-radius: 5px; | |
|
No newline at end of file | ||
|
578 | display: block; } | |
|
No newline at end of file | ||
|
579 | ||
|
No newline at end of file | ||
|
580 | .Main_Title { | |
|
No newline at end of file | ||
|
581 | font-size: 2em; | |
|
No newline at end of file | ||
|
582 | letter-spacing: 0.06em; | |
|
No newline at end of file | ||
|
583 | color: #444; | |
|
No newline at end of file | ||
|
584 | text-shadow: 2px 2px #ccc; } | |
|
No newline at end of file | ||
|
585 | No newline at end of file | |
|
572 | 586 | /****************************************************************************************/ No newline at end of file |
|
573 | 587 | /****** FOOTER *************/ No newline at end of file |
|
574 | 588 | /****************************************************************************************/ No newline at end of file |
|
575 | 589 | footer p { No newline at end of file |
|
576 | 590 | font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
577 | 591 | font-size: 0.98em; } No newline at end of file |
|
592 | ||
|
No newline at end of file | ||
|
593 | /****************************************************************************************/ | |
|
No newline at end of file | ||
|
594 | /****** LOGIN *************/ | |
|
No newline at end of file | ||
|
595 | /****************************************************************************************/ | |
|
No newline at end of file | ||
|
596 | #contentLogin { | |
|
No newline at end of file | ||
|
597 | margin: 0; | |
|
No newline at end of file | ||
|
598 | padding: 0; | |
|
No newline at end of file | ||
|
599 | border: 0px solid #1cc; } | |
|
No newline at end of file | ||
|
600 | ||
|
No newline at end of file | ||
|
601 | #MainColumnLogin { | |
|
No newline at end of file | ||
|
602 | margin: 2px auto; | |
|
No newline at end of file | ||
|
603 | border: 0px solid #f00 !important; | |
|
No newline at end of file | ||
|
604 | box-shadow: 1px 1px 2px #ddd; | |
|
No newline at end of file | ||
|
605 | border-radius: 2px; | |
|
No newline at end of file | ||
|
606 | background-color: #eee; | |
|
No newline at end of file | ||
|
607 | width: 100%; | |
|
No newline at end of file | ||
|
608 | padding: 5px 0px; | |
|
No newline at end of file | ||
|
609 | } | |
|
No newline at end of file | ||
|
610 | ||
|
No newline at end of file | ||
|
611 | .row_reg { | |
|
No newline at end of file | ||
|
612 | margin: 5px auto; | |
|
No newline at end of file | ||
|
613 | display: block; | |
|
No newline at end of file | ||
|
614 | width: 90%; | |
|
No newline at end of file | ||
|
615 | border: 0px solid #1cc !important; | |
|
No newline at end of file | ||
|
616 | line-height: 22px; | |
|
No newline at end of file | ||
|
617 | } | |
|
No newline at end of file | ||
|
618 | ||
|
No newline at end of file | ||
|
619 | .row_reg label, .row_reg input[type=text] { | |
|
No newline at end of file | ||
|
620 | float: left; | |
|
No newline at end of file | ||
|
621 | line-height: 22px; | |
|
No newline at end of file | ||
|
622 | } | |
|
No newline at end of file | ||
|
623 | ||
|
No newline at end of file | ||
|
624 | #id_username, #id_password { | |
|
No newline at end of file | ||
|
625 | width: 160px; | |
|
No newline at end of file | ||
|
626 | line-height: 22px; | |
|
No newline at end of file | ||
|
627 | } | |
|
No newline at end of file | ||
|
628 | ||
|
No newline at end of file | ||
|
629 | .row_reg label { | |
|
No newline at end of file | ||
|
630 | width: 400px; | |
|
No newline at end of file | ||
|
631 | text-align: right; | |
|
No newline at end of file | ||
|
632 | padding-right: 10px; | |
|
No newline at end of file | ||
|
633 | border: 0px solid #d22 !important; | |
|
No newline at end of file | ||
|
634 | } | |
|
No newline at end of file | ||
|
635 | ||
|
No newline at end of file | ||
|
636 | .row_reg input[type=submit], .row_reg input[type=button] { | |
|
No newline at end of file | ||
|
637 | margin-left: 410px; | |
|
No newline at end of file | ||
|
638 | width: 80px; | |
|
No newline at end of file | ||
|
639 | } | |
|
No newline at end of file | ||
|
640 | ||
|
No newline at end of file | ||
|
641 | #lblTitleLogin { | |
|
No newline at end of file | ||
|
642 | width: 100%; | |
|
No newline at end of file | ||
|
643 | text-align: center; | |
|
No newline at end of file | ||
|
644 | font-size: 1.2em; | |
|
No newline at end of file | ||
|
645 | font-weight: normal; | |
|
No newline at end of file | ||
|
646 | color: #222; | |
|
No newline at end of file | ||
|
647 | border: 0px solid #f00 !important; | |
|
No newline at end of file | ||
|
648 | background-color: #ccc; | |
|
No newline at end of file | ||
|
649 | } No newline at end of file |
@@ -1,63 +1,71 | |||
|
1 | 1 | {% extends "base.html" %} No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | {% block title %}ABS CONTROL:::::{% endblock %} No newline at end of file |
|
4 | 4 | {% block scripting %} No newline at end of file |
|
5 | 5 | {% if profile_list %} No newline at end of file |
|
6 | 6 | <script src="/static/static/js/profiles.js"></script> No newline at end of file |
|
7 | 7 | {% endif %} No newline at end of file |
|
8 | {% endblock %} | |
|
No newline at end of file | ||
|
9 | {% block header %} | |
|
No newline at end of file | ||
|
10 | <nav id="header"> | |
|
No newline at end of file | ||
|
11 | <a href="{% url abscontrol.views.index %}" class="selected">ABS</a> | |
|
No newline at end of file | ||
|
12 | <a href="#">CR</a> | |
|
No newline at end of file | ||
|
13 | <a href="#">DDS</a> | |
|
No newline at end of file | ||
|
14 | <a href="#">JARS</a> | |
|
No newline at end of file | ||
|
15 | </nav> No newline at end of file | |
|
8 | 16 | {% endblock %} No newline at end of file |
|
9 | 17 | {% block content %} No newline at end of file |
|
10 | 18 | <div id="content"> No newline at end of file |
|
11 | 19 | {% block topcolumn %} No newline at end of file |
|
12 | 20 | <div id="topcolumn"> No newline at end of file |
|
13 | 21 | <div id="lsProfiles"> No newline at end of file |
|
14 | 22 | <div id="infoProfiles"> No newline at end of file |
|
15 | 23 | <label for="lblProfile" class="lblInfo">Profiles: </label> No newline at end of file |
|
16 | 24 | {% if profile_list %} No newline at end of file |
|
17 | 25 | <select name="lsProfiles" id="listProfiles"> No newline at end of file |
|
18 | 26 | <option value="-1">Choose ...</option> No newline at end of file |
|
19 | 27 | {% for entry in profile_list %} No newline at end of file |
|
20 | 28 | {% if objProfile %} No newline at end of file |
|
21 | 29 | {% if objProfile.id == entry.id %} No newline at end of file |
|
22 | 30 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> No newline at end of file |
|
23 | 31 | {% else %} No newline at end of file |
|
24 | 32 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
25 | 33 | {% endif %} No newline at end of file |
|
26 | 34 | {% else %} No newline at end of file |
|
27 | 35 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
28 | 36 | {% endif %} No newline at end of file |
|
29 | 37 | {% endfor %} No newline at end of file |
|
30 | 38 | </select> No newline at end of file |
|
31 | 39 | {% else %} No newline at end of file |
|
32 | 40 | <label for="lblMessage" class="lblInfo">No profiles.</label> No newline at end of file |
|
33 | 41 | {% endif %} No newline at end of file |
|
34 | 42 | </div> No newline at end of file |
|
35 | 43 | </div> No newline at end of file |
|
36 | 44 | {% block mnu_profile %} No newline at end of file |
|
37 | 45 | <div id="mnuProfiles"> No newline at end of file |
|
38 | 46 | <nav class="MnuHorizontal" id="navProfiles"> No newline at end of file |
|
39 | 47 | <ul> No newline at end of file |
|
40 | 48 | <li><a href="{% url abscontrol.views.new %}">New</a></li> No newline at end of file |
|
41 | 49 | {% if objProfile %} No newline at end of file |
|
42 | 50 | <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li> No newline at end of file |
|
43 | 51 | <li><a href="#">Save</a></li> No newline at end of file |
|
44 | 52 | {% endif %} No newline at end of file |
|
45 | 53 | <li><a href="{% url abscontrol.views.importProfile %}">Import</a></li> No newline at end of file |
|
46 | 54 | {% if objProfile %} No newline at end of file |
|
47 | 55 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> No newline at end of file |
|
48 | 56 | <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li> No newline at end of file |
|
49 | 57 | {% endif %} No newline at end of file |
|
50 | 58 | </ul> No newline at end of file |
|
51 | 59 | <div class="cleardivs"></div> No newline at end of file |
|
52 | 60 | </nav> No newline at end of file |
|
53 | 61 | </div> No newline at end of file |
|
54 | 62 | {% endblock %} No newline at end of file |
|
55 | 63 | <div class="cleardivs"></div> No newline at end of file |
|
56 | 64 | </div> No newline at end of file |
|
57 | 65 | {% endblock %} No newline at end of file |
|
58 | 66 | {% block maincolumn %} No newline at end of file |
|
59 | 67 | <div id="maincolumn" style="height: 50px"></div> No newline at end of file |
|
60 | 68 | {% endblock %} No newline at end of file |
|
61 | 69 | <div class="cleardivs"></div> No newline at end of file |
|
62 | 70 | </div> No newline at end of file |
|
63 | 71 | {% endblock %} No newline at end of file |
@@ -1,48 +1,45 | |||
|
1 | 1 | {% load static %} No newline at end of file |
|
2 | 2 | <!DOCTYPE html> No newline at end of file |
|
3 | 3 | <html lang="en"> No newline at end of file |
|
4 | 4 | <head> No newline at end of file |
|
5 | 5 | <meta charset="utf-8" /> No newline at end of file |
|
6 | 6 | {% comment %} No newline at end of file |
|
7 | 7 | <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame No newline at end of file |
|
8 | 8 | Remove this if you use the .htaccess --> No newline at end of file |
|
9 | 9 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> No newline at end of file |
|
10 | 10 | {% endcomment %} No newline at end of file |
|
11 | 11 | <link href='http://fonts.googleapis.com/css?family=Droid+Sans|Ubuntu:400,500,300italic|Open+Sans:400,300,600|Open+Sans+Condensed:300,700|Roboto+Condensed:400,300' rel='stylesheet' type='text/css'> No newline at end of file |
|
12 | 12 | <link rel="stylesheet" href="{% static 'static/css/style.css' %}" type="text/css" /> No newline at end of file |
|
13 | 13 | <script src="{% static 'static/js/jquery-1.9.1.min.js' %}"></script> No newline at end of file |
|
14 | 14 | {% block scripting %}{% endblock %} No newline at end of file |
|
15 | 15 | <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> No newline at end of file |
|
16 | 16 | <meta name="description" content="JRO WEB APPLICATIONS" /> No newline at end of file |
|
17 | 17 | <meta name="author" content="Jose Antonio Sal y Rosas Celi" /> No newline at end of file |
|
18 | 18 | No newline at end of file |
|
19 | 19 | {# <meta name="viewport" content="width=device-width; initial-scale=1.0" /> #} No newline at end of file |
|
20 | 20 | {% comment %} No newline at end of file |
|
21 | 21 | <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> No newline at end of file |
|
22 | 22 | <link rel="shortcut icon" href="/favicon.ico" /> No newline at end of file |
|
23 | 23 | <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> No newline at end of file |
|
24 | 24 | {% endcomment %} No newline at end of file |
|
25 | 25 | </head> No newline at end of file |
|
26 | 26 | <body> No newline at end of file |
|
27 | 27 | <div id="schema"> No newline at end of file |
|
28 | 28 | <header> No newline at end of file |
|
29 | 29 |
|
|
30 | No newline at end of file | |
|
30 | <nav id="header"> | |
|
No newline at end of file | ||
|
31 | No newline at end of file | |
|
31 | <a href="/abscontrol/" class="selected">ABS</a> | |
|
No newline at end of file | ||
|
32 | No newline at end of file | |
|
32 | <a href="#">CR</a> | |
|
No newline at end of file | ||
|
33 | <a href="#">DDS</a> | |
|
No newline at end of file | ||
|
34 | <a href="#">JARS</a> | |
|
No newline at end of file | ||
|
35 | </nav> No newline at end of file | |
|
36 | 33 |
|
|
37 | 34 | </header> No newline at end of file |
|
38 | 35 | {% block content %} No newline at end of file |
|
39 | 36 | <div id="content"></div> No newline at end of file |
|
40 | 37 | {% endblock %} No newline at end of file |
|
41 | 38 | <footer> No newline at end of file |
|
42 | 39 | {% block footer %} No newline at end of file |
|
43 | 40 | <p>© Copyright 2013 by Jicamarca Radio Observatory</p> No newline at end of file |
|
44 | 41 | {% endblock %} No newline at end of file |
|
45 | 42 | </footer> No newline at end of file |
|
46 | 43 | </div> No newline at end of file |
|
47 | 44 | </body> No newline at end of file |
|
48 | 45 | </html> No newline at end of file |
@@ -1,28 +1,39 | |||
|
1 | 1 | {% extends "base.html" %} No newline at end of file |
|
2 | 2 | {% load url from future %} No newline at end of file |
|
3 | 3 | No newline at end of file |
|
4 | 4 | {% block content %} |
|
5 | No newline at end of file | |
|
5 | No newline at end of file | |
|
No newline at end of file | ||
|
6 | <div class="content_message"> No newline at end of file | |
|
6 | 7 | {% if form.errors %} No newline at end of file |
|
7 | 8 | <p>Your username and password didn't match. Please try again.</p> No newline at end of file |
|
8 | 9 | {% endif %} |
|
10 | No newline at end of file | |
|
9 | No newline at end of file | |
|
No newline at end of file | ||
|
11 | <div id="MainColumnLogin"> No newline at end of file | |
|
10 | 12 | <form method="post" action="{% url 'django.contrib.auth.views.login' %}"> No newline at end of file |
|
11 | 13 | {% csrf_token %} |
|
14 | No newline at end of file | |
|
12 | <table> | |
|
No newline at end of file | ||
|
15 | No newline at end of file | |
|
13 | <tr> | |
|
No newline at end of file | ||
|
16 | No newline at end of file | |
|
14 | <td>{{ form.username.label_tag }}</td> | |
|
No newline at end of file | ||
|
17 | No newline at end of file | |
|
15 | <td>{{ form.username }}</td> | |
|
No newline at end of file | ||
|
18 | No newline at end of file | |
|
16 | </tr> | |
|
No newline at end of file | ||
|
19 | No newline at end of file | |
|
17 | <tr> | |
|
No newline at end of file | ||
|
20 | No newline at end of file | |
|
18 | <td>{{ form.password.label_tag }}</td> | |
|
No newline at end of file | ||
|
21 | No newline at end of file | |
|
19 | <td>{{ form.password }}</td> | |
|
No newline at end of file | ||
|
22 | No newline at end of file | |
|
20 | </tr> | |
|
No newline at end of file | ||
|
23 | No newline at end of file | |
|
21 | </table> | |
|
No newline at end of file | ||
|
24 | No newline at end of file | |
|
22 | ||
|
No newline at end of file | ||
|
25 | No newline at end of file | |
|
23 | <input type="submit" value="login" /> | |
|
No newline at end of file | ||
|
26 | No newline at end of file | |
|
24 | <input type="hidden" name="next" value="{{ next }}" /> No newline at end of file | |
|
No newline at end of file | ||
|
27 | {{ form.password }} | |
|
No newline at end of file | ||
|
28 | <div class="cleardivs"></div> | |
|
No newline at end of file | ||
|
29 | </div> | |
|
No newline at end of file | ||
|
30 | <div class="cleardivs"></div> | |
|
No newline at end of file | ||
|
31 | <div class="row_reg"> | |
|
No newline at end of file | ||
|
32 | <input type="submit" value="Ok" /> | |
|
No newline at end of file | ||
|
33 | </div> | |
|
No newline at end of file | ||
|
34 | <div class="cleardivs"></div> | |
|
No newline at end of file | ||
|
35 | <input type="hidden" name="next" value="{% url 'abscontrol.views.index' %}" /> No newline at end of file | |
|
25 | 36 | </form> |
|
37 | No newline at end of file | |
|
26 | No newline at end of file | |
|
No newline at end of file | ||
|
38 | </div> No newline at end of file | |
|
27 | 39 | {% endblock %} No newline at end of file |
|
28 | 40 | No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now