phpci/PHPCI/View/ProjectForm.phtml
2013-05-10 12:28:43 +01:00

22 lines
780 B
PHTML

<div id="title">
<h1><?= $type == 'add' ? 'Add Project' : 'Edit Project' ?></h1>
</div>
<div class="row">
<div class="span4">
<div class="well" style="">
<?php if(!is_null($key)): ?>
<p>To make it easier to get started, we've generated a public / private key pair for you to use for this project. To use it, just add the following public key to the "deploy keys" section of your repository settings on Github / Bitbucket.</p>
<textarea style="width: 90%; height: 150px;"><?= $key ?></textarea>
<?php elseif($type == 'add'): ?>
<p>Fill in the form to the right to add your new project.</p>
<?php else: ?>
<p>Edit your project details using the form to the right.</p>
<?php endif; ?>
</div>
</div>
<div class="span8">
<?= $form; ?>
</div>
</div>