顧客様の作成・削除
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
{@ include(common/header) @}
|
||||
<h2>新規顧客様作成</h2>
|
||||
{@ if (!empty($err)) @}
|
||||
<p class="errormes">
|
||||
{@ foreach ($err as $e) @}
|
||||
{{ $e }}<br />
|
||||
{@ endforeach @}
|
||||
</p>
|
||||
{@ endif @}
|
||||
<p>
|
||||
<form method="POST" action="/openprovider/createcustomer">
|
||||
<h3>会社情報</h3>
|
||||
@@ -8,58 +15,54 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="company_name">会社名</label></td>
|
||||
<td><input type="text" name="company_name" value="{{ $data['company_name'] }}" /></td>
|
||||
<td><input type="text" name="company_name" value="{{ $data['company_name'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="company_registration_number">法人番号</label></td>
|
||||
<td><input type="text" name="company_registration_number" value="{{ $data['company_registration_number'] }}" /></td>
|
||||
<td><input type="text" name="company_registration_number" value="{{ $data['additional_data']['company_registration_number'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="company_url">ウェブサイト</label></td>
|
||||
<td><input type="text" name="company_url" value="{{ $data['company_url'] }}" /></td>
|
||||
<td><input type="text" name="company_url" value="{{ $data['additional_data']['company_url'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>個人情報</h3>
|
||||
telephone number (req)
|
||||
fax number
|
||||
email address (req)
|
||||
birth date
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="last_name">姓名(ローマ字)*</label></td>
|
||||
<td>
|
||||
<input type="text" name="last_name" placeholder="Taro" value="{{ $data['last_name'] }}" />
|
||||
<input type="text" name="first_name" placeholder="Yamada" value="{{ $data['first_name'] }}" />
|
||||
<input type="text" name="last_name" placeholder="Taro" value="{{ $data['name']['last_name'] ?? '' }}" />
|
||||
<input type="text" name="first_name" placeholder="Yamada" value="{{ $data['name']['first_name'] ?? '' }}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="phone.country_code">電話番号*</label></td>
|
||||
<td>
|
||||
<input type="text" name="phone.country_code" placeholder="+81" value="{{ $data['phone.country_code'] }}" />
|
||||
<input type="text" name="phone.area_code" placeholder="43" value="{{ $data['phone.area_code'] }}" />
|
||||
<input type="text" name="phone.subscriber_number" placeholder="0000000" value="{{ $data['phone.subscriber_number'] }}" />
|
||||
<input type="text" name="phone.country_code" placeholder="+81" value="{{ $data['phone']['country_code'] ?? '' }}" />
|
||||
<input type="number" name="phone.area_code" placeholder="43" value="{{ $data['phone']['area_code'] ?? '' }}" />
|
||||
<input type="number" name="phone.subscriber_number" placeholder="0000000" value="{{ $data['phone']['subscriber_number'] ?? '' }}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="fax.country_code">FAX</label></td>
|
||||
<td>
|
||||
<input type="text" name="fax.country_code" placeholder="+81" value="{{ $data['fax.country_code'] }}" />
|
||||
<input type="text" name="fax.area_code" placeholder="43" value="{{ $data['fax.area_code'] }}" />
|
||||
<input type="text" name="fax.subscriber_number" placeholder="0000000" value="{{ $data['fax.subscriber_number'] }}" />
|
||||
<input type="text" name="fax.country_code" placeholder="+81" value="{{ $data['fax']['country_code'] ?? '' }}" />
|
||||
<input type="number" name="fax.area_code" placeholder="43" value="{{ $data['fax']['area_code'] ?? '' }}" />
|
||||
<input type="number" name="fax.subscriber_number" placeholder="0000000" value="{{ $data['fax']['subscriber_number'] ?? '' }}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="email">メールアドレス*</label></td>
|
||||
<td><input type="text" name="email" placeholder="taro@076.co.jp" value="{{ $data['email'] }}" /></td>
|
||||
<td><input type="text" name="email" placeholder="taro@076.co.jp" value="{{ $data['email'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="year">生年月日</label></td>
|
||||
<td><label for="birth_year">生年月日</label></td>
|
||||
<td>
|
||||
<input type="text" name="year" placeholder="1970" value="{{ $data['year'] }}" />年
|
||||
<input type="text" name="month" placeholder="12" value="{{ $data['month'] }}" />月
|
||||
<input type="text" name="day" placeholder="31" value="{{ $data['day'] }}" />日
|
||||
<input type="number" name="birth_year" placeholder="1970" value="{{ $data['birth']['year'] ?? '' }}" />年
|
||||
<input type="number" name="birth_month" placeholder="12" value="{{ $data['birth']['month'] ?? '' }}" />月
|
||||
<input type="number" name="birth_day" placeholder="31" value="{{ $data['birth']['day'] ?? '' }}" />日
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -68,29 +71,29 @@
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="zipcode">郵便番号*(ハイフン付き)</label></td>
|
||||
<td>〒<input type="text" name="zipcode" value="{{ $data['zipcode'] }}" /></td>
|
||||
<td><label for="address_zipcode">郵便番号*(ハイフン付き)</label></td>
|
||||
<td>〒<input type="number" name="address_zipcode" value="{{ $data['address']['zipcode'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="state">都道府県*</label></td>
|
||||
<td><input type="text" name="state" value="{{ $data['state'] }}" /></td>
|
||||
<td><label for="address_state">都道府県*</label></td>
|
||||
<td><input type="text" name="address_state" value="{{ $data['address']['state'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="city">市区町村*</label></td>
|
||||
<td><input type="text" name="city" value="{{ $data['city'] }}" /></td>
|
||||
<td><label for="address_city">市区町村*</label></td>
|
||||
<td><input type="text" name="address_city" value="{{ $data['address']['city'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="street">町名*</label></td>
|
||||
<td><input type="text" name="street" value="{{ $data['street'] }}" /></td>
|
||||
<td><label for="address_street">町名*</label></td>
|
||||
<td><input type="text" name="address_street" value="{{ $data['address']['street'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="number">番地*</label></td>
|
||||
<td><input type="text" name="number" value="{{ $data['number'] }}" /></td>
|
||||
<td><label for="address_number">番地*</label></td>
|
||||
<td><input type="text" name="address_number" value="{{ $data['address']['number'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="country">国</label></td>
|
||||
<td><label for="address_country">国</label></td>
|
||||
<td>
|
||||
<select name="country">
|
||||
<select name="address_country">
|
||||
<option value="JP" selected="selected">日本</option>
|
||||
<option value="NL">オランダ</option>
|
||||
</select>
|
||||
@@ -98,7 +101,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="comments">メモ</label></td>
|
||||
<td><input type="text" name="comments" value="{{ $data['comments'] }}" /></td>
|
||||
<td><input type="text" name="comments" value="{{ $data['comments'] ?? '' }}" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
9
view/openprovider/deletecustomer.maron
Normal file
9
view/openprovider/deletecustomer.maron
Normal file
@@ -0,0 +1,9 @@
|
||||
{@ include(common/header) @}
|
||||
<h2>本当に顧客様「{{ $handle }}」を削除しますか?</h2>
|
||||
<p>
|
||||
<form method="POST" action="/openprovider/deletecustomer/{{ $handle }}">
|
||||
<input type="submit" class="op-button-create" name="delete_confirm" value="はい" />
|
||||
<input type="submit" class="op-button-delete" name="delete_reject" value="いいえ" />
|
||||
</form>
|
||||
</p>
|
||||
{@ include(common/footer) @}
|
||||
@@ -1,26 +1,25 @@
|
||||
{@ include(common/header) @}
|
||||
顧客様の削除<br />
|
||||
顧客様のクローン<br />
|
||||
顧客様の編集<br />
|
||||
{$ $addInfo = $data['data']['additional_data'] $}
|
||||
{$ $name = $data['data']['name'] $}
|
||||
{$ $phone = $data['data']['phone'] $}
|
||||
{$ $fax = $data['data']['fax'] $}
|
||||
{$ $addr = $data['data']['address'] $}
|
||||
<a href="/openprovider/deletecustomer/{{ $data['data']['handle'] }}" class="op-button-delete">顧客様の削除</a>
|
||||
<a href="/openprovider/editcustomer/{{ $data['data']['handle'] }}" class="op-button-edit">顧客様の編集</a>
|
||||
{$ $addInfo = $data['data']['additional_data'] ?? [] $}
|
||||
{$ $name = $data['data']['name'] ?? [] $}
|
||||
{$ $phone = $data['data']['phone'] ?? [] $}
|
||||
{$ $fax = $data['data']['fax'] ?? [] $}
|
||||
{$ $addr = $data['data']['address'] ?? [] $}
|
||||
<h2>連絡先:{{ $name['full_name'] }} ({{ $data['data']['handle'] }})</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<td>{{ $data['data']['id'] }}</td>
|
||||
<td>{{ $data['data']['id'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>リセラーID</th>
|
||||
<td>{{ $data['data']['reseller_id'] }}</td>
|
||||
<td>{{ $data['data']['reseller_id'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ハンドル</th>
|
||||
<td>{{ $data['data']['handle'] }}</td>
|
||||
<td>{{ $data['data']['handle'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>イニシャル</th>
|
||||
@@ -28,27 +27,27 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>フルネーム</th>
|
||||
<td>{{ $name['last_name'].' '.$name['first_name'] }}</td>
|
||||
<td>{{ ($name['last_name'] ?? '').' '.($name['first_name'] ?? '') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>生まれた場所</th>
|
||||
<td>〒{{ $addInfo['birth_zipcode'].' '.$addInfo['birth_city'].' '.$addInfo['birth_address'].' '.$addInfo['birth_country'] }}</td>
|
||||
<td>〒{{ (!empty($fax) ? ($addInfo['birth_zipcode'] ?? '').' '.($addInfo['birth_city'] ?? '').' '.($addInfo['birth_address'] ?? '').' '.($addInfo['birth_country'] ?? '') : '') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>生年月日</th>
|
||||
<td>{{ $addInfo['birth_date'] }}</td>
|
||||
<td>{{ $addInfo['birth_date'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>電話番号</th>
|
||||
<td>{{ $phone['country_code'].$phone['area_code'].$phone['subscriber_number'] }}</td>
|
||||
<td>{{ (!empty($phone) ? ($phone['country_code'] ?? '').'-'.($phone['area_code'] ?? '').'-'.($phone['subscriber_number'] ?? '') : '') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>FAX</th>
|
||||
<td>{{ $fax['country_code'].$fax['area_code'].$fax['subscriber_number'] }}</td>
|
||||
<td>{{ (!empty($fax) ? ($fax['country_code'] ?? '').'-'.($fax['area_code'] ?? '').'-'.($fax['subscriber_number'] ?? '') : '') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>メールアドレス</th>
|
||||
<td>{{ $data['data']['email'] }}</td>
|
||||
<td>{{ $data['data']['email'] ?? '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -57,28 +56,28 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>会社名</th>
|
||||
<td>{{ $data['data']['company_name'] }}</td>
|
||||
<td>{{ $data['data']['company_name'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>VAT番号</th>
|
||||
<td>{{ $data['data']['vat'] }}</td>
|
||||
<td>{{ $data['data']['vat'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>会社登録番号</th>
|
||||
<td>{{ $addInfo['company_registration_number'] }}</td>
|
||||
<td>{{ $addInfo['company_registration_number'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>会社登録場所</th>
|
||||
<td>{{ $addInfo['company_registration_city'] }}</td>
|
||||
<td>{{ $addInfo['company_registration_city'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>会社登録日</th>
|
||||
<td>{{ $addInfo['company_registration_subscription_date'] }}</td>
|
||||
<td>{{ $addInfo['company_registration_subscription_date'] ?? '' }}</td>
|
||||
</tr>
|
||||
{$ $link = $addInfo['company_url'] $}
|
||||
<tr>
|
||||
<th>会社URL</th>
|
||||
<td><a href="{{ $link }}">{{ $link }}</a></td>
|
||||
<td><a href="{{ $link ?? '#' }}">{{ $link ?? 'DUMMY' }}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -87,23 +86,23 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>道+番号</th>
|
||||
<td>{{ $addr['street'].$addr['number'].' '.$addr['suffix'] }}</td>
|
||||
<td>{{ ($addr['street'].$addr['number'] ?? '').' '.($addr['suffix'] ?? '') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>郵便番号</th>
|
||||
<td>{{ $addr['zipcode'] }}</td>
|
||||
<td>{{ $addr['zipcode'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>市区町村</th>
|
||||
<td>{{ $addr['city'] }}</td>
|
||||
<td>{{ $addr['city'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>都道府県</th>
|
||||
<td>{{ $addr['state'] }}</td>
|
||||
<td>{{ $addr['state'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>国</th>
|
||||
<td>{{ $addr['country'] }}</td>
|
||||
<td>{{ $addr['country'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>言語</th>
|
||||
@@ -111,7 +110,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>本社の場所</th>
|
||||
<td>〒{{ $addInfo['headquarters_zipcode'].' '.$addInfo['headquarters_city'].' '.$addInfo['headquarters_address'].' '.$addInfo['headquarters_country'] }}</td>
|
||||
<td>{{ !empty($addInfo) ? ('〒 '.($addInfo['headquarters_zipcode'] ?? '').' '.($addInfo['headquarters_city'] ?? '').' '.($addInfo['headquarters_address'] ?? '').' '.($addInfo['headquarters_country'] ?? '')) : '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user