Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

521 B
Raw Blame
<div class="relative">
  <div class="<%= container_classes %>">
    <% @options.each_with_index do |option, index| %>
      <% label, value, icon = option %>
      <% input_id = unique_id(value) %>
      
      <label for="<%= input_id %>" class="<%= label_classes %>">
        <%= tag.input(**input_attributes(value).merge(id: input_id)) %>
        <% if icon.present? %>
          <i class="bi bi-<%= icon %> text-xs"></i>
        <% end %>
        <span><%= label %></span>
      </label>
    <% end %>
  </div>
</div>