Skip to content

Commit

Permalink
Merge pull request #60 from Midburn/feat/labels
Browse files Browse the repository at this point in the history
Use field name in labels
  • Loading branch information
rootux authored Jan 10, 2017
2 parents f7dd526 + 0146587 commit caa93fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 44 deletions.
35 changes: 0 additions & 35 deletions app/views/camps/_edit_person.html.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/camps/_form.haml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
alert( "עריכת שדות תיק הבטיחות סגור כעת\r\nSafety file is currrently disabled" );
})});

%div{id:'edit-person-modal', class:'modal', 'data-keyboard' => 'true', 'tabindex' =>"-1"}
= render 'edit_person'

= simple_form_for @camp, :html => {:dir => I18n.t(:html_direction), :id => 'camp-form' } do |form|

.header-heading
Expand Down
10 changes: 5 additions & 5 deletions app/views/camps/_person_fields.haml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.nested-fields.panel.panel-default.col-md-7
.panel-body
= t("activerecord.attributes.person.name")
= f.label :name
= f.text_field :name, class: 'form-control'
= t("activerecord.attributes.person.email")
= f.label :email
= f.text_field :email, class: 'form-control'
= t("activerecord.attributes.person.phone")
= f.label :phone_number
= f.text_field :phone_number, class: 'form-control'
= t("activerecord.attributes.person.background")
= f.label :background
= f.text_field :background, class: 'form-control'
= t("activerecord.attributes.person.roles")
= f.label :roles
= f.collection_check_boxes(:role_ids, Role.all, :id, :identifier) do |b|
= b.label { b.check_box + ' ' + t("project_roles." + b.text) }
%br
Expand Down
2 changes: 1 addition & 1 deletion config/locales/he.yml
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ he:
person: &person
name: 'שם'
email: "אימייל"
phone: "טלפון"
phone_number: "טלפון"
background: "רקע"
roles: "תפקידים"
responsibles/person:
Expand Down

0 comments on commit caa93fb

Please sign in to comment.