2016-12-02 16:33:09 +08:00
|
|
|
<li data-id="<%= sample_group.id %>"
|
|
|
|
data-edit="<%=
|
2017-01-25 19:01:23 +08:00
|
|
|
edit_team_sample_group_path(team, sample_group) %>"
|
2016-12-02 16:33:09 +08:00
|
|
|
data-delete="<%=
|
2017-01-25 19:01:23 +08:00
|
|
|
team_sample_group_destroy_confirmation_path(team, sample_group) %>"
|
2016-12-02 16:33:09 +08:00
|
|
|
data-color="<%= sample_group.color %>">
|
2016-12-12 17:30:03 +08:00
|
|
|
<span class="sample-type-group-name"><%= sample_group.name %></span>
|
2017-03-15 00:32:25 +08:00
|
|
|
<span class="form-group">
|
|
|
|
<input class="text-edit" style="display: none;" />
|
|
|
|
<span class="pull-right sample-group-controls">
|
|
|
|
<span class="color-picker">
|
|
|
|
<%= bootstrap_form_for [team, sample_group], remote: true do |f| %>
|
|
|
|
<%= f.color_picker_select :color,
|
|
|
|
Constants::TAG_COLORS,
|
|
|
|
class: 'edit-sample-group-color' %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
2018-05-22 22:55:58 +08:00
|
|
|
<span class="edit-sample-group fas fa-pencil-alt"></span>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="delete fas fa-trash-alt"></span>
|
2016-12-02 16:33:09 +08:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</li>
|