mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-25 12:01:03 +00:00
Improve teams/matches styling
This commit is contained in:
parent
8b19e2aea7
commit
db34717173
3 changed files with 34 additions and 37 deletions
|
@ -27,6 +27,7 @@ form {
|
|||
> .field_with_errors {
|
||||
|
||||
input,
|
||||
input[type=text],
|
||||
textarea {
|
||||
border: $input-border-width solid $flash-error;
|
||||
|
||||
|
|
|
@ -109,12 +109,12 @@ div#match {
|
|||
}
|
||||
|
||||
.score-1 {
|
||||
padding-left: $title-height/5;
|
||||
padding-left: $title-height/6;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.score-2 {
|
||||
padding-right: $title-height/5;
|
||||
padding-right: $title-height/6;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,37 +1,33 @@
|
|||
<h1>New team</h1>
|
||||
<h1>New Team</h1>
|
||||
|
||||
<div class="wide box">
|
||||
<%= form_for(@team) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
<%= form_for(@team, html: { class: 'square horizontal' }) do |f| %>
|
||||
<%= render 'shared/errors', messages: @team.errors.full_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.label :name %><br />
|
||||
<%= f.text_field :name %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :irc %><br />
|
||||
<%= f.text_field :irc %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :web %><br />
|
||||
<%= f.text_field :web %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :tag %><br />
|
||||
<%= f.text_field :tag %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :country %><br />
|
||||
<%= country_code_select :team, :country %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.label :comment %><br />
|
||||
<%= f.text_field :comment %>
|
||||
</p>
|
||||
<p>
|
||||
<%= f.submit "Create" %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= link_to 'Back', teams_path %>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :name %>
|
||||
<%= f.text_field :name %>
|
||||
</div>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :irc %>
|
||||
<%= f.text_field :irc %>
|
||||
</div>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :web %>
|
||||
<%= f.text_field :web %>
|
||||
</div>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :tag %>
|
||||
<%= f.text_field :tag %>
|
||||
</div>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :country %>
|
||||
<%= country_code_select :team, :country %>
|
||||
</div>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :comment %>
|
||||
<%= f.text_field :comment %>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<%= f.submit "Create" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue