<% label = local_assigns[:label].presence %>
<% html_options = {cols: 85, rows: 15}.update(local_assigns[:html_options] || {}) %>

<div class="form-group">
  <% if local_assigns[:form] %>
    <%= form.label attribute, label %>
    <%= form.text_area attribute, html_options %>
  <% else %>
    <%= label_tag name, label %>
    <%= text_area_tag name, value, html_options %>
  <% end %>
</div>
