2016-12-02 16:33:09 +08:00
|
|
|
<li data-id="<%= sample_group.id %>"
|
|
|
|
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 %>">
|
|
|
|
<div class="row">
|
2017-01-25 19:01:23 +08:00
|
|
|
<%= form_for [team, sample_group], html: { class: 'form-inline' }, remote: true do |f| %>
|
2016-12-12 21:42:06 +08:00
|
|
|
<div class="col-xs-8">
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.text_field :name, value: sample_group.name , class: 'form-control' %>
|
|
|
|
</div>
|
2016-12-02 16:33:09 +08:00
|
|
|
</div>
|
2016-12-12 21:42:06 +08:00
|
|
|
<div class="col-xs-4 text-right">
|
|
|
|
<button type="button"
|
2016-12-23 18:48:57 +08:00
|
|
|
class="edit-confirm btn btn-primary"><%= t('general.save') %></button>
|
2016-12-12 21:42:06 +08:00
|
|
|
<button type="button"
|
|
|
|
class="abort btn btn-default"
|
|
|
|
data-element="<%=
|
2017-01-25 19:01:23 +08:00
|
|
|
team_sample_group_sample_group_element_path(team,
|
|
|
|
sample_group) %>">
|
2016-12-12 21:42:06 +08:00
|
|
|
<%= t('general.cancel') %></button>
|
2016-12-02 16:33:09 +08:00
|
|
|
</div>
|
2016-12-12 21:42:06 +08:00
|
|
|
<% end %>
|
2016-12-02 16:33:09 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|