forked from michenriksen/gitrob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.erb
47 lines (45 loc) · 2.34 KB
/
index.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
<div class="page-header">
<h1>
<button type="button" class="pull-right btn btn-success" id="new_assessment_button"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> New assessment</button>
Assessments
</h1>
</div>
<div id="assessments_table_container" data-refresh-endpoint="/assessments/_table">
<%= erb :"assessments/_assessments" %>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="new_assessment_modal">
<div class="modal-dialog modal-lg">
<form id="new_assessment_form">
<div class="modal-content">
<div class="modal-body">
<div class="form-group">
<label for="assessment_targets">Targets <small>(comma-separated)</small></label>
<input type="text" class="form-control" id="assessment_targets" name="assessment[targets]" placeholder="acme">
</div>
<div class="form-group">
<label for="assessment_endpoint">API endpoint</label>
<input type="text" class="form-control" id="assessment_endpoint" name="assessment[endpoint]" placeholder="https://api.github.com" value="https://api.github.com">
</div>
<div class="form-group">
<label for="assessment_site">Site</label>
<input type="text" class="form-control" id="assessment_site" name="assessment[site]" placeholder="https://github.com" value="https://github.com">
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="assessment_verify_ssl" name="assessment[verify_ssl]" value="1" checked="checked"> Verify secure connection
</label>
</div>
<div class="form-group">
<label for="assessment_github_access_tokens">GitHub API access tokens <small>(one per line)</small></label>
<textarea class="form-control" id="assessment_github_access_tokens" name="assessment[github_access_tokens]" rows="3"><%=h Gitrob::CLI.configuration["github_access_tokens"].join("\n") %></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="submit" id="update_assessment" class="btn btn-primary">Save</button>
</div>
</div>
</form>
</div>
</div>