summaryrefslogtreecommitdiffstats
path: root/WebHob_1.5/import-layer.html
blob: 18827978cf37e08a8d8cb20dbed60c52e7fcc440 (plain)
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
<!DOCTYPE html>
<html>
  <head>
    <title>Import layer - Toaster</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/bootstrap-responsive.min.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/font-awesome.min.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/prettify.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/jquery-ui-1.10.3.custom.min.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/default.css" type='text/css'>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>

  <body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
					<a class="brand logo" href="index.html"><img src="assets/img/logo.png" class="" /></a>
					<a class="brand" href="index.html">Toaster</a>
					<ul class="nav">
            <li>
              <a href="index.html" id="nav-builds">
                <i class="icon-tasks"></i>
                All builds
              </a>
            </li>
            <li>
              <a href="all-projects.html" id="nav-projects">
                <i class="icon-folder-open"></i>
                All projects
              </a>
            </li>
            <li>
              <a href="all-users.html" id="nav-projects">
                <i class="icon-user"></i>
                All users
              </a>
            </li>
            <li>
              <a href="#">
                <i class="icon-cog"></i>
                Administration
              </a>
            </li>
            <li>
              <a href="#">
                <i class="icon-book"></i>
                Manual
              </a>
            </li>
					</ul>
					<div class="btn-group pull-right">
						<button class="btn dropdown-toggle" data-toggle="dropdown" href="#">
							<i class="icon-user"></i>
							You
							<i class="icon-caret-down"></i>
						</button>
						<ul class="dropdown-menu">
							<li><a href="profile.html">Edit your profile</a></li>
							<li><a href="profile.html?change-password">Change password</a></li>
							<li style="margin-top:10px;"><a href="#" class="btn">Log out</a></li>
						</ul>
					</div>
					<span class="pull-right divider-vertical"></span>
					<div class="btn-group pull-right">
						<a class="btn" href="newproject.html">New project</a>
						<!--button class="btn dropdown-toggle" data-toggle="dropdown">
							New project
							<i class="icon-caret-down"></i>
						</button>
						<ul class="dropdown-menu">
							<li><a href="#">New project</a></li>
							<li><a href="#" onClick="$('#chooseFile').click()">Import project</a></li>
							<form style="display: none;" action="project-configuration.html" method="GET">
							<input id="chooseFile" onChange="$('#btn').click()" type="file" style="display: none;">
							<button id="btn" ></button>
							</form>
						</ul-->
					</div>
				</div>
            </div>
        </div>

		<div class="container-fluid top-padded">
			<div id="change-notification" class="alert alert-info lead" style="display:none;">
				<button type="button" class="close" data-dismiss="alert">&times;</button>
				<span></span>
			</div>
			<div class="page-header row-fluid">
				<h1>
					<span id="project-name">$project_name</span>
					<i class="icon-pencil"></i>
				</h1>
			</div>
			<div class="row-fluid">
				<ul class="nav nav-pills">
					<li>
						<a href="project-builds.html">
							Builds (27)
						</a>
					</li>
					<li>
						<a href="project-configuration.html">
							Configuration
						</a>
					</li>
          <li class="active"><a href="import-layer.html">Import layer</a></li>
          <li><a href="new-custom-image.html">New custom image</a></li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#dropdown-menu">
              More
              <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <li><a href="#">Clone project</a></li>
              <li><a href="#">Export project</a></li>
              <li class="divider"></li>
              <li>
                <a href="#" class="error">
                  Delete project
                </a>
              </li>
            </ul>
          </li>
          <li class="pull-right">
  					<form class="form-inline">
  						<div class="input-append">
  							<input type="text" class="input-xlarge input-lg" placeholder="Type the recipe you want to build" >
  							<a href="#" id="build-button" class="btn btn-large btn-primary" disabled>
  								Build
  								<i class="icon-question-sign get-help heading-help" data-placement="left" title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a semicolon and a task name to a target name, like so: <code>busybox:clean</code>"></i>
  							</a>
  						</div>
  					</form>
					</li>
				</ul>

  			<form class="span11">
  				<fieldset>
    				<span class="help-block">The layer you are importing must be compatible with <strong>Yocto Project 1.7 "Fido"</strong>, which is the release you are using in this project.</span>
  					<legend>Layer repository information</legend>
  					<label class="air">
  						Layer name
  						<i class="icon-question-sign get-help" title="Something like 'meta-mylayer'. Your layer name must be unique and can only include letters, numbers and dashes"></i>
  					</label>
  					<input id="layer-name" type="text" required>
  					<div class="row-fluid">
  						<!--div class="alert project-form span5">
  							<h4>A layer called <a href="#">meta-security</a> already exists</h4>
  							Layer names must be unique. Please use a different layer name.
  						</div-->
  						<div class="imported-duplicate alert project-form span5">
  							<h4>A layer called <a href="#">meta-belen</a> already exists</h4>
  							Layer names must be unique. You can either change the layer name or <a href="#">edit the layer information</a>
  						</div>
  					</div>
  					<div class="imported-duplicate">
  						<dl class="dl-vertical">
  							<dt>
  								The meta-belen Git repository URL is
  							</dt>
  							<dd class="lead">
  								https://github.com/belen/meta-belen
  							</dd>
  							<dt>The meta-belen repository subdirectory is</dt>
  							<dd class="lead">
  								belen
  							</dd>
  							<dt>The meta-belen revision is</dt>
  							<dd class="lead">
  								6d7cf8e9dd00bdff882311fecbadfadc46e9cc03
  							</dd>
  						</dl>
  						<a href="#" class="btn btn-link">View the meta-belen layer information</a>
  						<!--label>
  							Add another revision
  							<i class="icon-question-sign get-help" title="A valid revision is a branch name, a tag or a commit SHA"></i>
  						</label>
  						<div class="input-append">
  							<input type="text">
  							<a href="#" class="btn" disabled>Add</a>
  						</div>
  						<label class="checkbox">
  							<input type="checkbox" checked="checked"> Use this revision when adding <a href="#">meta-belen</a> to the project
  						</label-->
  					</div>
  					<div class="standard-import">
  						<label class="project-form">
  							Git repository URL
  							<i class="icon-question-sign get-help" title="Fetch/clone URL of the repository, which can be a local path like <code>/home/me/meta-mylayer</code>. Currently, Toaster only supports Git repositories."></i>
  						</label>
  						<input id="repo" type="text" class="input-xxlarge" required>
  						<label class="project-form">
  							Repository subdirectory
  							<span class="muted">(optional)</span>
  							<i class="icon-question-sign get-help" title="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)"></i>
  						</label>
  						<input type="text" id="subdir">
  						<label class="project-form">
  							Revision
  							<i class="icon-question-sign get-help" title="A valid revision is a branch name, a tag or a commit SHA"></i>
  						</label>
  						<input type="text" class="span4" id="layer-version" required>
  					</div>
  				</fieldset>
  				<fieldset class="air standard-import">
  					<legend>
  						Layer dependencies
  						<span class="muted">(optional)</span>
  						<i class="icon-question-sign get-help heading-help" title="Other layers this layer depends upon"></i>
  					</legend>
  					<ul class="unstyled configuration-list">
  						<li>
  							<a href="" class="layer-info" title="OpenEmbedded | daisy">openembedded-core</a>
  							<i class="icon-trash"></i>
  						</li>
  					</ul>
  					<div class="input-append">
  						<input type="text" autocomplete="off" data-minLength="1" data-autocomplete="off"
  						data-provide="typeahead"  data-source='["meta-aarch64", "meta-acer", "meta-amd",
  						"meta-asus", "meta-baldeagle", "meta-beagleboard", "meta-bug",
  						"meta-crownbay",
  						"meta-crystalforest", "meta-cubox", "meta-digi-arm", "meta-efikamx", "meta-emenlow", "meta-ettus", "meta-exynos", "meta-fri2",
  						"meta-fsl-arm", "meta-fsl-arm-extra", "meta-fsl-ppc", "meta-geeksphone", "meta-gumstix", "meta-gumstix-community", "meta-gumstix-extras",
  						"meta-handheld", "meta-htc", "meta-igep", "meta-intel", "meta-ivi-bsp", "meta-jasperforest", "meta-kirkwood", "meta-lsi", "meta-minnow",
  						"meta-netbookpro", "meta-netmodule", "meta-nokia", "meta-nslu2", "meta-nuc", "meta-openmoko",
  						"meta-imported-layer [3e1dbabbf3...]",
  						"meta-imported-layer [master]",
  						"meta-oe",
  						"meta-openpandora",
  						"meta-ouya",
  						"meta-palm",
  						"meta-picosam9",
  						"meta-raspberrypi",
  						"meta-rockchip",
  						"meta-romley",
  						"meta-samsung",
  						"meta-sugarbay",
  						"meta-sunxi",
  						"meta-ti",
  						"meta-xilinx",
  						"meta-xilinx-community",
  						"meta-yocto-bsp",
  						"meta-yocto-bsp-old",
  						"meta-zynq",
  						"meta-angstrom",
  						"meta-arago-distro",
  						"meta-digi-dey",
  						"meta-eca",
  						"meta-eldk",
  						"meta-embeddedgeeks",
  						"meta-guacamayo",
  						"meta-hipos",
  						"meta-ivi",
  						"meta-mel",
  						"meta-micro",
  						"meta-mmmpi",
  						"meta-shr-distro",
  						"meta-slugos",
  						"meta-tizen",
  						"meta-webos",
  						"meta-woce",
  						"meta-yocto",
  						"meta-alt-desktop-extras",
  						"meta-baryon",
  						"meta-darwin",
  						"meta-gir",
  						"meta-kernel-dev",
  						"meta-linaro",
  						"meta-mentor-staging",
  						"meta-mingw",
  						"meta-ro-rootfs",
  						"meta-tlk",
  						"meta-webos-ports",
  						"meta-ada",
  						"meta-android",
  						"meta-arago-extras",
  						"meta-aurora",
  						"meta-beagleboard-extras",
  						"meta-browser",
  						"meta-buglabs",
  						"meta-chicken",
  						"meta-ci",
  						"meta-cloud-services",
  						"meta-clutter",
  						"meta-efl",
  						"meta-erlang",
  						"meta-filesystems",
  						"meta-fsl-demos",
  						"meta-fso",
  						"meta-games",
  						"meta-gnome",
  						"meta-gpe",
  						"meta-gstreamer10",
  						"meta-hamradio",
  						"meta-initramfs",
  						"meta-java",
  						"meta-kde",
  						"meta-linaro-toolchain",
  						"meta-lxcbench",
  						"meta-measured",
  						"meta-mel-support",
  						"meta-mono",
  						"meta-multimedia",
  						"meta-networking",
  						"meta-openclovis",
  						"meta-openstack",
  						"meta-openstack-compute-deploy",
  						"meta-openstack-controller-deploy",
  						"meta-openstack-qemu",
  						"meta-opie",
  						"meta-oracle-java",
  						"meta-osmocombb",
  						"meta-perl",
  						"meta-qt3",
  						"meta-qt5",
  						"meta-realtime",
  						"meta-ros",
  						"meta-ruby",
  						"meta-sdr",
  						"meta-security",
  						"meta-selinux",
  						"meta-shr",
  						"meta-smalltalk",
  						"meta-sourcery",
  						"meta-systemd",
  						"meta-telephony",
  						"meta-telldus",
  						"meta-tracing",
  						"meta-uav",
  						"meta-virtualization",
  						"meta-web-kiosk",
  						"meta-webserver",
  						"meta-x10",
  						"meta-xfce",
  						"meta-yassl","toolchain-layer"]'
  						placeholder="Type a layer name" id="layer-dependency" class="input-xlarge">
  						<a class="btn" type="button" id="add-layer-dependency" disabled>
  							Add layer
  						</a>
  					</div>
  					<span class="help-inline">You can only add layers Toaster knows about</span>
  				</fieldset>
  				<!--div class="form-actions imported-duplicate">
  					<a href="#" class="btn btn-primary btn-large">Save layer changes</a>
  					<span class="help-inline" style="vertical-align: middle;">This will make the changes to <strong>meta-belen</strong> and add it to your project</span>
  				</div-->
  				<div class="air standard-import">
  					<a href="#dependencies-message" class="btn btn-primary btn-large" data-toggle="modal" data-target="#dependencies-message" disabled>Import and add to project</a>
  					<!--a href="layer-details-just-imported.html" class="btn btn-large" disabled>Just import for the moment</a-->
  					<span class="help-inline" style="vertical-align: middle;">To import a layer, you need to enter a layer name, a Git repository and a revision</span>
  				</div>
  			</form>

		</div>

		<!-- 'Layer dependencies modal' -->
		<div id="dependencies-message" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
				<h3></h3>
			</div>
			<div class="modal-body">
				<p><strong></strong> depends on some layers that are not added to your project. Select the ones you want to add:</p>
				<ul class="unstyled">
					<li>
						<label class="checkbox">
							<input type="checkbox" checked="checked">
							meta-efl
						</label>
					</li>
					<li>
						<label class="checkbox">
							<input type="checkbox" checked="checked">
							meta-intel
						</label>
					</li>
					<li>
						<label class="checkbox">
							<input type="checkbox" checked="checked">
							meta-multimedia
						</label>
					</li>
					<li>
						<label class="checkbox">
							<input type="checkbox" checked="checked">
							meta-oe
						</label>
					</li>
					<li>
						<label class="checkbox">
							<input type="checkbox" checked="checked">
							meta-ruby
						</label>
					</li>
				</ul>
			</div>
			<div class="modal-footer">
				<button id="import-and-add-deps" class="btn btn-primary" data-dismiss="modal">Add layers</button>
				<a class="btn" data-dismiss="modal">Cancel</a>
			</div>
		</div>

    <!-- MODAL FOR CLONING PROJECT -->
		<div id="cloneProject" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			 <div class="modal-header">
			    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			    <h3>Clone $project_name</h3>
			 </div>
			 <div class="modal-body">
			    <p>Type a name for your project:</p>
			    <form id="choose-name-form" style="margin-bottom:0px;">
					<div class="input-append">
						<input class="huge input-xxlarge" type="text" id="type-new-name" autocomplete="off" value="$clone_project_name">
						<button id="apply-change-name" class="btn btn-large" type="button"><i class="icon-remove"></i></button>
					</div>
				</form>
			 </div>
			 <div class="modal-footer">
			 	<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
			    <button href="#" id="clone-button" data-dismiss="modal"  aria-hidden="true" class="btn btn-primary">Clone</button>
			</div>
		</div>
    <!-- MODAL FOR DELETING PROJECT -->
		<div id="deleteProject" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			 <div class="modal-header">
			    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			    <h3>Delete $project_name</h3>
			 </div>
			 <div class="modal-body">
			    <p>Are you sure you want to delete this project?</p>
			 </div>
			 <div class="modal-footer">
			 	<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
			    <a href="all-projects.html" class="btn btn-primary">Yes</a>
			</div>
		</div>



  <script src="assets/js/jquery-1.9.1.min.js" type='text/javascript'></script>
	<script src="assets/js/jquery.tablesorter.min.js" type='text/javascript'></script>
	<script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>
	<script src="assets/js/bootstrap.min.js" type='text/javascript'></script>
	<script src="assets/js/prettify.js" type='text/javascript'></script>
	<script src="assets/js/jit.js" type='text/javascript'></script>
	<script src="assets/js/main.js" type='text/javascript'></script>
	<script>
		$(document).ready(function() {

			//clone project


			$('#clone-button').click(function(){
				// change project name
				var projectName = $('#project-name');
				var cloneName = $('#type-new-name')[0].value;
				projectName.html(cloneName);

				// display notification
				$('#change-notification').hide();
				$('#change-notification span').html('You have cloned <strong>$project_name</strong> into <strong>$clone_project_name</strong>');
				$('#change-notification').fadeIn();
				setTimeout(function(){$('#change-notification').fadeOut()},4000);
			});

			// enable / disable the "add" layer dependencies button
			$("#layer-dependency").change(function(){
				if ($(this).val().length > 0) {
					$("#add-layer-dependency").removeAttr("disabled");
				}
				else {
					$("#add-layer-dependency").attr("disabled","disabled");
				}
			});

			// add layer dependencies
			$('#add-layer-dependency').click(function() {
				var layer = $('#layer-dependency').val();
				$('.configuration-list').append('<li><a href="#">' + layer + '</a> <i class="icon-trash"></i></li>');
				$('#layer-dependency').val('');
				$('#add-layer-dependency').attr('disabled','disabled');
				$(".icon-trash").tooltip( {container:'body', html:true, delay: {show: 100}, title:"Delete" });
			});

			/*
			// prepopulate layer name using repository info
			$('#repo').focusout(function(){
				var repo = $(this).val();
				if (repo.length > 0) {
					var dot = repo.lastIndexOf('.');
					var slash = repo.lastIndexOf('/');
					var name = repo.substring(slash+1, dot);
					$('#layer-name').val(name);
				}
			});

			// prepopulate layer name using subdirectory
			$('#subdir').focusout(function(){
				var subdir = $(this).val();
				if (subdir.length > 0) {
					$('#layer-name').val(subdir	);
				}
			});
			*/

			// enable submit buttons when all required fields are populated
			if ($('#repo').val().length > 0 && $('#layer-version').val().length > 0 && $('#layer-name').val().length > 0 ){
				$('.standard-import .btn-large').removeAttr('disabled');
				$(".form-actions .help-inline").css('visibility','hidden');
			}
			else {
				$('.standard-import .btn-large').attr('disabled', 'disabled');
				$(".form-actions .help-inline").css('visibility','visible');
			}

			$('#repo, #layer-version, #layer-name').keyup(function(){
				if ($('#repo').val().length > 0 && $('#layer-version').val().length > 0 && $('#layer-name').val().length > 0 ){
					$('.standard-import .btn-large').removeAttr('disabled');
					$(".form-actions .help-inline").css('visibility','hidden');
				}
				else {
					$('.standard-import .btn-large').attr('disabled', 'disabled');
					$(".form-actions .help-inline").css('visibility','visible');
				}
			});

			// delete layer from the dependencies list
			$('.icon-trash').click(function(){
				$(this).parent().fadeOut(1000);
			});

			// populate the layer dependencies modal
			$('.btn-primary').click(function() {
				var layer = $('#layer-name').val();
				var onclick_value = "document.location='project-configuration.html?layer=" + layer + "';return false;";
				$('.modal-header h3').html(layer + ' dependencies');
				$('.modal-body strong').html(layer);
				$('#import-and-add-deps').attr("onclick" , onclick_value);
			});

			// hide non-standard imports
			$(".imported-duplicate").hide();

			$("#layer-name").blur(function() {
				if ( $(this).val() == "openembedded-core" ) {
					$(".standard-import, .imported-duplicate").fadeOut();
					$(".duplicate a").html("openembedded-core");
					$(".duplicate").fadeIn();
				}
				else if ( $(this).val() == "meta-belen" ) {
					$(".standard-import").fadeOut();
					$(".duplicate a").html("meta-belen");
					$(".duplicate, .imported-duplicate").fadeIn();
				}
				else {
					$(".duplicate, .imported-duplicate").fadeOut();
					$(".standard-import").fadeIn();
				}
			});
		});
	</script>

    </body>
</html>