Restyle buttons

This commit is contained in:
Martin Lensment 2015-04-29 10:56:19 +03:00
parent 091a863bb9
commit 1ad8143db8
12 changed files with 24 additions and 24 deletions

View file

@ -1,4 +1,4 @@
= render 'registrar/shared/error_messages', f: f
= render 'registrar/shared/error_messages', f: f
= f.hidden_field :id
= f.hidden_field :password
.row
@ -7,7 +7,7 @@
.row
.col-md-8
= render 'registrar/contacts/form_partials/address', f: f
- if !@contact.persisted?
- if !@contact.persisted?
.row
.col-md-8
= render 'registrar/contacts/form_partials/code', f: f
@ -18,6 +18,6 @@
.row
.col-md-8.text-right
- if @contact.persisted?
= button_tag t(:save), class: 'btn btn-primary'
= button_tag t(:save), class: 'btn btn-warning'
- else
= button_tag t(:create), class: 'btn btn-primary'
= button_tag t(:create), class: 'btn btn-warning'

View file

@ -25,4 +25,4 @@
%hr
.row
.col-md-8.text-right
= button_tag(t(:add), class: 'btn btn-primary')
= button_tag(t(:add), class: 'btn btn-warning')

View file

@ -25,7 +25,7 @@
.row
.col-md-8.text-right
= button_tag(t('shared.save'), class: 'btn btn-primary')
= button_tag(t('shared.save'), class: 'btn btn-warning')
:javascript
$(function () {

View file

@ -1,5 +1,5 @@
- 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(:keyrelay), registrar_keyrelay_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)
%td
= 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']),
class: 'btn btn-default btn-xs')
= link_to(t(:delete), delete_registrar_domains_path(domain_name: x['name']),

View file

@ -7,24 +7,24 @@
.col-md-3.control-label
= label_tag :domain_name, t(:name), class: 'required'
.col-md-7
= text_field_tag :domain_name, params[:domain_name],
= text_field_tag :domain_name, params[:domain_name],
class: 'form-control', placeholder: t('domain_name'), autocomplete: 'off', required: true
.form-group
.col-md-3.control-label
= label_tag :cur_exp_date, t(:cur_exp_date), class: 'required'
.col-md-7
= text_field_tag :cur_exp_date, params[:cur_exp_date],
= text_field_tag :cur_exp_date, params[:cur_exp_date],
class: 'form-control', placeholder: 'yyyy-mm-dd', autocomplete: 'off', required: true
.form-group
.col-md-3.control-label
= label_tag :domain_period, t(:period), class: 'required'
.col-md-7
= select_tag :period,
= select_tag :period,
options_for_select(Depp::Domain::PERIODS, params[:period]), { class: 'form-control' }
%hr
.form-group
.col-md-10.text-right
%button.btn.btn-primary= t(:renew)
%button.btn.btn-warning= t(:renew)

View file

@ -7,13 +7,13 @@
.col-md-3.control-label
= label_tag :domain_name, t(:name), class: 'required'
.col-md-7
= text_field_tag :domain_name, params[:domain_name], class: 'form-control',
= text_field_tag :domain_name, params[:domain_name], class: 'form-control',
placeholder: t(:domain_name), autocomplete: 'off', autofocus: true, required: true
.form-group
.col-md-3.control-label
= label_tag :password, t(:password), class: 'required'
.col-md-7
= text_field_tag :password, params[:password],
= text_field_tag :password, params[:password],
class: 'form-control', autocomplete: 'off', required: true
.form-group
.col-md-3.control-label
@ -22,6 +22,6 @@
= file_field_tag 'legal_document', required: true
.form-group
.col-md-10.text-right
%button.btn.btn-primary{ name: 'query' }= t(:query)
%button.btn.btn-primary{ name: 'approve' }= t(:approve)
%button.btn.btn-primary{ name: 'reject' }= t(:reject)
%button.btn.btn-warning{ name: 'query' }= t(:query)
%button.btn.btn-warning{ name: 'approve' }= t(:approve)
%button.btn.btn-warning{ name: 'reject' }= t(:reject)

View file

@ -12,4 +12,4 @@
.row
.col-md-12.text-right
= button_tag(t(:forward), class: 'btn btn-primary')
= button_tag(t(:forward), class: 'btn btn-warning')

View file

@ -39,7 +39,7 @@
= f.label t(:maximum_total)
= f.search_field :sum_cache_lteq, class: 'form-control', placeholder: t(:maximum_total), autocomplete: 'off'
.col-md-3{style: 'padding-top: 25px;'}
%button.btn.btn-primary
%button.btn.btn-default
 
%span.glyphicon.glyphicon-search
 

View file

@ -2,7 +2,7 @@
= 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')
- 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')
= render 'shared/title', name: @invoice.to_s
= render 'shared/full_errors', object: @invoice

View file

@ -61,4 +61,4 @@
.form-group
.col-md-10.text-right
%button.btn.btn-primary= t(:upload_key)
%button.btn.btn-warning= t(:upload_key)

View file

@ -21,7 +21,7 @@
 
%button.btn.btn-default.js-reset-form
= t(:clear_fields)
%button.btn.btn-primary{name: 'replace'}
%button.btn.btn-warning{name: 'replace'}
= t(:replace)
.row
.col-md-12

View file

@ -11,10 +11,10 @@
.pull-left= t('message_no', id: msg_q['id'])
.pull-right
- 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
- 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')
.panel-body
%dl.dl-horizontal