mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
parent
fcc89769cf
commit
6406e6116e
5 changed files with 20 additions and 66 deletions
|
@ -1,10 +1,5 @@
|
||||||
<ol class="breadcrumb">
|
<% content_for :actions do %>
|
||||||
<li><%= link_to t('admin.registrars.index.header'), admin_registrars_path %></li>
|
<%= link_to(t(:back_to_registrar), [:admin, @registrar], class: 'btn btn-default') %>
|
||||||
<li><%= link_to @registrar.name, admin_registrar_path(@registrar) %></li>
|
<% end %>
|
||||||
</ol>
|
<%= render 'shared/title', name: "#{t(:edit)}: #{@registrar.name}" %>
|
||||||
|
|
||||||
<div class="page-header">
|
|
||||||
<h1><%= t '.header' %></h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<%= render 'form' %>
|
<%= render 'form' %>
|
||||||
|
|
|
@ -1,15 +1,7 @@
|
||||||
<div class="page-header">
|
<% content_for :actions do %>
|
||||||
<div class="row">
|
<%= link_to(t('.new_btn'), new_admin_registrar_path, class: 'btn btn-primary') %>
|
||||||
<div class="col-sm-10">
|
<% end %>
|
||||||
<h1><%= t '.header' %></h1>
|
<%= render 'shared/title', name: t(:registrars) %>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-2 text-right">
|
|
||||||
<%= link_to t('.new_btn'), new_admin_registrar_path, class: 'btn btn-primary' %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
|
|
|
@ -1,9 +1,2 @@
|
||||||
<ol class="breadcrumb">
|
<%= render 'shared/title', name: t(:new_registrar) %>
|
||||||
<li><%= link_to t('admin.registrars.index.header'), admin_registrars_path %></li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<div class="page-header">
|
|
||||||
<h1><%= t '.header' %></h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<%= render 'form' %>
|
<%= render 'form' %>
|
||||||
|
|
|
@ -1,31 +1,15 @@
|
||||||
<% registrar = RegistrarPresenter.new(registrar: @registrar, view: self) %>
|
<% registrar = RegistrarPresenter.new(registrar: @registrar, view: self) %>
|
||||||
|
<% content_for :actions do %>
|
||||||
<ol class="breadcrumb">
|
<%= link_to(t(:edit), edit_admin_registrar_path(@registrar), class: 'btn btn-primary') %>
|
||||||
<li><%= link_to t('admin.registrars.index.header'), admin_registrars_path %></li>
|
<%= link_to(t(:delete), admin_registrar_path(@registrar), method: :delete, data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger') %>
|
||||||
</ol>
|
<% end %>
|
||||||
|
<% content_for :page_name do %>
|
||||||
<div class="page-header">
|
<%= @registrar.name %>
|
||||||
<div class="row">
|
<% if @registrar.test_registrar? %>
|
||||||
<div class="col-md-6">
|
<span style="color: #c9302c;">(test)</span>
|
||||||
<h1>
|
<% end %>
|
||||||
<%= @registrar.name %>
|
<% end %>
|
||||||
<% if @registrar.test_registrar? %>
|
<%= render 'shared/title', name: @registrar.name %>
|
||||||
<span class="text-danger"> (test)</span>
|
|
||||||
<% end %>
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-6 text-right">
|
|
||||||
<%= link_to t('.edit_btn'), edit_admin_registrar_path(@registrar),
|
|
||||||
class: 'btn btn-primary' %>
|
|
||||||
<%= link_to t('.delete_btn'), admin_registrar_path(@registrar),
|
|
||||||
method: :delete,
|
|
||||||
data: { confirm: t('.delete_btn_confirm') },
|
|
||||||
class: 'btn btn-default' %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<% if @registrar.errors.any? %>
|
<% if @registrar.errors.any? %>
|
||||||
<% @registrar.errors.each do |attr, err| %>
|
<% @registrar.errors.each do |attr, err| %>
|
||||||
<%= err %>
|
<%= err %>
|
||||||
|
|
|
@ -2,16 +2,9 @@ en:
|
||||||
admin:
|
admin:
|
||||||
registrars:
|
registrars:
|
||||||
index:
|
index:
|
||||||
header: Registrars
|
|
||||||
new_btn: New registrar
|
new_btn: New registrar
|
||||||
|
|
||||||
new:
|
|
||||||
header: New registrar
|
|
||||||
|
|
||||||
show:
|
show:
|
||||||
edit_btn: Edit
|
|
||||||
delete_btn: Delete
|
|
||||||
delete_btn_confirm: Are you sure you want delete registrar?
|
|
||||||
new_api_use_btn: New API user
|
new_api_use_btn: New API user
|
||||||
active: Active
|
active: Active
|
||||||
api_users: API users
|
api_users: API users
|
||||||
|
@ -19,9 +12,6 @@ en:
|
||||||
preferences:
|
preferences:
|
||||||
header: Preferences
|
header: Preferences
|
||||||
|
|
||||||
edit:
|
|
||||||
header: Edit registrar
|
|
||||||
|
|
||||||
create:
|
create:
|
||||||
created: Registrar has been successfully created
|
created: Registrar has been successfully created
|
||||||
not_created: Unable to create registrar
|
not_created: Unable to create registrar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue