Improve teams/matches styling

This commit is contained in:
Luke Barratt 2014-04-30 01:02:07 +01:00
parent 8b19e2aea7
commit db34717173
3 changed files with 34 additions and 37 deletions

View file

@ -27,6 +27,7 @@ form {
> .field_with_errors { > .field_with_errors {
input, input,
input[type=text],
textarea { textarea {
border: $input-border-width solid $flash-error; border: $input-border-width solid $flash-error;

View file

@ -109,12 +109,12 @@ div#match {
} }
.score-1 { .score-1 {
padding-left: $title-height/5; padding-left: $title-height/6;
left: 0; left: 0;
} }
.score-2 { .score-2 {
padding-right: $title-height/5; padding-right: $title-height/6;
right: 0; right: 0;
} }
} }

View file

@ -1,37 +1,33 @@
<h1>New team</h1> <h1>New Team</h1>
<div class="wide box"> <%= form_for(@team, html: { class: 'square horizontal' }) do |f| %>
<%= form_for(@team) do |f| %> <%= render 'shared/errors', messages: @team.errors.full_messages %>
<%= f.error_messages %>
<p> <div class="fields horizontal">
<%= f.label :name %><br /> <%= f.label :name %>
<%= f.text_field :name %> <%= f.text_field :name %>
</p> </div>
<p> <div class="fields horizontal">
<%= f.label :irc %><br /> <%= f.label :irc %>
<%= f.text_field :irc %> <%= f.text_field :irc %>
</p> </div>
<p> <div class="fields horizontal">
<%= f.label :web %><br /> <%= f.label :web %>
<%= f.text_field :web %> <%= f.text_field :web %>
</p> </div>
<p> <div class="fields horizontal">
<%= f.label :tag %><br /> <%= f.label :tag %>
<%= f.text_field :tag %> <%= f.text_field :tag %>
</p> </div>
<p> <div class="fields horizontal">
<%= f.label :country %><br /> <%= f.label :country %>
<%= country_code_select :team, :country %> <%= country_code_select :team, :country %>
</p> </div>
<p> <div class="fields horizontal">
<%= f.label :comment %><br /> <%= f.label :comment %>
<%= f.text_field :comment %> <%= f.text_field :comment %>
</p> </div>
<p> <div class="controls">
<%= f.submit "Create" %> <%= f.submit "Create" %>
</p> </div>
<% end %> <% end %>
</div>
<%= link_to 'Back', teams_path %>