mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Interface for manual binding
This commit is contained in:
parent
adf321bafa
commit
ccb44fa3b9
8 changed files with 189 additions and 23 deletions
74
app/views/admin/bank_transactions/edit.haml
Normal file
74
app/views/admin/bank_transactions/edit.haml
Normal file
|
@ -0,0 +1,74 @@
|
|||
- content_for :actions do
|
||||
= link_to(t('back'), :back, class: 'btn btn-default')
|
||||
= render 'admin/shared/title', name: "#{t('bank_transaction')}"
|
||||
|
||||
= form_for([:admin, @bank_transaction], html: { class: 'form-horizontal' }) do |f|
|
||||
= render 'shared/full_errors', object: @bank_transaction
|
||||
|
||||
.row
|
||||
.col-md-8
|
||||
.form-group
|
||||
= f.label :status, class: 'col-md-2 control-label'
|
||||
- c = @bank_transaction.binded? ? 'text-success' : 'text-danger'
|
||||
.col-md-10.form-control-static{class: c}
|
||||
= @bank_transaction.binded? ? t('binded') : t('not_binded')
|
||||
|
||||
.form-group
|
||||
= f.label :description, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:description, class: 'form-control')
|
||||
|
||||
.form-group
|
||||
= f.label :sum, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:sum, class: 'form-control')
|
||||
|
||||
.form-group
|
||||
= f.label :reference_no, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:reference_no, class: 'form-control')
|
||||
|
||||
.form-group
|
||||
= f.label :document_no, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:document_no, class: 'form-control', disabled: :disabled)
|
||||
|
||||
.form-group
|
||||
= f.label :bank_reference, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:bank_reference, class: 'form-control', disabled: :disabled)
|
||||
|
||||
.form-group
|
||||
= f.label :iban, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:iban, class: 'form-control', disabled: :disabled)
|
||||
|
||||
.form-group
|
||||
= f.label :buyer_bank_code, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:buyer_bank_code, class: 'form-control', disabled: :disabled)
|
||||
|
||||
.form-group
|
||||
= f.label :buyer_iban, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:buyer_iban, class: 'form-control', disabled: :disabled)
|
||||
|
||||
.form-group
|
||||
= f.label :buyer_name, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:buyer_name, class: 'form-control', disabled: :disabled)
|
||||
|
||||
.form-group
|
||||
= f.label :currency, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:currency, class: 'form-control', disabled: :disabled)
|
||||
|
||||
.form-group
|
||||
= f.label :paid_at, class: 'col-md-2 control-label'
|
||||
.col-md-10
|
||||
= f.text_field(:paid_at, class: 'form-control', disabled: :disabled)
|
||||
|
||||
%hr
|
||||
.row
|
||||
.col-md-8.text-right
|
||||
= button_tag(t('save'), class: 'btn btn-primary')
|
Loading…
Add table
Add a link
Reference in a new issue