-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05ddd44
commit 36558bb
Showing
3 changed files
with
16 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
<div class="inline fields" id="aim_aim_codes_<%= ef.index %>" data-title="aim_aim_codes"> | ||
<div data-controller="field" class="field is-horizontal" data-field-index-value="<%= ef.index %>"> | ||
<% if ef.index == 0 %> | ||
<%= ef.options[:parent_builder].label :aim_codes %> | ||
<% else %> | ||
<label class="six wide field"></label> | ||
<label class="field-label is-normal"></label> | ||
<% end %> | ||
<%= ef.text_field :controller_path, css: { wrapper_input: 'three wide field' } %> | ||
<%= ef.text_field :action_name %> | ||
<%= ef.text_field :code, css: { wrapper_input: 'three wide field' } %> | ||
|
||
<div class="field"> | ||
<%= link_to add_item_admin_aims_path('item', index: ef.index), data: { title: 'add_item' }, remote: true do %> | ||
<i class="plus circle icon"></i> | ||
<% end %> | ||
<% if ef.object.id %> | ||
<%= ef.check_box :_destroy, { on: { offset: false }, css: { wrapper_checkbox: 'ui checkbox' }, checked: true }, 0, 1 %> | ||
<% else %> | ||
<%= link_to remove_item_admin_aims_path('item', index: ef.index), remote: true do %> | ||
<i class="minus circle icon"></i> | ||
<% end %> | ||
<% end %> | ||
<div class="field-body"> | ||
<%= ef.text_field :controller_path %> | ||
<%= ef.text_field :action_name %> | ||
</div> | ||
<div class="field has-addons is-flex"> | ||
<i data-action="click->field#add" class="fa-solid fa-plus" style="cursor: pointer"></i> | ||
<i data-action="click->field#remove" class="fa-solid fa-minus" style="cursor: pointer"></i> | ||
</div> | ||
</div> |