internetee/registry

View on GitHub
app/views/admin/domains/_force_delete_dialog.html.erb

Summary

Maintainability
Test Coverage
<div class="modal domain-edit-force-delete-dialog" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"><%= t '.title' %></h4>
            </div>

            <%= form_tag admin_domain_force_delete_path(domain), id: 'domain-force-delete-form',
                         class: 'modal-body form-horizontal' do %>
                <div class="form-group force-delete-type">
                    <div class="col-md-9">
                        <div class="checkbox">
                            <label>
                                <%= check_box_tag 'soft_delete', 1, true %>
                                <%= t '.use_soft_delete' %>
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-9">
                        <div class="checkbox">
                            <label>
                                <%= check_box_tag 'notify_by_email', 1, true,
                                                  data: { dependent_content_toggle: true } %>
                                <%= t '.notify_by_email' %>
                            </label>
                        </div>
                    </div>
                </div>

            <% end %>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= t '.close_btn' %></button>
                <button type="submit" form="domain-force-delete-form" class="btn btn-danger">
                    <%= t '.submit_btn' %>
                </button>
            </div>

        </div>
    </div>
</div>