1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
metal:use-macro="view/macro:page/main_only"
i18n:domain="launchpad">
<body>
<metal:block fill-slot="head_epilogue">
<style type="text/css">
.importdetails {
margin: 0.5em 0 0.5em 4em;
}
</style>
</metal:block>
<div metal:fill-slot="main">
<div metal:use-macro="context/@@launchpad_form/form">
<p metal:fill-slot="extra_info" tal:condition="not:view/errors">
For more details on importing source code into Launchpad,
see the help wiki page
<a href="https://help.launchpad.net/VcsImports">
VcsImports</a>.
</p>
<metal:formbody fill-slot="widgets">
<table class="form">
<tal:widget define="widget nocall:view/widgets/owner">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
<tal:show-product condition="not: view/context_is_product">
<tal:widget define="widget nocall:view/widgets/product">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
</tal:show-product>
<tal:widget define="widget nocall:view/widgets/branch_name">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
<tr>
<td colspan="2">
<div class="formHelp">
Enter details for the selected repository type.
</div>
</td>
</tr>
<tr>
<td>
<label>
<input tal:replace="structure view/rcs_type_bzr" />
Bazaar
</label>
<table class="importdetails">
<tal:widget define="widget nocall:view/widgets/bzr_branch_url">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
</table>
</td>
</tr>
<tr>
<td>
<label>
<input tal:replace="structure view/rcs_type_git" />
Git
</label>
<table class="importdetails">
<tal:widget define="widget nocall:view/widgets/git_repo_url">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
</table>
</td>
</tr>
<tr>
<td>
<label>
<input tal:replace="structure view/rcs_type_hg" />
Mercurial
</label>
<table class="importdetails">
<tal:widget define="widget nocall:view/widgets/hg_repo_url">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
</table>
</td>
</tr>
<tr>
<td>
<label>
<input tal:replace="structure view/rcs_type_svn" />
Subversion
</label>
<table class="importdetails">
<tal:widget define="widget nocall:view/widgets/svn_branch_url">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
</table>
</td>
</tr>
<tr>
<td>
<label>
<input tal:replace="structure view/rcs_type_cvs" />
CVS
</label>
<table class="importdetails">
<tal:widget define="widget nocall:view/widgets/cvs_root">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
<tal:widget define="widget nocall:view/widgets/cvs_module">
<metal:block use-macro="context/@@launchpad_form/widget_row" />
</tal:widget>
</table>
</td>
</tr>
</table>
<input tal:replace="structure view/rcs_type_emptymarker" />
<script type="text/javascript">
//<![CDATA[
function updateWidgets() {
/* which rcs type radio button has been selected? */
var rcs_types = document.getElementsByName('field.rcs_type');
var form = rcs_types[0].form;
var rcs_type = 'None';
for (var i = 0; i < rcs_types.length; i++) {
if (rcs_types[i].checked) {
rcs_type = rcs_types[i].value;
break;
}
}
// GIT
updateField(form['field.git_repo_url'], rcs_type == 'GIT');
// HG
updateField(form['field.hg_repo_url'], rcs_type == 'HG');
// CVS
updateField(form['field.cvs_root'], rcs_type == 'CVS');
updateField(form['field.cvs_module'], rcs_type == 'CVS');
// SVN
updateField(form['field.svn_branch_url'], rcs_type == 'BZR_SVN');
// BZR
updateField(form['field.bzr_branch_url'], rcs_type == 'BZR');
}
registerLaunchpadFunction(updateWidgets);
//]]>
</script>
</metal:formbody>
</div>
</div>
</body>
</html>
|