Move persistent/cache toggle into a partial.
[arvados.git] / apps / workbench / app / views / collections / _toggle_persist.html.erb
1 <div class="btn-group btn-group-xs toggle-persist fill" data-toggle="buttons" data-remote-href="<%= set_persistent_collection_path(id: uuid) %>" data-persistent-state="<%= current_state %>">
2   <label class="btn btn-info <%= 'active' if current_state=='persistent' %>">
3     <input type="radio" name="wants" value="persistent">Persistent
4   </label>
5   <label class="btn btn-info <%= 'active' if current_state=='cache' %>">
6     <input type="radio" name="wants" value="cache">Cache
7   </label>
8 </div>