48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
=semantic_form_for [:admin, @volume_periodique], :remote => true do |f|
|
|
|
|
.content
|
|
=f.inputs do
|
|
=f.hidden_field :codemanaginn
|
|
|
|
-if current_admin.societes.where(:enabled => true).count > 1
|
|
|
|
= f.input :codesociete, :label => "Centre :", :as => :select, :collection => current_admin.societes.where(:enabled => true).order(:nom).all.map{|a| [a.nom, a.socmanaginn]}, :include_blank => false
|
|
-else
|
|
=f.hidden_field :codesociete
|
|
|
|
|
|
|
|
%table.form-table
|
|
%tr
|
|
|
|
%td{:style => "width:50%;vertical-align:center;"}
|
|
|
|
= f.input :datedebut, :label => "Date :", :as => :date, :input_html => {:style => "width:100%;"}
|
|
|
|
|
|
|
|
%td.no_div{:style => "width:50%;vertical-align:center;"}
|
|
= f.input :valeur, :label => "Montant :", :input_html => {:style => "width:80%;display:inline-block;"}
|
|
€
|
|
|
|
= f.input :commentaire, :label => "commentaire :", :input_html => {:style => "height:60px;"}
|
|
|
|
=f.submit "Enregistrer facture", :class => "btn btn-primary"
|
|
|
|
:scss
|
|
.form-table{
|
|
td{
|
|
vertical-align:top;
|
|
}}
|
|
|
|
#volume_periodique_form{
|
|
text-align:center;
|
|
.number{
|
|
font-size:inherit;
|
|
font-weight:normal}
|
|
}
|
|
.no_div{
|
|
div{
|
|
display:inline;
|
|
}
|
|
} |