+
+ <%= f.label :name %>
+ <%= f.text_field :name, class: "form-control" %>
+
+
+ <%= f.label :description %>
+ <%= f.text_area :description, placeholder: t('.optional'), style: "height: 80px;", class: "form-control" %>
+
+
+ <%= f.submit "For Enter Press", class: "hide" %>
+ <% if @query.persisted? %>
+ <%= link_to t('.delete'), query_path(@query), method: :delete, "data-confirm" => t('.are_you_sure'), class: "btn btn-danger" %>
+ <%= f.submit t('.fork'), class: "btn btn-info" %>
+ <% end %>
+ <%= f.submit @query.persisted? ? t('.update') : t('.create'), class: "btn btn-success" %>
+
+ <% if @query.persisted? %>
+ <% dashboards_count = @query.dashboards.count %>
+ <% checks_count = @query.checks.count %>
+ <% words = [] %>
+ <% words << pluralize(dashboards_count, "dashboard") if dashboards_count > 0 %>
+ <% words << pluralize(checks_count, "check") if checks_count > 0 %>
+ <% if words.any? %>
+
+ <%= t('.part_of', words: words.to_sentence) %>
+
+ <% end %>
+ <% end %>
+