24b6a9c620cdf324e7c7fc773df6ae7aab65d41c
Benjamin Renard Initial commit

Benjamin Renard authored 11 years ago

1) <h1 class='addrepo'>Add repository</h1>
2) <?php
3) if (isset($page['addrepo']['error'])) {
4) 	foreach($page['addrepo']['error'] as $e) {
5) 		echo "<div class='addrepo_error'>$e</div>\n";
6) 	}
7) }
8) if (isset($page['addrepo']['msg'])) {
9) 	foreach($page['addrepo']['msg'] as $msg) {
10) 		echo "<div class='addrepo_msg'>$msg</div>\n";
11) 	}
12) }
13) ?>
14) 
15) <form action="?a=addrepo" method='POST'>
16) <dl class='addrepo'>
17) 	<dt>Name</dt>
18) 	<dd><input type='text' name='repo_name' class='addrepo' value="<?php echo (isset($page['addrepo']['values']['name'])?$page['addrepo']['values']['name']:''); ?>"/></dd>
19) 	<dt>Description</dt>
20) 	<dd><input type='text' name='repo_desc' class='addrepo' value="<?php echo (isset($page['addrepo']['values']['desc'])?$page['addrepo']['values']['desc']:''); ?>"/></dd>
Benjamin Renard Add 'nopassword' parameter

Benjamin Renard authored 10 years ago

21) 	<?php
22) 	global $conf;
23) 	if (!isset($conf['addrepo']['nopassword']) || ($conf['addrepo']['nopassword']===False)) {
24) 		echo"
25) 		<dt>Password</dt>
26) 		<dd><input type='password' name='repo_pwd' class='addrepo'/></dd>
27) 		";
28) 	}
29) 	?>