-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uns haml, lang pt no lib, holder (proprietario acionista do group)
- Loading branch information
Showing
46 changed files
with
96 additions
and
656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Holder < ActiveRecord::Base | ||
|
||
belongs_to :group | ||
belongs_to :person | ||
|
||
def person_text | ||
person.name if person | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.holder | ||
- f.inputs do | ||
= f.input :person_text, :input_html => { :class => "person_text" } | ||
= f.hidden_field :person_id | ||
= f.remove_link "remove" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- semantic_form_for(@profession, :html => { :class => "form" }) do |f| | ||
= f.input :name, :input_html => { :size => 40 } | ||
= f.input :kind, :as => :select, :collection => Profession.get_kind_values | ||
.navform | ||
= f.submit "Salvar →", :class => "button" | ||
ou | ||
= link_to 'Cancelar', people_path |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class CreateHolders < ActiveRecord::Migration | ||
def self.up | ||
create_table :holders do |t| | ||
t.references :group, :person | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :holders | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ class AddData < ActiveRecord::Migration | |
def self.up | ||
Sector.create(:name => "TI") | ||
User.create!(:login => "admin", :password => "admin", :name => "admin", :kind => :admin, | ||
:password_confirmation => "admin", :state => :active, :locale => "pt-BR", | ||
:password_confirmation => "admin", :state => :active, :locale => "pt", | ||
:email => "[email protected]", :time_zone => "Brasilia") | ||
|
||
# Load bunch of dumb data in devel mode.... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$(document).ready(function() { | ||
|
||
$(".person_text").autocomplete("/people.json") | ||
.result(function (evt, data, formatted) { | ||
$("#holder_person_id").val(data[1]); | ||
}); | ||
|
||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.