Create Project: url field added
authorYasin Rahman <yasin.upmc@gmail.com>
Mon, 12 Oct 2015 15:05:14 +0000 (17:05 +0200)
committerYasin Rahman <yasin.upmc@gmail.com>
Mon, 12 Oct 2015 15:05:14 +0000 (17:05 +0200)
portal/projectrequestview.py
portal/templates/projectrequest_view.html
portal/templates/slicerequest_view.html

index 1f6e921..2757b94 100644 (file)
@@ -106,6 +106,7 @@ class ProjectRequestView(LoginRequiredAutoLogoutView, ThemeView):
                     'authority_hrn'     : wsgi_request.POST.get('authority_name', ''),
                     'project_name'      : project_name,
                     'purpose'           : wsgi_request.POST.get('purpose', ''),
+                    'url'               : wsgi_request.POST.get('url', ''),
                 }
 
                 # for new projects max project_name length is 10
index 8558228..aabda75 100644 (file)
                         {% endif %}
                         </select>
                     </div>
-                  
+                    <div class="form-group">
+                        <label>
+                            Provide an URL for your project (not required)
+                        </label>
+                        <input type="text" class="form-control" name="url" id="url" style="width:100%" placeholder="Experiment URL (if one exists)"
+                        title="Please provide the url of your project" value="{{url}}">
+                    </div> 
                     <label>
                         Please provide a description of the purpose for your project
                     </label>
index 2bb1e50..fbbd2b1 100644 (file)
                                <input type="text" class="form-control" id="authority_hrn" name="org_name" style="width:100%" placeholder="Project" 
                                        title="Select a project under which you want to create your slice" required="required">
                          </div>
+              <!--  
                          <div class="form-group">
                              <label>
                                  Provide an URL for your experiment (not required)
                              </label>
-                             <!-- <input type="text" class="form-control" name="url" id="url" style="width:100%" placeholder="Experiment URL (if one exists)"
+                              <input type="text" class="form-control" name="url" id="url" style="width:100%" placeholder="Experiment URL (if one exists)"
                                        title="Please provide the url of your experiment" value="{{url}}">
                          </div>
                          <div class="form-group">