mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 04:29:33 +02:00
Restyle buttons
This commit is contained in:
parent
091a863bb9
commit
1ad8143db8
12 changed files with 24 additions and 24 deletions
|
@ -18,6 +18,6 @@
|
||||||
.row
|
.row
|
||||||
.col-md-8.text-right
|
.col-md-8.text-right
|
||||||
- if @contact.persisted?
|
- if @contact.persisted?
|
||||||
= button_tag t(:save), class: 'btn btn-primary'
|
= button_tag t(:save), class: 'btn btn-warning'
|
||||||
- else
|
- else
|
||||||
= button_tag t(:create), class: 'btn btn-primary'
|
= button_tag t(:create), class: 'btn btn-warning'
|
||||||
|
|
|
@ -25,4 +25,4 @@
|
||||||
%hr
|
%hr
|
||||||
.row
|
.row
|
||||||
.col-md-8.text-right
|
.col-md-8.text-right
|
||||||
= button_tag(t(:add), class: 'btn btn-primary')
|
= button_tag(t(:add), class: 'btn btn-warning')
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8.text-right
|
.col-md-8.text-right
|
||||||
= button_tag(t('shared.save'), class: 'btn btn-primary')
|
= button_tag(t('shared.save'), class: 'btn btn-warning')
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- content_for :actions do
|
- content_for :actions do
|
||||||
= link_to(t(:new), new_registrar_domain_path, class: 'btn btn-default')
|
= link_to(t(:new), new_registrar_domain_path, class: 'btn btn-primary')
|
||||||
= link_to(t(:transfer), transfer_registrar_domains_path, class: 'btn btn-default')
|
= link_to(t(:transfer), transfer_registrar_domains_path, class: 'btn btn-default')
|
||||||
= link_to(t(:keyrelay), registrar_keyrelay_path, class: 'btn btn-default')
|
= link_to(t(:keyrelay), registrar_keyrelay_path, class: 'btn btn-default')
|
||||||
= link_to(t(:nameservers), registrar_nameservers_path, class: 'btn btn-default')
|
= link_to(t(:nameservers), registrar_nameservers_path, class: 'btn btn-default')
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
= Time.zone.parse(x['valid_to']).try(:to_date)
|
= Time.zone.parse(x['valid_to']).try(:to_date)
|
||||||
%td
|
%td
|
||||||
= link_to(t(:edit), edit_registrar_domains_path(domain_name: x['name']),
|
= link_to(t(:edit), edit_registrar_domains_path(domain_name: x['name']),
|
||||||
class: 'btn btn-default btn-xs')
|
class: 'btn btn-primary btn-xs')
|
||||||
= link_to(t(:renew), renew_registrar_domains_path(domain_name: x['name']),
|
= link_to(t(:renew), renew_registrar_domains_path(domain_name: x['name']),
|
||||||
class: 'btn btn-default btn-xs')
|
class: 'btn btn-default btn-xs')
|
||||||
= link_to(t(:delete), delete_registrar_domains_path(domain_name: x['name']),
|
= link_to(t(:delete), delete_registrar_domains_path(domain_name: x['name']),
|
||||||
|
|
|
@ -27,4 +27,4 @@
|
||||||
%hr
|
%hr
|
||||||
.form-group
|
.form-group
|
||||||
.col-md-10.text-right
|
.col-md-10.text-right
|
||||||
%button.btn.btn-primary= t(:renew)
|
%button.btn.btn-warning= t(:renew)
|
||||||
|
|
|
@ -22,6 +22,6 @@
|
||||||
= file_field_tag 'legal_document', required: true
|
= file_field_tag 'legal_document', required: true
|
||||||
.form-group
|
.form-group
|
||||||
.col-md-10.text-right
|
.col-md-10.text-right
|
||||||
%button.btn.btn-primary{ name: 'query' }= t(:query)
|
%button.btn.btn-warning{ name: 'query' }= t(:query)
|
||||||
%button.btn.btn-primary{ name: 'approve' }= t(:approve)
|
%button.btn.btn-warning{ name: 'approve' }= t(:approve)
|
||||||
%button.btn.btn-primary{ name: 'reject' }= t(:reject)
|
%button.btn.btn-warning{ name: 'reject' }= t(:reject)
|
||||||
|
|
|
@ -12,4 +12,4 @@
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-12.text-right
|
.col-md-12.text-right
|
||||||
= button_tag(t(:forward), class: 'btn btn-primary')
|
= button_tag(t(:forward), class: 'btn btn-warning')
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
= f.label t(:maximum_total)
|
= f.label t(:maximum_total)
|
||||||
= f.search_field :sum_cache_lteq, class: 'form-control', placeholder: t(:maximum_total), autocomplete: 'off'
|
= f.search_field :sum_cache_lteq, class: 'form-control', placeholder: t(:maximum_total), autocomplete: 'off'
|
||||||
.col-md-3{style: 'padding-top: 25px;'}
|
.col-md-3{style: 'padding-top: 25px;'}
|
||||||
%button.btn.btn-primary
|
%button.btn.btn-default
|
||||||
|
|
||||||
%span.glyphicon.glyphicon-search
|
%span.glyphicon.glyphicon-search
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
= link_to(t(:download), download_pdf_registrar_invoice_path(@invoice), class: 'btn btn-default')
|
= link_to(t(:download), download_pdf_registrar_invoice_path(@invoice), class: 'btn btn-default')
|
||||||
= link_to(t(:forward), forward_registrar_invoice_path(@invoice), class: 'btn btn-default')
|
= link_to(t(:forward), forward_registrar_invoice_path(@invoice), class: 'btn btn-default')
|
||||||
- if !@invoice.cancelled? && !@invoice.binded?
|
- if !@invoice.cancelled? && !@invoice.binded?
|
||||||
= link_to(t(:cancel), cancel_registrar_invoice_path(@invoice), method: :patch, class: 'btn btn-default')
|
= link_to(t(:cancel), cancel_registrar_invoice_path(@invoice), method: :patch, class: 'btn btn-warning')
|
||||||
= link_to(t(:back), registrar_invoices_path, class: 'btn btn-default')
|
= link_to(t(:back), registrar_invoices_path, class: 'btn btn-default')
|
||||||
= render 'shared/title', name: @invoice.to_s
|
= render 'shared/title', name: @invoice.to_s
|
||||||
= render 'shared/full_errors', object: @invoice
|
= render 'shared/full_errors', object: @invoice
|
||||||
|
|
|
@ -61,4 +61,4 @@
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
.col-md-10.text-right
|
.col-md-10.text-right
|
||||||
%button.btn.btn-primary= t(:upload_key)
|
%button.btn.btn-warning= t(:upload_key)
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
%button.btn.btn-default.js-reset-form
|
%button.btn.btn-default.js-reset-form
|
||||||
= t(:clear_fields)
|
= t(:clear_fields)
|
||||||
%button.btn.btn-primary{name: 'replace'}
|
%button.btn.btn-warning{name: 'replace'}
|
||||||
= t(:replace)
|
= t(:replace)
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
.pull-left= t('message_no', id: msg_q['id'])
|
.pull-left= t('message_no', id: msg_q['id'])
|
||||||
.pull-right
|
.pull-right
|
||||||
- if @data.css('panData').any? # this is a keyrelay request
|
- if @data.css('panData').any? # this is a keyrelay request
|
||||||
= link_to(t('confirm'), 'javascript: void(0);', class: 'btn btn-primary btn-xs js-keyrelay-confirm')
|
= link_to(t('confirm'), 'javascript: void(0);', class: 'btn btn-warning btn-xs js-keyrelay-confirm')
|
||||||
- if @data.css('trnData trStatus').any? # this is a transfer request
|
- if @data.css('trnData trStatus').any? # this is a transfer request
|
||||||
- unless ['serverApproved', 'clientApproved'].include?(@data.css('trStatus').first.text)
|
- unless ['serverApproved', 'clientApproved'].include?(@data.css('trStatus').first.text)
|
||||||
= link_to(t('confirm'), 'javascript: void(0);', class: 'btn btn-primary btn-xs js-transfer-confirm')
|
= link_to(t('confirm'), 'javascript: void(0);', class: 'btn btn-warning btn-xs js-transfer-confirm')
|
||||||
= link_to(t('dequeue'), registrar_poll_path(id: msg_q['id']), method: :delete, class: 'btn btn-primary btn-xs')
|
= link_to(t('dequeue'), registrar_poll_path(id: msg_q['id']), method: :delete, class: 'btn btn-primary btn-xs')
|
||||||
.panel-body
|
.panel-body
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue