@@ -44,19 +44,19 @@ <h1>Common Workflow Language Viewer</h1>
44
44
< div class ="alert alert-info ">
45
45
< p > Want to generate visualisations in build scripts or from another automated process? Find out about < a href ="/apidocs " alt ="API Documentation "> our API</ a > </ p >
46
46
</ div >
47
+
48
+ < hr />
49
+
50
+ < h2 > Workflow URL</ h2 >
51
+ < p > Provide a Github, Gitlab or Git repository link to the workflow here</ p >
47
52
< div class ="alert alert-grey ">
48
53
< strong > Don't know what to view?</ strong > Try these from < i > common-workflow-language/workflows</ i > :
49
- < a href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl "> compile</ a > ,
50
- < a href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/make-to-cwl/dna.cwl "> make-to-cwl</ a > ,
51
- < a href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl "> lobSTR</ a > ,
52
- < a href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/scidap/bam-genomecov-bigwig-rna-dutp.cwl "> scidap</ a >
54
+ < a class =" example " href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl "> compile</ a > ,
55
+ < a class =" example " href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/make-to-cwl/dna.cwl "> make-to-cwl</ a > ,
56
+ < a class =" example " href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl "> lobSTR</ a > ,
57
+ < a class =" example " href ="/workflows/github.com/common-workflow-language/workflows/tree/master/workflows/scidap/bam-genomecov-bigwig-rna-dutp.cwl "> scidap</ a >
53
58
or < a href ="/workflows "> explore the collection</ a >
54
59
</ div >
55
-
56
- < hr />
57
-
58
- < h2 > Workflow from Github/Gitlab URL</ h2 >
59
- < p > Provide a Github or Gitlab link to the workflow here</ p >
60
60
< form id ="add " action ="# " th:action ="@{/workflows} " th:object ="${workflowForm} " method ="POST ">
61
61
< div class ="alert alert-danger " th:if ="${errors} != null and ${errors.hasErrors()} ">
62
62
< div th:each ="error : ${errors.getAllErrors()} ">
@@ -66,41 +66,22 @@ <h2>Workflow from Github/Gitlab URL</h2>
66
66
< div class ="alert alert-danger " th:if ="${#fields.hasErrors('url')} ">
67
67
< strong > Error:</ strong > < span th:errors ="*{url} "> Error message here</ span >
68
68
</ div >
69
- < div class ="input-group ">
70
- < label for ="url " class ="sr-only "> Github or Gitlab URL</ label >
71
- < input type ="text " class ="form-control " placeholder ="Github or Gitlab URL " id ="url " name ="url " th:field ="*{url} " th:value ="${formURL} " required ="true " />
72
- < span class ="input-group-btn ">
73
- < button class ="btn btn-primary " type ="submit "> Parse Workflow</ button >
74
- </ span >
75
- </ div >
76
- </ form >
77
-
78
- < hr />
79
-
80
- < h2 > Workflow from Git Details</ h2 >
81
- < p > Provide the repository URL, path and branch details for the workflow here</ p >
82
- < form id ="git " action ="# " th:action ="@{/workflows} " th:object ="${workflowForm} " method ="POST ">
83
- < div class ="alert alert-danger " th:if ="${errors} != null and ${errors.hasErrors()} ">
84
- < div th:each ="error : ${errors.getAllErrors()} ">
85
- < strong > Error:</ strong > < span th:text ="${error.getDefaultMessage()} "> Error message here</ span >
86
- </ div >
87
- </ div >
88
- < div class ="alert alert-danger " th:if ="${#fields.hasErrors('url')} ">
89
- < strong > Error:</ strong > < span th:errors ="*{url} "> Error message here</ span >
69
+ < div class ="form-group ">
70
+ < label class ="control-label " for ="url "> URL to workflow</ label >
71
+ < input type ="text " class ="form-control " placeholder ="Github, Gitlab or Git repository URL " id ="url " name ="url " th:field ="*{url} " th:value ="${formURL} " required ="true " />
72
+ < span class ="validateMessage "> </ span >
90
73
</ div >
91
- < label for ="repoURL "> Repository URL</ label >
92
- < input type ="text " class ="form-control " placeholder ="Repository URL (HTTPS) " id ="repoURL " name ="repoURL " th:field ="*{url} " th:value ="${formURL} " required ="true " />
93
- < div class ="row " style ="margin-top:10px;margin-bottom:10px; ">
74
+ < div id ="extraInputs " class ="row ">
94
75
< div class ="col-md-6 ">
95
76
< label for ="branch "> Branch Name/Commit ID</ label >
96
- < input type ="text " class ="form-control " placeholder ="Branch Name or Commit ID " name ="branch " required =" true " />
77
+ < input type ="text " class ="form-control " placeholder ="Branch Name or Commit ID " name ="branch " />
97
78
</ div >
98
79
< div class ="col-md-6 ">
99
80
< label for ="path "> Path to Workflow</ label >
100
- < input type ="text " class ="form-control " placeholder ="/path/to/workflow.cwl " name ="path " required =" true " />
81
+ < input type ="text " class ="form-control " placeholder ="/path/to/workflow.cwl " name ="path " />
101
82
</ div >
102
83
</ div >
103
- < button class ="btn btn-primary pull-right " type ="submit "> Parse Workflow</ button >
84
+ < button class ="btn btn-primary pull-right " type ="submit " style =" margin-top:10px; " > Parse Workflow</ button >
104
85
</ form >
105
86
</ div >
106
87
</ div >
0 commit comments