diff --git a/app/views/compound_metric_configurations/_form.html.erb b/app/views/compound_metric_configurations/_form.html.erb index 839f125..7e20f71 100644 --- a/app/views/compound_metric_configurations/_form.html.erb +++ b/app/views/compound_metric_configurations/_form.html.erb @@ -3,52 +3,52 @@
<%= f.fields_for :metric do |metric| %> - <%= render partial: "metric_options", :locals => {:f => metric, :metric => @compound_metric_configuration.metric} %> + <%= render partial: "metric_options", :locals => {:f => metric, :metric => @compound_metric_configuration.metric} %> <% end %> -
-
- <%= f.label :code, class: 'control-label' %> - <%= f.text_field :code, class: 'text-field' %> -
-
-

- Code is a variable that keeps the value of a metric analysis. It is used inside a compound metric. -

-

- Example: - Code foo := 10 -

-
+
+
+ <%= f.label :code, class: 'control-label' %> + <%= f.text_field :code, class: 'text-field' %>
+
+

+ A variable that holds the value of a metric calculation. It can be used in the script of another compound metric. +

+

+ Example: + Code foo := 10 +

+
+
-
-
- <%= f.label :weight, class: 'control-label' %> - <%= f.text_field :weight, class: 'text-field' %> -
-
-

- It is the weight of the metric. -

-
+
+
+ <%= f.label :weight, class: 'control-label' %> + <%= f.text_field :weight, class: 'text-field' %> +
+
+

+ It is used to calculate the weighted average of a <%= link_to 'module', tutorials_path("keywords", anchor: "module")%>'s grade. +

+
- <% if @compound_metric_configuration.persisted? %> - <%= hidden_field_tag(:reading_group_id, @metric_configuration.reading_group_id) %> - <% else %> -
-
- <%= f.label :reading_group_id, 'Reading Group', class: 'control-label' %> - <%= f.select( :reading_group_id, reading_group_options, {class: 'form-control'} ) %> -
-
-

- The Reading Group associated with this metric. -

-
-
- <% end %> + <% if @compound_metric_configuration.persisted? %> + <%= hidden_field_tag(:reading_group_id, @metric_configuration.reading_group_id) %> + <% else %> +
+
+ <%= f.label :reading_group_id, 'Reading Group', class: 'control-label' %> + <%= f.select( :reading_group_id, reading_group_options, {class: 'form-control'} ) %> +
+
+

+ The <%= link_to 'Reading Group', tutorials_path('keywords', anchor: 'reading_group') %> associated with this metric. +

+
+
+ <% end %>

diff --git a/app/views/compound_metric_configurations/_metric_options.html.erb b/app/views/compound_metric_configurations/_metric_options.html.erb index 68732ff..7c03d8f 100644 --- a/app/views/compound_metric_configurations/_metric_options.html.erb +++ b/app/views/compound_metric_configurations/_metric_options.html.erb @@ -29,7 +29,7 @@

- A mathematical expression to calculate your compound metric. + A mathematical expression (in javascript) to calculate your compound metric. It needs a return statement. The codes of already created metrics can be used inside the script.

@@ -41,7 +41,7 @@

- The code type your metric is designed to work with. + The <%= link_to 'granularity', tutorials_path("keywords", anchor: "granularity")%> of the <%= link_to 'modules', tutorials_path("keywords", anchor: "module")%> measured by this metric.

diff --git a/app/views/metric_configurations/_form.html.erb b/app/views/metric_configurations/_form.html.erb index 0c2a648..207193d 100644 --- a/app/views/metric_configurations/_form.html.erb +++ b/app/views/metric_configurations/_form.html.erb @@ -10,7 +10,7 @@

- It is used to calculate the weighted average of a <%= link_to 'module', tutorials_path("keywords", anchor: "module")%>. + It is used to calculate the weighted average of a <%= link_to 'module', tutorials_path("keywords", anchor: "module")%>'s grade.

diff --git a/app/views/mezuro_ranges/_form.html.erb b/app/views/mezuro_ranges/_form.html.erb index 448ceaa..d169e96 100644 --- a/app/views/mezuro_ranges/_form.html.erb +++ b/app/views/mezuro_ranges/_form.html.erb @@ -1,66 +1,65 @@ <%= render :partial => 'shared/form_errors', :locals => {:object => @mezuro_range} %> -
-
+
+
-
-
- <%= f.label :beginning, class: 'control-label' %> - <%= f.text_field :beginning, class: 'diminished-text-field' %> - <%= link_to '-∞'.html_safe, 'javascript:void(0)', :onClick => "jQuery( '#mezuro_range_beginning' ).val('-INF');", class: 'btn btn-default align-button' %> -
-
-

- Starting value for your Range. -

+
+ <% if @readings.size == 0 %> + <%= render partial: 'no_readings' %> + <% else %> +
+ <%= f.label :reading_id, 'Reading', class: 'control-label' %> + <%= f.select( :reading_id, readings_options(@readings), {class: 'form-control'} ) %> +
+
+

+ The <%= link_to 'Reading', tutorials_path('keywords', anchor: 'reading')%> associated with this <%= link_to 'Range', tutorials_path('keywords', anchor: 'range')%>. +

+
+ <% end %>
-
-
-
- <%= f.label :end, class: 'control-label' %> - <%= f.text_field :end, class: 'diminished-text-field' %> - <%= link_to '∞'.html_safe, 'javascript:void(0)', :onClick => "jQuery( '#mezuro_range_end' ).val('INF');", class: 'btn btn-default align-button' %> +
+
+ <%= f.label :beginning, class: 'control-label' %> + <%= f.text_field :beginning, class: 'diminished-text-field' %> + <%= link_to '-∞'.html_safe, 'javascript:void(0)', :onClick => "jQuery( '#mezuro_range_beginning' ).val('-INF');", class: 'btn btn-default align-button' %> +
+
+

+ This Range's lower limit. +

+
-
-

- Ending value for your Range. -

-
-
-
-
- <%= f.label :comments, class: 'control-label' %> - <%= f.text_area :comments, class: 'text-area' %> -
-
-

- A short description of your Range. -

+
+
+ <%= f.label :end, class: 'control-label' %> + <%= f.text_field :end, class: 'diminished-text-field' %> + <%= link_to '∞'.html_safe, 'javascript:void(0)', :onClick => "jQuery( '#mezuro_range_end' ).val('INF');", class: 'btn btn-default align-button' %> +
+
+

+ This Range's upper limit. +

+
-
-
- <% if @readings.size == 0 %> - <%= render partial: 'no_readings' %> - <% else %> -
- <%= f.label :reading_id, 'Reading', class: 'control-label' %> - <%= f.select( :reading_id, readings_options(@readings), {class: 'form-control'} ) %> -
-
-

- The Reading associated with this Range. -

-
- <% end %> +
+
+ <%= f.label :comments, class: 'control-label' %> + <%= f.text_area :comments, class: 'text-area' %> +
+
+

+ An explanation of why you chose this interval, with that reading for this <%= link_to 'Metric', tutorials_path('keywords', anchor: 'metric')%>. +

+
+
-
-
-
- <%= f.submit 'Save', class: 'btn btn-primary' %> - <%= link_to 'Back', mezuro_configuration_metric_configuration_path(@mezuro_configuration_id, @metric_configuration_id), class: 'btn btn-default' %> -
+
+ <%= f.submit 'Save', class: 'btn btn-primary' %> + <%= link_to 'Back', mezuro_configuration_metric_configuration_path(@mezuro_configuration_id, @metric_configuration_id), class: 'btn btn-default' %> +
-- libgit2 0.21.2