Zionetrix::Git
Repositories
Help
Report an Issue
viewgit-addrepo-plugin
Code
Commits
Branches
Tags
Search
Tree:
24b6a9c
Branches
Tags
master
viewgit-addrepo-plugin
addrepo
templates
addrepo.php
Add 'nopassword' parameter
Benjamin Renard
commited
24b6a9c
at 2014-11-27 14:58:14
addrepo.php
Blame
History
Raw
<h1 class='addrepo'>Add repository</h1> <?php if (isset($page['addrepo']['error'])) { foreach($page['addrepo']['error'] as $e) { echo "<div class='addrepo_error'>$e</div>\n"; } } if (isset($page['addrepo']['msg'])) { foreach($page['addrepo']['msg'] as $msg) { echo "<div class='addrepo_msg'>$msg</div>\n"; } } ?> <form action="?a=addrepo" method='POST'> <dl class='addrepo'> <dt>Name</dt> <dd><input type='text' name='repo_name' class='addrepo' value="<?php echo (isset($page['addrepo']['values']['name'])?$page['addrepo']['values']['name']:''); ?>"/></dd> <dt>Description</dt> <dd><input type='text' name='repo_desc' class='addrepo' value="<?php echo (isset($page['addrepo']['values']['desc'])?$page['addrepo']['values']['desc']:''); ?>"/></dd> <?php global $conf; if (!isset($conf['addrepo']['nopassword']) || ($conf['addrepo']['nopassword']===False)) { echo" <dt>Password</dt> <dd><input type='password' name='repo_pwd' class='addrepo'/></dd> "; } ?> </dl> <input type='submit' value='Create' id='addrepo_submit'/> </form>