Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unstable
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PROINFODATA
unstable
Commits
49d544f8
Commit
49d544f8
authored
Sep 27, 2013
by
Eduardo L. Buratti
Browse files
Options
Downloads
Plain Diff
Merge branch 'web'
parents
c9195cf2
dfa3115d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/app/controllers/Install.java
+12
-4
12 additions, 4 deletions
web/app/controllers/Install.java
web/app/views/install/index.scala.html
+3
-6
3 additions, 6 deletions
web/app/views/install/index.scala.html
with
15 additions
and
10 deletions
web/app/controllers/Install.java
+
12
−
4
View file @
49d544f8
...
@@ -3,6 +3,10 @@ package controllers;
...
@@ -3,6 +3,10 @@ package controllers;
import
java.io.*
;
import
java.io.*
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.awt.*
;
import
javax.swing.JOptionPane
;
import
play.*
;
import
play.*
;
import
play.mvc.*
;
import
play.mvc.*
;
import
play.data.*
;
import
play.data.*
;
...
@@ -32,8 +36,10 @@ public class Install extends Controller {
...
@@ -32,8 +36,10 @@ public class Install extends Controller {
String
proxyUser
=
requestData
.
get
(
"proxyUser"
);
String
proxyUser
=
requestData
.
get
(
"proxyUser"
);
String
proxyPass
=
requestData
.
get
(
"proxyPass"
);
String
proxyPass
=
requestData
.
get
(
"proxyPass"
);
if
((
inep
==
null
)
||
(
inep
.
length
()
<
6
)
||
(
inep
.
length
()
>
12
))
if
((
inep
==
null
)
||
(
inep
.
length
()
<
6
)
||
(
inep
.
length
()
>
12
))
{
return
badRequest
(
"Inep inválido"
);
JOptionPane
.
showMessageDialog
(
null
,
"Inep Inválido"
,
"INEP"
,
JOptionPane
.
ERROR_MESSAGE
);
return
ok
(
views
.
html
.
install
.
index
.
render
());
}
School
school
=
null
;
School
school
=
null
;
...
@@ -45,8 +51,10 @@ public class Install extends Controller {
...
@@ -45,8 +51,10 @@ public class Install extends Controller {
return
internalServerError
();
return
internalServerError
();
}
}
if
(
school
==
null
)
if
(
school
==
null
)
{
return
badRequest
(
"Inep inválido"
);
JOptionPane
.
showMessageDialog
(
null
,
"Inep Inválido"
,
"INEP"
,
JOptionPane
.
ERROR_MESSAGE
);
return
ok
(
views
.
html
.
install
.
index
.
render
());
}
// build the package
// build the package
...
...
This diff is collapsed.
Click to expand it.
web/app/views/install/index.scala.html
+
3
−
6
View file @
49d544f8
...
@@ -23,11 +23,6 @@
...
@@ -23,11 +23,6 @@
@install(scripts=scripts) {
@install(scripts=scripts) {
<h1
class=
"title"
>
Instalação
</h1>
<h1
class=
"title"
>
Instalação
</h1>
<p
class=
"small indent4"
>
Se você está usando o Windows, para instalar o programa de
acompanhamento PROINFODATA, baixe o agente
<a
href=
"/download/proinfodata_windows_1.0.0.exe"
>
aqui
</a>
.
</p>
<p
class=
"small indent4"
>
<p
class=
"small indent4"
>
Caso você esteja usando o Linux, digite o código INEP referente
Caso você esteja usando o Linux, digite o código INEP referente
...
@@ -94,7 +89,8 @@ para maiores detalhes.
...
@@ -94,7 +89,8 @@ para maiores detalhes.
</div>
</div>
<div
class=
"well form-horizontal"
>
<div
class=
"well form-horizontal"
>
<label
class=
"control-label"
>
Pacote Linux ou Windows?
</label>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
Qual sistema utilizado?
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<label
class=
"radio inline"
>
<label
class=
"radio inline"
>
<input
type=
"radio"
name=
"os"
id=
"useLinux"
value=
"true"
checked
>
Linux
<input
type=
"radio"
name=
"os"
id=
"useLinux"
value=
"true"
checked
>
Linux
...
@@ -104,6 +100,7 @@ para maiores detalhes.
...
@@ -104,6 +100,7 @@ para maiores detalhes.
</label>
</label>
</div>
</div>
</div>
</div>
</div>
<div
class=
"pull-right"
>
<div
class=
"pull-right"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment