* Upgrade Stimulus to 2.0 * Convert ArticleController to use Stimulus 2 * Convert ModalController to Stimulus 2 * Convert BufferController to Stimulus 2 * Convert ConfigController to use Stimuus 2 * Convert ImageUploadController to Stimulus 2 * Convert Reaction controller to Stimulus 2
36 lines
1.6 KiB
Text
36 lines
1.6 KiB
Text
<span data-controller="modal" data-modal-hidden-class="hidden">
|
|
<button class="crayons-btn" type="button" data-action="modal#toggleModal">
|
|
Add group
|
|
</button>
|
|
|
|
<div id="add-group-modal" class="hidden" data-modal-target="toggle">
|
|
<div class="crayons-modal crayons-modal--s absolute">
|
|
<div class="crayons-modal__box">
|
|
<header class="crayons-modal__box__header">
|
|
<h2>Add Group</h2>
|
|
<button type="button" data-action="modal#toggleModal" class="crayons-btn crayons-btn--icon crayons-btn--ghost">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" class="crayons-icon" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636l4.95 4.95z" />
|
|
</svg>
|
|
</button>
|
|
</header>
|
|
<div class="crayons-modal__box__body">
|
|
<div class="form-group grid p-6 mb-6 gap-1">
|
|
<%= form_for [:admin, ProfileFieldGroup.new] do |form| %>
|
|
<div class="form-group">
|
|
<%= form.label :name %>
|
|
<%= form.text_field :name, class: "form-control" %>
|
|
</div>
|
|
<div class="form-group">
|
|
<%= form.label :description %>
|
|
<%= form.text_field :description, class: "form-control" %>
|
|
</div>
|
|
<%= form.submit class: "btn btn-primary" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="crayons-modal__overlay"></div>
|
|
</div>
|
|
</div>
|
|
</span>
|