Sha256: 396a0a6f6cb083c911c7d76dc0ad54cfc34267b06ba0bb811cc12252de1d3247

Contents?: true

Size: 796 Bytes

Versions: 3

Compression:

Stored size: 796 Bytes

Contents

<%# locals => f %>

<%= f.hidden_field :metric_id %>

<% if f.object.metric.is_switch %>
	<span class="switch-type"><%=h f.object.switch_type %></span>
<% end %>

<div class="item name">
	<%= f.label :name, 'Variant name' %><br />
	<%= f.text_field :name %>
</div>

<% if !f.object.metric.is_switch %>
	<div class="item value">
		<%= f.label :value, 'Metric value' %><br />
		<%= f.text_area :value %>
	</div>
	
	<div class="item opt1">
		<%= f.label :opt1, 'Option 1' %><br />
		<%= f.text_area :opt1 %>
	</div>
	
	<div class="item opt2">
		<%= f.label :opt2, 'Option 2' %><br />
		<%= f.text_area :opt2 %>
	</div>
<% end %>
<div class="item priority">
	<%= f.label :priority, 'Priority' %><br />
	<%= f.text_field :priority %>
</div>

<div class="item submit">
	<%= f.submit 'Submit' %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mountain-goat-0.0.5 lib/mountain_goat/views/mountain_goat/mountain_goat_metric_variants/_metric_variant_form.html.erb
mountain-goat-0.0.4 lib/mountain_goat/views/mountain_goat/mountain_goat_metric_variants/_metric_variant_form.html.erb
mountain-goat-0.0.3 lib/mountain_goat/views/mountain_goat/mountain_goat_metric_variants/_metric_variant_form.html.erb