_form.html.erb
2.9 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<%= render :partial => 'shared/form_errors', :locals => {:object => @repository} %>
<div class="row margin-left-none">
<div class="form-table span9">
<div class="form-row">
<div class="field-container">
<%= f.label :name, class: 'control-label' %>
<%= f.text_field :name, class: 'text-field' %>
</div>
<div class="help-container">
<p>
Your repository name!
</p>
</div>
</div>
<div class="form-row">
<div class="field-container">
<%= f.label :description, class: 'control-label' %>
<%= f.text_area :description, class: 'text-area' %>
</div>
<div class="help-container">
<p>
Tell us what this repository contains!
</p>
</div>
</div>
<div class="form-row">
<div class="field-container">
<%= f.label :license, 'License', class: 'control-label' %>
<%= f.select( :license, license_options, class: 'text-area' ) %>
</div>
<div class="help-container">
<p>
How is this software licensed?
</p>
</div>
</div>
<div class="form-row">
<div class="field-container">
<%= f.label :type, class: 'control-label' %>
<%= f.select( :type, @repository_types, class: 'tooltip-control' ) %>
</div>
<div class="help-container">
<p>
Which version control system does the software use?
</p>
</div>
</div>
<div class="form-row">
<div class="field-container">
<%= f.label :address, class: 'control-label' %>
<%= f.text_field :address, class: 'text-field' %>
</div>
<div class="help-container">
<p>
Tell us the URL where the repository can be found.
</p>
</div>
</div>
<div class="form-row">
<div class="field-container">
<%= f.label :process_period, 'Process Period', class: 'control-label' %>
<%= f.select( :process_period, periodicity_options, class: 'tooltip-control' ) %>
</div>
<div class="help-container">
<p>
Select how often the project will be reanalyzed.
</p>
</div>
</div>
<div class="form-row">
<div class="field-container">
<%= f.label :configuration, class: 'control-label' %>
<% configuration_list = KalibroGatekeeperClient::Entities::Configuration.all.map { |conf| [conf.name, conf.id] } %>
<%= f.select( :configuration_id, configuration_list, class: 'tooltip-control' ) %>
</div>
<div class="help-container">
<p>
A configuration defines all the metrics to be analyzed in the source code. Choose your weapon.
</p>
</div>
</div>
</div>
</div>
<div class="row margin-left-none" style="margin-top: 20px">
<%= f.submit 'Save', class: 'btn btn-primary' %>
<%= link_to 'Back', project_path(@project_id), class: 'btn btn-default' %>
</div>