Skip to content

Commit

Permalink
Merge pull request #391 from hpi-swt2/kickerz/hotfix/make-asterisk-re…
Browse files Browse the repository at this point in the history
…appear

Make asterisk in team creation page indication required field reappear.
  • Loading branch information
lheilmann authored Jan 18, 2018
2 parents 35a5292 + 40eed39 commit 605e9fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/views/teams/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= render partial: "application/validation_errors", locals: {model: @team} %>

<div class="form-group">
<%= f.label :name, :class => 'control-label col-lg-2' %>
<%= f.label :name, :class => 'control-label col-lg-2 required', :required => true %>
<div class="col-lg-10">
<%= f.text_field :name, :class => 'form-control' %>
<%= f.error_span(:name) %>
Expand Down
9 changes: 1 addition & 8 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@
t.index ["user_id"], name: "index_organizers_on_user_id"
end

create_table "participants", force: :cascade do |t|
t.integer "attendee_id"
t.string "attendee_type"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "team_users", force: :cascade do |t|
t.integer "team_id", null: false
t.integer "user_id", null: false
Expand All @@ -105,8 +98,8 @@
t.text "description"
t.string "kind_of_sport"
t.boolean "private"
t.boolean "single", default: false
t.text "avatar_data"
t.boolean "single", default: false
end

create_table "users", force: :cascade do |t|
Expand Down

0 comments on commit 605e9fb

Please sign in to comment.