|
2 | 2 | extends ../layouts/default.jade |
3 | 3 | include ../mixins/advanced-search-filter.jade |
4 | 4 |
|
5 | | -block head |
6 | | - style. |
7 | | - body { |
8 | | - background-color: #f6f6f6; |
9 | | - } |
10 | | - |
11 | | - .grey-page-mark { |
12 | | - background-color: #f6f6f6; |
13 | | - } |
14 | | - |
15 | | - .top-search-form { |
16 | | - display: none; |
17 | | - } |
18 | | - |
19 | | - .main-search-form input { |
20 | | - width: 60%; |
21 | | - margin-left: 0; |
22 | | - background-color: white; |
23 | | - padding: 14px 16px 13px 32px; |
24 | | - } |
25 | | - |
26 | | - .main-search-form .submit { |
27 | | - padding: 12px 21px; |
28 | | - } |
29 | | - |
30 | | - .main-search-form label { |
31 | | - color: #7F8C8D; |
32 | | - } |
33 | | - |
34 | | - .search-section { |
35 | | - height: 60px; |
36 | | - padding: 20px; |
37 | | - margin: 0 auto; |
38 | | - width: 60%; |
39 | | - margin-bottom: 40px; |
40 | | - text-align: center; |
41 | | - } |
42 | | - |
43 | 5 | block breadcrumbs |
44 | 6 | ul |
45 | 7 | li.inactive |
46 | 8 | span.fa.fa-search |
47 | | - | Advanced Search |
| 9 | + | Create Collection |
48 | 10 |
|
49 | 11 | block content |
50 | 12 | div.submission-container(align='center') |
51 | 13 | form(name="advancedSearch", method="post").submission-form |
| 14 | + |
| 15 | + if errors.length > 0 |
| 16 | + each error in errors |
| 17 | + div.alert.alert-danger |
| 18 | + p #{error} |
| 19 | + br |
| 20 | + |
52 | 21 | div.form-group-50.required |
53 | 22 | table.table.advanced-search-table |
54 | 23 | th Property |
@@ -119,12 +88,44 @@ block content |
119 | 88 |
|
120 | 89 | div.clearfix |
121 | 90 |
|
122 | | - br |
123 | | - br |
124 | | - |
125 | 91 | button(type='submit',name="adv",value="Search").btn.btn-primary.btn-lg |
126 | 92 | | Search |
127 | 93 |
|
| 94 | + if locals.user |
| 95 | + div.row |
| 96 | + div.col-md-12 |
| 97 | + div.form-group-100.required |
| 98 | + label(for="name") Collection Name |
| 99 | + a(href="http://wiki.synbiohub.org/wiki/Terms/SynBioHub#Name",title='SynBioHub organizes objects into collections. You can put as many objects as you want into one collection, and then conveniently download them all together or share the collection as a whole with other people.') |
| 100 | + span.fa.fa-info-circle |
| 101 | + input.form-control(name='metaName',id="metaName",placeholder='A short title for your collection. You can use spaces and symbols here.',value=collectionMeta.name,style="width: 675px;") |
| 102 | + div.row |
| 103 | + div.col-md-12 |
| 104 | + div.form-group-100.required |
| 105 | + label(for="description") Collection Description |
| 106 | + textarea.form-control(name='metaDescription', id="metaDescription" placeholder='The more you say, the easier it will be to find your design.',value=collectionMeta.description,style="width: 675px;") |
| 107 | + | #{collectionMeta.description} |
| 108 | + |
| 109 | + div.row |
| 110 | + div.col-md-6 |
| 111 | + div.form-group-100.required |
| 112 | + label(for="id") Collection Id |
| 113 | + a(href="http://wiki.synbiohub.org/wiki/Terms/SynBioHub#Id",title='An id is a string of characters that MUST be composed of only alphanumeric or underscore characters and MUST NOT begin with a digit.') |
| 114 | + span.fa.fa-info-circle |
| 115 | + input.form-control(type='text', id="metaId", name='metaId',placeholder='Just letters and numbers, no spaces',value=collectionMeta.id) |
| 116 | + div.col-md-6 |
| 117 | + div.form-group-100.required |
| 118 | + label(for='version') Collection Version |
| 119 | + a(href="http://wiki.synbiohub.org/wiki/Terms/SynBioHub#Version",title='A version is a string of characters that MUST be composed of only alphanumeric characters, underscores, hyphens, or periods and MUST begin with a digit.') |
| 120 | + span.fa.fa-info-circle |
| 121 | + input.form-control(type='text', id='metaVersion', name='metaVersion',placeholder='Version',value=collectionMeta.version) |
| 122 | + |
| 123 | + div.clearfix |
| 124 | + br |
| 125 | + |
| 126 | + button(type='submit',name="adv",value="Create").btn.btn-primary.btn-lg |
| 127 | + | Create Collection |
| 128 | + |
128 | 129 |
|
129 | 130 |
|
130 | 131 |
|
0 commit comments