Commit dca61db6 authored by Penom Nom's avatar Penom Nom
Browse files

Automatic demonstration project creation at install

parent d1d97352
......@@ -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) {
......
......@@ -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>
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment