Merge pull request #395 from internetee/registry-279

Registry 279
This commit is contained in:
Timo Võhmar 2017-03-01 14:55:19 +02:00 committed by GitHub
commit 924df78fe5
31 changed files with 212 additions and 34 deletions

View file

@ -27,6 +27,11 @@
= f.label :phone
.col-md-7
= f.text_field(:phone, class: 'form-control')
.form-group
.col-md-4.control-label
= f.label :website
.col-md-7
= f.url_field :website, class: 'form-control'
.form-group
.col-md-4.control-label
= f.label :email
@ -75,7 +80,7 @@
.col-md-8
.panel.panel-default
.panel-heading.clearfix
.pull-left= t(:misc)
.pull-left= t('.misc')
.panel-body
.form-group
.col-md-4.control-label
@ -91,4 +96,4 @@
%hr
.row
.col-md-8.text-right
= button_tag(t(:save), class: 'btn btn-primary')
= button_tag(t(".#{f.object.new_record? ? 'create' : 'update'}_btn"), class: 'btn btn-success')

View file

@ -1,5 +1,5 @@
- content_for :actions do
= link_to(t(:new), new_admin_registrar_path, class: 'btn btn-primary')
= link_to(t('.new_btn'), new_admin_registrar_path, class: 'btn btn-primary')
= render 'shared/title', name: t(:registrars)
.row

View file

@ -39,6 +39,9 @@
%dt= t(:credit_balance)
%dd= @registrar.balance
%dt= Registrar.human_attribute_name :website
%dd= @registrar.website
.col-md-6
.panel.panel-default
.panel-heading