|
14 | 14 | <th>Scale Factor</th>
|
15 | 15 | <th>Tags</th>
|
16 | 16 | <th>Creator</th>
|
| 17 | + <th>Organize files</th> |
17 | 18 | </tr>
|
18 | 19 | <% @models.each do |model| %>
|
19 | 20 | <tr>
|
|
22 | 23 | <td><%= number_to_percentage model.scale_factor, strip_insignificant_zeros: true %></td>
|
23 | 24 | <td><%= render partial: 'tag', collection: model.tags, locals: {selected: nil, model_id: model.id } %></td>
|
24 | 25 | <td><%= link_to model.creator.name, model.creator if model.creator %></td>
|
| 26 | + <td><code><%= model.formatted_path if model.formatted_path != model.path %></code></td> |
25 | 27 | </tr>
|
26 | 28 | <% end %>
|
27 | 29 | </table>
|
28 | 30 |
|
29 | 31 | <h3>Select changes to make:</h3>
|
30 | 32 |
|
31 |
| - <div class="row mb-3 input-group"> |
| 33 | + <div class="row mb-3"> |
32 | 34 | <%= form.label :scale_factor, class: "col-sm-2 col-form-label" %>
|
33 |
| - <%= form.number_field :scale_factor, class: "form-control col-auto" %> |
| 35 | + <div class="col-sm-10"> |
| 36 | + <%= form.number_field :scale_factor, class: "form-control col-auto" %> |
| 37 | + </div> |
34 | 38 | </div>
|
35 | 39 |
|
36 |
| - <div class="row mb-3 input-group"> |
| 40 | + <div class="row mb-3"> |
37 | 41 | <%= form.label :creator_id, class: "col-sm-2 col-form-label" %>
|
38 |
| - <%= form.collection_select :creator_id, @creators, :id, :name, {include_blank: true}, {class: "form-control col-auto form-select"} %> |
39 |
| - <%= link_to "New Creator", new_creator_path, class: "btn btn-outline-secondary col-auto" %> |
| 42 | + <div class="col-sm-10"> |
| 43 | + <div class="input-group"> |
| 44 | + <%= form.collection_select :creator_id, @creators, :id, :name, {include_blank: true}, {class: "form-control col-auto form-select"} %> |
| 45 | + <%= link_to "New Creator", new_creator_path, class: "btn btn-outline-secondary col-auto" %> |
| 46 | + </div> |
| 47 | + </div> |
40 | 48 | </div>
|
41 | 49 |
|
42 | 50 | <%= render 'tags_edit', :form => form, :name => :add_tags, :value => "", :label => "Add Tags" %>
|
43 | 51 | <%= render 'tags_edit', :form => form, :name => :remove_tags, :value => "", :label => "Remove Tags" %>
|
44 | 52 |
|
| 53 | + <div class="row mb-3"> |
| 54 | + <%= form.label "Organize files", class: "col-sm-2 col-form-label" %> |
| 55 | + <div class="col-sm-10"> |
| 56 | + <div class="form-switch"> |
| 57 | + <%= form.check_box :organize, class: "form-check-input form-check-inline" %> |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + |
45 | 62 | <%= form.hidden_field :tag, value: @tag if @tag %>
|
46 | 63 | <%= form.submit "Update Selected Models", class: "btn btn-primary" %>
|
47 | 64 |
|
|
0 commit comments