internetee/registry

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

Summary

Maintainability
Test Coverage
<% domain = DomainPresenter.new(domain: @domain, view: self) %>

<ol class="breadcrumb">
    <li><%= link_to t('admin.domains.index.header'), admin_domains_path %></li>
    <li><%= link_to @domain, admin_domain_path(@domain) %></li>
</ol>


<div class="page-header">
    <div class="row">
        <div class="col-sm-8">
            <h1 class="text-center-xs" style="word-break:break-all;">
                <%= t '.header' %> <%= domain.name_with_status %>
            </h1>
        </div>
        <div class="col-sm-4 text-right">
            <div class="btn-group">
                <button class="btn btn-primary" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    Actions
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                    <li><%= domain.force_delete_toggle_btn %></li>
                    <li><%= domain.remove_registry_lock_btn %></li>
                    <li><%= domain.keep_btn %></li>
                    <div class="divider"></div>
                    <li><%= link_to t('.add_new_status_btn'), '#', class: 'js-add-status' %></li>
                </ul>
            </div>
        </div>
    </div>
</div>

<%= render 'form' %>
<%= render 'force_delete_dialog', domain: @domain %>