Commit ea626c80 authored by Leigh Stoller's avatar Leigh Stoller

Invite page.

parent 220bf5a2
<div class='row'>
<div class='col-lg-6 col-lg-offset-3
col-md-8 col-md-offset-2
col-sm-10 col-sm-offset-1
col-xs-12'>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'>Invite User to join your Project</h3>
</div>
<div class='panel-body'>
<% if (general_error) { %>
<font color=red><%- general_error %></font>
<% } %>
<form id='invite_form'
class='form-horizontal' role='form'
method='post' action='invite.php'>
<fieldset>
<div class='row'>
<div class="col-xs-5 col-xs-offset-1">
<% if (projects.length == 1) { %>
<input name="formfields[pid]" readonly
value="<%- formfields.pid %>"
class="form-control format-me"
data-key="pid">
<% } else { %>
<select name="formfields[pid]"
id='pid'
class='form-control format-me'
data-key="pid"
placeholder='Please Select Project'>
<option value=''>Please Select Project</option>
<% _.each(projects, function(name) { %>
<option
<% if (_.has(formfields, 'pid') &&
formfields.pid == name) { %>
selected
<% } %>
value='<%= name %>'><%= name %>
</option>
<% }); %>
</select>
<% } %>
</div>
</div>
<div class='row'>
<div class="col-xs-5 col-xs-offset-1">
<input name="formfields[email]"
value="<%- formfields.email %>"
class="form-control format-me" data-key="email"
placeholder="Email Address" type="text">
</div>
</div>
<div class='row'>
<div class="col-xs-10 col-xs-offset-1">
<textarea name="formfields[message]"
rows=5
class='form-control format-me'
type='textarea'
data-key='profile_rspec'
placeholder='Optional message to invitee'
><%- formfields.message %></textarea>
</div>
</div>
</fieldset>
<button class='btn btn-primary btm-sm pull-right'
type='submit' name='invite'>Invite</button>
</form>
</div>
</div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment