Skip to content

Commit

Permalink
投手成績の入力のスマホ対応
Browse files Browse the repository at this point in the history
  • Loading branch information
tyoshii committed May 20, 2014
1 parent 72593c0 commit 227b995
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions fuel/app/views/game/pitcher.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "layout/game/edit.twig" %}

{% macro inning_fraction(default) %}
<select class="form-control inning fraction">
<select class="inning fraction">
<option value="0">--</option>
{% for i in 0..2 %}
{% set value = i ~ '/3' %}
Expand All @@ -12,7 +12,7 @@
{% endmacro %}

{% macro result(player) %}
<select class="form-control result">
<select class="result">
<option value="">--</option>
<option value="win" {%if player.W %}selected{%endif%}>勝</option>
<option value="lose" {%if player.L %}selected{%endif%}>負</option>
Expand Down Expand Up @@ -62,7 +62,7 @@

{# 投球回 #}
<td class="inning">
<input class="inning_int form-control" min="0" type="number" value="{{stat.IP|default(0)}}">
<input class="inning_int" min="0" type="number" value="{{stat.IP|default(0)}}">
</td>

{# 投球回 0/3 1/3 2/3 #}
Expand All @@ -72,27 +72,27 @@

{# 被安打 #}
<td class="hianda">
<input class="form-control hianda" type="number" min="0" value="{{stat.H|default(0)}}">
<input class="hianda" type="number" min="0" value="{{stat.H|default(0)}}">
</td>

{# 奪三振 #}
<td class="sanshin">
<input class="form-control sanshin" type="number" min="0" value="{{stat.SO|default(0)}}">
<input class="sanshin" type="number" min="0" value="{{stat.SO|default(0)}}">
</td>

{# 与四死球 #}
<td class="shishikyuu">
<input class="form-control shishikyuu" type="number" min="0" value="{{stat.BB|default(0)}}">
<input class="shishikyuu" type="number" min="0" value="{{stat.BB|default(0)}}">
</td>

{# 自責点 #}
<td class="earned-runs">
<input class="form-control earned-runs" type="number" min="0" value="{{stat.ER|default(0)}}">
<input class="earned-runs" type="number" min="0" value="{{stat.ER|default(0)}}">
</td>

{# 失点 #}
<td class="runs">
<input class="form-control runs" type="number" min="0" value="{{stat.R|default(0)}}">
<input class="runs" type="number" min="0" value="{{stat.R|default(0)}}">
</td>
</tr>

Expand Down
3 changes: 3 additions & 0 deletions public/css/bms.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ tr.detail {
background-color: #F5F5F5;
}

table#pitcher input {
width: 60px;
}
table#pitcher th {
text-align: center;
}
Expand Down

0 comments on commit 227b995

Please sign in to comment.