Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
dca61db6
Commit
dca61db6
authored
Jun 11, 2014
by
Penom Nom
Browse files
Automatic demonstration project creation at install
parent
d1d97352
Changes
3
Hide whitespace changes
Inline
Side-by-side
ui/nG6/class.tx_nG6_eid.php
View file @
dca61db6
...
...
@@ -711,8 +711,8 @@ class tx_nG6_eid {
trim
(
t3lib_div
::
_GP
(
'email'
)),
tx_nG6_utils
::
hash_password
(
trim
(
t3lib_div
::
_GP
(
'password'
))),
trim
(
t3lib_div
::
_GP
(
'pid'
)),
trim
(
t3lib_div
::
_GP
(
'project_name'
))
,
trim
(
t3lib_div
::
_GP
(
'description'
))
"Demo project"
,
"This project presents demonstration workflows"
);
// if there is a result, then log the user
if
(
$res2
)
{
...
...
ui/nG6/pi1/install_view.tpl
View file @
dca61db6
...
...
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<div
class=
"ng6-content-header-right-white"
>
<legend>
1)
Define the administrator user
</legend>
<legend>
Define the administrator user
</legend>
<form
class=
"form-horizontal"
id=
"install_form"
>
<input
type=
"hidden"
id=
"server_name"
value=
"
{
$server_name
}
"
/>
...
...
@@ -80,22 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<input
type=
"text"
id=
"email_val"
class=
"typeahead"
name=
"email_val"
placeholder=
"Email"
/>
</div>
</div>
<legend>
2) Define the first project
</legend>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
Project name
</label>
<div
class=
"controls"
>
<input
type=
"text"
id=
"project_name_val"
class=
"typeahead"
name=
"project_name_val"
placeholder=
"Project name"
/>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
Description
</label>
<div
class=
"controls"
>
<input
type=
"text"
id=
"description_val"
class=
"typeahead"
name=
"description_val"
placeholder=
"Description"
/>
</div>
</div>
</form>
<div
style=
"float:right;margin-top:10px"
>
<button
class=
"btn"
id=
"raz_form_install"
><i
class=
"icon-repeat"
></i>
Clear form
</button>
...
...
ui/nG6/res/js/tx_nG6_pi1.js
View file @
dca61db6
...
...
@@ -936,8 +936,6 @@ $(function () {
val_url
+=
"
&last_name=
"
+
$
(
"
#last_name_val
"
).
val
();
val_url
+=
"
&password=
"
+
$
(
"
#user_password_pwd_val
"
).
val
();
val_url
+=
"
&email=
"
+
$
(
"
#email_val
"
).
val
();
val_url
+=
"
&project_name=
"
+
$
(
"
#project_name_val
"
).
val
();
val_url
+=
"
&description=
"
+
$
(
"
#description_val
"
).
val
();
val_url
+=
"
&pid=
"
+
$
(
"
#pid
"
).
val
();
$
.
ajax
({
url
:
val_url
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment