mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
parent
ea305618a5
commit
6393e4ba6f
5 changed files with 66 additions and 20 deletions
|
@ -1,5 +1,10 @@
|
||||||
<% content_for :actions do %>
|
<ol class="breadcrumb">
|
||||||
<%= link_to(t(:back_to_registrar), [:admin, @registrar], class: 'btn btn-default') %>
|
<li><%= link_to t('admin.registrars.index.header'), admin_registrars_path %></li>
|
||||||
<% end %>
|
<li><%= link_to @registrar.name, admin_registrar_path(@registrar) %></li>
|
||||||
<%= render 'shared/title', name: "#{t(:edit)}: #{@registrar.name}" %>
|
</ol>
|
||||||
|
|
||||||
|
<div class="page-header">
|
||||||
|
<h1><%= t '.header' %></h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= render 'form' %>
|
<%= render 'form' %>
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
<% content_for :actions do %>
|
<div class="page-header">
|
||||||
<%= link_to(t('.new_btn'), new_admin_registrar_path, class: 'btn btn-primary') %>
|
<div class="row">
|
||||||
<% end %>
|
<div class="col-sm-10">
|
||||||
<%= render 'shared/title', name: t(:registrars) %>
|
<h1><%= t '.header' %></h1>
|
||||||
|
</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,2 +1,9 @@
|
||||||
<%= render 'shared/title', name: t(:new_registrar) %>
|
<ol class="breadcrumb">
|
||||||
|
<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,15 +1,31 @@
|
||||||
<% registrar = RegistrarPresenter.new(registrar: @registrar, view: self) %>
|
<% registrar = RegistrarPresenter.new(registrar: @registrar, view: self) %>
|
||||||
<% content_for :actions do %>
|
|
||||||
<%= link_to(t(:edit), edit_admin_registrar_path(@registrar), class: 'btn btn-primary') %>
|
<ol class="breadcrumb">
|
||||||
<%= link_to(t(:delete), admin_registrar_path(@registrar), method: :delete, data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger') %>
|
<li><%= link_to t('admin.registrars.index.header'), admin_registrars_path %></li>
|
||||||
<% end %>
|
</ol>
|
||||||
<% content_for :page_name do %>
|
|
||||||
<%= @registrar.name %>
|
<div class="page-header">
|
||||||
<% if @registrar.test_registrar? %>
|
<div class="row">
|
||||||
<span style="color: #c9302c;">(test)</span>
|
<div class="col-md-6">
|
||||||
<% end %>
|
<h1>
|
||||||
<% end %>
|
<%= @registrar.name %>
|
||||||
<%= render 'shared/title', name: @registrar.name %>
|
<% if @registrar.test_registrar? %>
|
||||||
|
<span style="color: #c9302c;"> (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,9 +2,16 @@ 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
|
||||||
|
@ -12,6 +19,9 @@ en:
|
||||||
preferences:
|
preferences:
|
||||||
header: Preferences
|
header: Preferences
|
||||||
|
|
||||||
|
edit:
|
||||||
|
header: Edit registrar
|
||||||
|
|
||||||
billing:
|
billing:
|
||||||
header: Billing
|
header: Billing
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue