Skip to content

Commit

Permalink
fixed backlog 38 (同じフォームはinclude化したい )
Browse files Browse the repository at this point in the history
  • Loading branch information
rotsuya committed Sep 23, 2016
1 parent 77e2b7d commit 1f96b06
Show file tree
Hide file tree
Showing 28 changed files with 956 additions and 1,414 deletions.
5 changes: 5 additions & 0 deletions _includes/form-contact-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if page.country %}
{% include {{page.country}}/form-contact-footer.html %}
{% else %}
{% include jp/form-contact-footer.html %}
{% endif %}
5 changes: 5 additions & 0 deletions _includes/form-contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if page.country %}
{% include {{page.country}}/form-contact.html %}
{% else %}
{% include jp/form-contact.html %}
{% endif %}
5 changes: 5 additions & 0 deletions _includes/form-feedback.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if page.country %}
{% include {{page.country}}/form-feedback.html %}
{% else %}
{% include jp/form-feedback.html %}
{% endif %}
5 changes: 5 additions & 0 deletions _includes/form-mailchimp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if page.country %}
{% include {{page.country}}/form-mailchimp.html %}
{% else %}
{% include jp/form-mailchimp.html %}
{% endif %}
5 changes: 5 additions & 0 deletions _includes/form-mailmagazine-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if page.country %}
{% include {{page.country}}/form-mailmagazine-footer.html %}
{% else %}
{% include jp/form-mailmagazine-footer.html %}
{% endif %}
5 changes: 5 additions & 0 deletions _includes/form-postcard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if page.country %}
{% include {{page.country}}/form-postcard.html action=include.action %}
{% else %}
{% include jp/form-postcard.html action=include.action %}
{% endif %}
52 changes: 2 additions & 50 deletions _includes/jp/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,58 +26,10 @@ <h4>だるまや京染本店</h4>
</p>
</div>
<div class="col-sm-4">
<form action="https://docs.google.com/forms/d/1sxwcnopNXUuzeFkLgtXKbAx_sVb_kdvIoB0XpdOFB_4/formResponse" method="post" data-category="お問い合わせ" data-action="フッター">
<h4>お問い合わせ</h4>
<p>
<input type="text" class="form-control input-sm" name="entry.514625123" id="entry_514625123" placeholder="お名前(必須)" required>
</p>
<p>
<input type="tel" class="form-control input-sm" name="entry.644890284" id="entry_644890284" pattern="[\d\+\-]+" placeholder="電話番号">
</p>
<p>
<input type="email" class="form-control input-sm" name="entry.1144597065" id="entry_1144597065" placeholder="メールアドレス">
</p>
<p>
<input type="text" class="form-control input-sm" name="entry.1865897516" id="entry_1865897516" placeholder="住所(ポストカード希望の方)">
</p>
<p>
<textarea class="form-control input-sm" name="entry.162745380" id="entry_162745380" rows="5" placeholder="内容(必須)" required></textarea>
</p>
<p class="text-center">
<input type="hidden" name="draftResponse" value="[,,&quot;-3893810174084285007&quot;] ">
<input type="hidden" name="pageHistory" value="0">
<input type="hidden" name="fbzx" value="-3893810174084285007">
<button type="submit" class="btn btn-footer-contact" id="ss-submit">送信</button>
</p>
</form>
{% include form-contact-footer.html %}
</div>
<div class="col-sm-4">
<form action="https://docs.google.com/forms/d/1lhEtsXJZrD_ZhHU1HNNoKjvyCM7psp-_ZieWIIQof_w/formResponse" method="post" data-category="メルマガ" data-action="フッター">
<h4>メールマガジンを購読</h4>
<p>
<input type="text" class="form-control input-sm" name="entry.754037029" id="entry_754037029" placeholder="お名前(必須)" required>
</p>
<p>
<input type="email" class="form-control input-sm" name="entry.962431846" id="entry_962431846" placeholder="メールアドレス(必須)" required>
</p>
<p class="text-center">
<label class="radio-inline">
<input type="radio" checked name="entry.1104681476" id="group_1104681476_1" value="HTMLメール">
HTMLメール
</label>
<label class="radio-inline">
<input type="radio" name="entry.1104681476" id="group_1104681476_2" value="テキストメール">
テキストメール
</label>
</p>
<p class="text-center">
<input type="hidden" name="draftResponse" value="[,,&quot;6067762280875059710&quot;] ">
<input type="hidden" name="pageHistory" value="0">
<input type="hidden" name="fbzx" value="6067762280875059710">
<button type="submit" class="btn btn-footer-mailmagazine" id="ss-submit" value="送信">申し込む</button>
</p>
</form>

{% include form-mailmagazine-footer.html %}
<h4>Facebookページを購読</h4>
<div class="fb-like-box"
data-href="https://www.facebook.com/pages/だるまや京染本店/359733750720382"
Expand Down
24 changes: 24 additions & 0 deletions _includes/jp/form-contact-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<form action="https://docs.google.com/forms/d/1sxwcnopNXUuzeFkLgtXKbAx_sVb_kdvIoB0XpdOFB_4/formResponse" method="post" data-category="お問い合わせ" data-action="フッター">
<h4>お問い合わせ</h4>
<p>
<input type="text" class="form-control input-sm" name="entry.514625123" id="entry_514625123" placeholder="お名前(必須)" required>
</p>
<p>
<input type="tel" class="form-control input-sm" name="entry.644890284" id="entry_644890284" pattern="[\d\+\-]+" placeholder="電話番号">
</p>
<p>
<input type="email" class="form-control input-sm" name="entry.1144597065" id="entry_1144597065" placeholder="メールアドレス">
</p>
<p>
<input type="text" class="form-control input-sm" name="entry.1865897516" id="entry_1865897516" placeholder="住所(ポストカード希望の方)">
</p>
<p>
<textarea class="form-control input-sm" name="entry.162745380" id="entry_162745380" rows="5" placeholder="内容(必須)" required></textarea>
</p>
<p class="text-center">
<input type="hidden" name="draftResponse" value="[,,&quot;-3893810174084285007&quot;] ">
<input type="hidden" name="pageHistory" value="0">
<input type="hidden" name="fbzx" value="-3893810174084285007">
<button type="submit" class="btn btn-footer-contact" id="ss-submit">送信</button>
</p>
</form>
40 changes: 40 additions & 0 deletions _includes/jp/form-contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<form action="https://docs.google.com/forms/d/1sxwcnopNXUuzeFkLgtXKbAx_sVb_kdvIoB0XpdOFB_4/formResponse" method="post" data-category="お問い合わせ" data-action="お問い合わせ">
<div class="row form-group">
<label for="entry_514625123" class="col-sm-3 control-label">お名前(必須)</label>
<div class="col-sm-9 col-lg-6">
<input type="text" class="form-control" name="entry.514625123" id="entry_514625123" placeholder="例:八木賢一" required>
</div>
</div>
<div class="row form-group">
<label for="entry_644890284" class="col-sm-3 control-label">電話番号</label>
<div class="col-sm-9 col-lg-6">
<input type="tel" class="form-control" name="entry.644890284" id="entry_644890284" pattern="[\d\+\-]+" placeholder="例:090-1234-5678 または +81-90-1234-5678">
</div>
</div>
<div class="row form-group">
<label for="entry_1144597065" class="col-sm-3 control-label">メールアドレス</label>
<div class="col-sm-9 col-lg-6">
<input type="email" class="form-control" name="entry.1144597065" id="entry_1144597065" placeholder="例:contact@darumaya-gofuku.jp">
</div>
</div>
<div class="row form-group">
<label for="entry_1865897516" class="col-sm-3 control-label">住所</label>
<div class="col-sm-9 col-lg-6">
<textarea class="form-control" name="entry.1865897516" id="entry_1865897516" rows="2" placeholder="例:〒254-0042 神奈川県平塚市明石町5−7"></textarea>
</div>
</div>
<div class="row form-group">
<label for="entry_162745380" class="col-sm-3 control-label">内容(必須)</label>
<div class="col-sm-9">
<textarea class="form-control" name="entry.162745380" id="entry_162745380" rows="10" required></textarea>
</div>
</div>
<div class="row form-group">
<div class="col-sm-offset-3 col-sm-9">
<input type="hidden" name="draftResponse" value="[,,&quot;-3893810174084285007&quot;] ">
<input type="hidden" name="pageHistory" value="0">
<input type="hidden" name="fbzx" value="-3893810174084285007">
<button type="submit" class="btn btn-aqua" id="ss-submit" style="padding-left: 32px; letter-spacing: 20px;">送信</button>
</div>
</div>
</form>
115 changes: 115 additions & 0 deletions _includes/jp/form-feedback.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<form action="https://docs.google.com/forms/d/1z3sSG7Lm9G0krEx8a6_H4kM982DZhoEpGzLVXfUdWeE/formResponse" method="post" data-category="お客様の声" data-action="お客様の声">
<div class="row form-group">
<label for="entry_1149987365" class="col-sm-4 col-md-3 control-label">名前(ペンネーム可)</label>
<div class="col-sm-8 col-md-7 col-lg-6">
<input type="text" class="form-control" name="entry.1149987365" id="entry_1149987365" placeholder="例:八木賢一(だるまや6代目)">
</div>
</div>
<div class="row form-group">
<label class="col-sm-4 col-md-3 control-label">年代・性別</label>
<div class="col-sm-8 col-md-9">
<div class="radio">
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_1" value="20代女性">
20代女性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_2" value="30代女性">
30代女性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_3" value="40代女性">
40代女性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_4" value="50代女性">
50代女性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_5" value="60代女性">
60代女性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_6" value="70代女性">
70代女性
</label>
</div>
<div class="radio">
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_7" value="20代男性">
20代男性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_8" value="30代男性">
30代男性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_9" value="40代男性">
40代男性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_10" value="50代男性">
50代男性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_11" value="60代男性">
60代男性
</label>
<label class="checkbox-inline">
<input type="radio" name="entry.429167270" id="group_429167270_12" value="70代男性">
70代男性
</label>
</div>
</div>
</div>
<div class="row form-group">
<label for="entry_1715910836" class="col-sm-4 col-md-3 control-label">住んでいる地域</label>
<div class="col-sm-8 col-md-7 col-lg-6">
<input type="text" class="form-control" name="entry.1715910836" id="entry_1715910836" placeholder="例:神奈川県平塚市">
</div>
</div>
<div class="row form-group">
<label for="entry_1192147376" class="col-sm-4 col-md-3 control-label">だるまやのエピソード</label>
<div class="col-sm-8 col-md-9">
<textarea class="form-control" name="entry.1192147376" id="entry_1192147376" rows="5" placeholder="だるまやを知ったきっかけ、印象など"></textarea>
</div>
</div>
<div class="row form-group">
<label for="entry_2102270235" class="col-sm-4 col-md-3 ontrol-label">改善してほしいところ</label>
<div class="col-sm-8 col-md-9">
<textarea class="form-control" name="entry.2102270235" id="entry_2102270235" rows="5" placeholder="ここを直してくれたらもっと良くなるのに!ってところ"></textarea>
</div>
</div>
<div class="row form-group">
<label class="col-sm-4 col-md-3 control-label">ホームページ等での掲載可否</label>
<div class="col-sm-8 col-md-9">
<span id="helpBlock" class="help-block" style="margin-top: 0;">ご記入いただいた「お客様の声」をホームページなどに掲載して良いでしょうか?</span>
<div class="radio">
<label>
<input type="radio" name="entry.633279669" id="group_633279669_1" value="別に載せてもOK">
別に載せてもOK
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="entry.633279669" id="group_633279669_2" value="ペンネームならいいけど">
ペンネームならいいけど
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="entry.633279669" id="group_633279669_3" value="絶対イヤだーー">
絶対イヤだーー
</label>
</div>
</div>
</div>
<div class="row form-group">
<div class="col-sm-offset-4 col-sm-8 col-md-offset-3 col-md-9">
<input type="hidden" name="draftResponse" value="[,,&quot;-4580495146383077577&quot;] ">
<input type="hidden" name="pageHistory" value="0">
<input type="hidden" name="fbzx" value="-4580495146383077577">
<button type="submit" class="btn btn-aqua" id="ss-submit" style="padding-left: 32px; letter-spacing: 20px;">送信</button>
</div>
</div>
</form>
Loading

0 comments on commit 1f96b06

Please sign in to comment.