-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from springhackathon/develop
v0.1.2リリース ok
- Loading branch information
Showing
28 changed files
with
328 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
// Place all the styles related to the bot/hash_tags controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
|
||
.hash_tag_select { | ||
width: 100%; | ||
} | ||
|
||
.time_select { | ||
width: 100px; | ||
display:inline; | ||
} | ||
|
||
.center { | ||
text-align: center; | ||
} | ||
|
||
.question { | ||
width: 400px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# == Schema Information | ||
# | ||
# Table name: realtime_bot_hash_tag_trackings | ||
# | ||
# id :integer not null, primary key | ||
# bot_id :integer not null | ||
# bot_type :integer | ||
# content :text | ||
# deleted :boolean default(FALSE), not null | ||
# created_at :datetime not null | ||
# updated_at :datetime not null | ||
# | ||
|
||
class RealtimeBotHashTagTracking < ActiveRecord::Base | ||
belongs_to :bots | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
<div class="container"> | ||
|
||
<h2>BOTの編集</h2> | ||
|
||
|
||
|
||
<%= form_for @bot, :url => {:action => 'update'} do |f| %> | ||
<%= f.label :hash_tags %> | ||
<p>BOTに関連するHashTagを選んでください。</p> | ||
ハッシュタグを選んでください。<%= select_tag :hash_tags, options_from_collection_for_select(HashTag.all, :id, :hash_tag), :multiple => true %><div/> | ||
曜日を選んでください。<%= select_tag :weekday, options_for_select({"月曜日" => "0", "火曜日" => "1", "水曜日" => "2", "木曜日" => "3", "金曜日" => "4", "土曜日" => "5", "日曜日" => "6"}) %><div/> | ||
時間を選んでください。<%= select_tag :hour, options_for_select(0..23) %>:00 | ||
<br> | ||
<table class="table table-striped table-bordered table-condensed"> | ||
<tr> | ||
<th>Q</th> | ||
<th class="question">BOTに関連するHashTagを選んでください。</th> | ||
<th>入力項目</th> | ||
</tr> | ||
<tr> | ||
<td class="center">1</td> | ||
<td>ハッシュタグを選んでください。</td> | ||
<td><%= select_tag :hash_tags, options_from_collection_for_select(HashTag.all, :id, :hash_tag), :multiple => true, class: :"form-control" %></td> | ||
</tr> | ||
<tr> | ||
<td class="center">2</td> | ||
<td>曜日を選んでください。</td> | ||
<td><%= select_tag :weekday, options_for_select({"月曜日" => "0", "火曜日" => "1", "水曜日" => "2", "木曜日" => "3", "金曜日" => "4", "土曜日" => "5", "日曜日" => "6"}), class: :"form-control" %></td> | ||
</tr> | ||
<tr> | ||
<td class="center">3</td> | ||
<td>時間を選んでください。</td> | ||
<td><%= select_tag :hour, options_for_select(0..23), class: :"form-control time_select" %>:00</td> | ||
</tr> | ||
</table> | ||
<%= f.submit "登録", class: 'btn btn-info' %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.