- <%= f.collection_select :commissioner_ids, Commissioner.all, :id, :name, {prompt: 'Select Commissioner'}, {class: 'form-control'} %>
- <%= f.input :in_time %>
- <%= f.input :out_time %>
-
+
+ <%= f.collection_select :commissioner_ids, Commissioner.all, :id, :name, {prompt: 'Select Commissioner'}, {class: 'form-control'} %>
+
+ <%= f.input :in_time %>
+ <%= f.input :out_time %>
+
-
-<%= simple_form_for([:origami,@in_juty]) do |f| %>
- <%= f.error_notification %>
+<%= simple_form_for @in_juty, :url => origami_index_in_juty_path(@table.id), :method => :post do |f| %>
+
+ <%= f.error_notification %>
+ <%= f.hidden_field :id, :class => "form-control col-md-6 " %>
+
+
+
+ <%= f.hidden_field :dinning_id, :value => @table.id, :class => "form-control col-md-4 " %>
+
+
+ <%= @table.name %>
+
+
+
+
+ <%= f.collection_select :commissioner_ids, Commissioner.all, :id, :name, {prompt: 'Select Commissioner'}, {class: 'form-control'} %>
+
+
+ <%= f.input :in_time, :placeholder => "From Date", :class => "form-control" %>
+
+ <%= f.input :out_time, :placeholder => "To Date", :class => "form-control" %>
+
+
+
+
+ <% f.button :submit, "Create", :class => 'btn btn-primary ', :id => 'create' %>
+ <% f.button :submit, "Update", :class => 'btn btn-primary ', :disabled => '', :id => 'update' %>
+ <% f.button :button, "Reset", :class => 'btn btn-danger ', :id => 'reset' %>
+
+
+ <%= f.button :submit, :class => 'btn btn-primary' %>
+
-
- <%= f.label :dinning_id %>
- <%= f.collection_select :dinning_id, DiningFacility.all, :id, :name, {prompt: 'Select Dining Facilities'}, {class: 'form-control'} %>
- <%= f.label :commissioner_ids %>
- <%= f.collection_select :commissioner_ids, Commissioner.all, :id, :name, {prompt: 'Select Commissioner'}, {class: 'form-control'} %>
-
- <%= f.text_field :in_time, :value=>DateTime.now.strftime("%Y-%m-%d / %I:%M %p"),:class=>"form-control datepicker"%>
-
- <%= f.text_field :out_time, :value=>DateTime.now.strftime("%Y-%m-%d / %I:%M %p"),:class=>"form-control datepicker"%>
-
-
- <%= link_to 'Back', origami_in_juties_path, class: 'btn btn-success' %>
- <%= f.button :submit, class: 'btn btn-info' %>
-
<% end %>
-
+
\ No newline at end of file
+ });
+
+
diff --git a/app/views/origami/in_juties/index.html.erb b/app/views/origami/in_juties/index.html.erb
index 6efeb999..ff5a0fd3 100644
--- a/app/views/origami/in_juties/index.html.erb
+++ b/app/views/origami/in_juties/index.html.erb
@@ -1,38 +1,91 @@
-
diff --git a/dump.rdb b/dump.rdb
index 332310c7..c5350a13 100644
Binary files a/dump.rdb and b/dump.rdb differ