-
Notifications
You must be signed in to change notification settings - Fork 29
/
status.erb
51 lines (48 loc) · 1.59 KB
/
status.erb
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
<div class="page-header">
<h1>Welcome back, <%= @status[:name] %>!</h1>
</div>
<p>Looks like you've already started the process of signing the <%= agreement_name %>, thank you!</p>
<% if @param == 'form' %>
<p class="text-danger"><%= @message %></p>
<% end %>
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">Username</label>
<div class="col-sm-10">
<p class="form-control-static"><%= @status[:login] %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<p class="form-control-static"><%= @status[:name] %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<p class="form-control-static"><%= @status[:email] %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Company</label>
<div class="col-sm-10">
<p class="form-control-static"><%= @status[:company] %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Status</label>
<div class="col-sm-10">
<p class="form-control-static">
<span class="label label-<%= label_color(@status[:status]) %>"><%= @status[:status] %></span>
</p>
</div>
</div>
<% unless @status[:status] == 'Completed' %>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-danger" formaction="/reset" formmethod="post">Reset</button>
</div>
</div>
<% end %>
</form>