質問編集履歴
2
templateの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,21 +4,147 @@
|
|
4
4
|
```
|
5
5
|
値を送信するにはどうしたらいいでしょうか。ご助言よろしくお願いします。
|
6
6
|
|
7
|
-
関連するEntity
|
7
|
+
関連するtemplate、Entity、FormTypeは以下になります。
|
8
|
-
```
|
8
|
+
```template
|
9
|
+
{#
|
10
|
+
This file is part of EC-CUBE
|
11
|
+
|
12
|
+
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
|
13
|
+
|
14
|
+
http://www.ec-cube.co.jp/
|
15
|
+
|
16
|
+
For the full copyright and license information, please view the LICENSE
|
17
|
+
file that was distributed with this source code.
|
18
|
+
#}
|
19
|
+
{% extends '@admin/default_frame.twig' %}
|
20
|
+
|
21
|
+
{% set menus = ['live', 'authority'] %}
|
22
|
+
|
23
|
+
{% block title %}
|
24
|
+
配信権限登録
|
25
|
+
{% endblock %}
|
26
|
+
{% block sub_title %}
|
27
|
+
{{ 'admin.setting.system'|trans }}
|
28
|
+
{% endblock %}
|
29
|
+
|
30
|
+
{% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
|
31
|
+
|
32
|
+
{% block main %}
|
33
|
+
<form name="member_form" role="form" id="member_form" method="post" action="" novalidate>
|
34
|
+
{{ form_widget(form._token) }}
|
35
|
+
<div class="c-contentsArea__cols">
|
36
|
+
<div class="c-contentsArea__primaryCol">
|
37
|
+
<div class="c-primaryCol">
|
38
|
+
<div class="card rounded border-0 mb-4">
|
39
|
+
<div class="card-header">
|
40
|
+
<div class="row">
|
41
|
+
<div class="col-8">
|
42
|
+
<span class="card-title">{{ 'admin.setting.system.member.member_registration'|trans }}</span>
|
43
|
+
</div>
|
44
|
+
<div class="col-4 text-right">
|
45
|
+
<a data-toggle="collapse" href="#memberInfo" aria-expanded="false" aria-controls="memberInfo">
|
46
|
+
<i class="fa fa-angle-up fa-lg"></i>
|
47
|
+
</a>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
<div class="collapse show ec-cardCollapse" id="memberInfo">
|
52
|
+
<div class="card-body">
|
53
|
+
<div class="row mb-2">
|
54
|
+
<div class="col-3">
|
55
|
+
<span>チャンネル名</span>
|
56
|
+
<span class="badge badge-primary ml-1">{{ 'admin.common.required'|trans }}</span>
|
57
|
+
</div>
|
58
|
+
<div class="col">
|
59
|
+
<div class="row">
|
60
|
+
<div class="col">
|
61
|
+
{{ form_widget(form.Channel) }}
|
62
|
+
</div>
|
63
|
+
{{ form_errors(form.Channel) }}
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
|
68
|
+
<div class="row mb-2">
|
69
|
+
<div class="col-3">
|
70
|
+
<span>条件</span>
|
71
|
+
<span class="badge badge-primary ml-1">{{ 'admin.common.required'|trans }}</span>
|
72
|
+
</div>
|
73
|
+
<div class="col">
|
74
|
+
<div class="row">
|
75
|
+
<div class="col">
|
76
|
+
{{ form_widget(form.live_condition) }}
|
77
|
+
</div>
|
78
|
+
{{ form_errors(form.live_condition) }} </div>
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div class="row mb-2">
|
83
|
+
<div class="col-3">
|
84
|
+
<span>条件の組み合わせ</span>
|
85
|
+
<span class="badge badge-primary ml-1">{{ 'admin.common.required'|trans }}</span>
|
86
|
+
</div>
|
87
|
+
<div class="col">
|
88
|
+
<div class="row">
|
89
|
+
<div class="col">
|
90
|
+
{{ form_widget(form.Combination) }}
|
91
|
+
</div>
|
92
|
+
{{ form_errors(form.Combination) }}
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
{# エンティティ拡張の自動出力 #}
|
97
|
+
{% for f in form if f.vars.eccube_form_options.auto_render %}
|
98
|
+
{% if f.vars.eccube_form_options.form_theme %}
|
99
|
+
{% form_theme f f.vars.eccube_form_options.form_theme %}
|
100
|
+
{{ form_row(f) }}
|
101
|
+
{% else %}
|
102
|
+
<div class="row mb-2">
|
103
|
+
<div class="col-3">
|
104
|
+
<span>{{ f.vars.label|trans }}</span>
|
105
|
+
</div>
|
106
|
+
<div class="col">
|
107
|
+
{{ form_widget(f) }}
|
108
|
+
{{ form_errors(f) }}
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
{% endif %}
|
112
|
+
{% endfor %}
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
<div class="c-conversionArea">
|
121
|
+
<div class="c-conversionArea__container">
|
122
|
+
<div class="row justify-content-between align-items-center">
|
123
|
+
<div class="col-6">
|
124
|
+
<div class="c-conversionArea__leftBlockItem">
|
125
|
+
<a class="c-baseLink" href="{{ url('admin_setting_system_member') }}">
|
126
|
+
<i class="fa fa-backward" aria-hidden="true"></i>
|
127
|
+
<span>{{ 'admin.setting.system.member_management'|trans }}</span>
|
128
|
+
</a>
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
<div class="col-6">
|
132
|
+
<div id="ex-conversion-action" class="row align-items-center justify-content-end">
|
133
|
+
<div class="col-auto">
|
134
|
+
<button class="btn btn-ec-conversion px-5" type="submit">{{ 'admin.common.registration'|trans }}</button>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
</div>
|
141
|
+
</form>
|
142
|
+
{% endblock %}
|
143
|
+
```
|
144
|
+
|
145
|
+
```Entity(文字数制限に引っかかったため一部切り抜き)
|
9
146
|
<?php
|
10
147
|
|
11
|
-
/*
|
12
|
-
* This file is part of EC-CUBE
|
13
|
-
*
|
14
|
-
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
|
15
|
-
*
|
16
|
-
* http://www.ec-cube.co.jp/
|
17
|
-
*
|
18
|
-
* For the full copyright and license information, please view the LICENSE
|
19
|
-
* file that was distributed with this source code.
|
20
|
-
*/
|
21
|
-
|
22
148
|
namespace Customize\Entity;
|
23
149
|
|
24
150
|
use Customize\Entity\Master\Combination;
|
@@ -38,14 +164,6 @@
|
|
38
164
|
*/
|
39
165
|
class LiveAuthorityRole extends \Eccube\Entity\AbstractEntity
|
40
166
|
{
|
41
|
-
/**
|
42
|
-
* @var int
|
43
|
-
*
|
44
|
-
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
|
45
|
-
* @ORM\Id
|
46
|
-
* @ORM\GeneratedValue(strategy="IDENTITY")
|
47
|
-
*/
|
48
|
-
private $id;
|
49
167
|
|
50
168
|
/**
|
51
169
|
* @var Channel
|
@@ -58,58 +176,6 @@
|
|
58
176
|
private $Channel;
|
59
177
|
|
60
178
|
/**
|
61
|
-
* @var Member
|
62
|
-
*
|
63
|
-
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
|
64
|
-
* @ORM\JoinColumns({
|
65
|
-
* @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
|
66
|
-
* })
|
67
|
-
*/
|
68
|
-
private $Creator;
|
69
|
-
|
70
|
-
/**
|
71
|
-
* @var Combination
|
72
|
-
*
|
73
|
-
* @ORM\ManyToOne(targetEntity="Customize\Entity\Master\Combination")
|
74
|
-
* @ORM\JoinColumns({
|
75
|
-
* @ORM\JoinColumn(name="combination_id", referencedColumnName="id")
|
76
|
-
* })
|
77
|
-
*/
|
78
|
-
private $Combination;
|
79
|
-
|
80
|
-
|
81
|
-
/**
|
82
|
-
* @var string
|
83
|
-
*
|
84
|
-
* @ORM\Column(name="live_condition", type="string")
|
85
|
-
*/
|
86
|
-
private $live_condition;
|
87
|
-
|
88
|
-
/**
|
89
|
-
* @var DateTime
|
90
|
-
*
|
91
|
-
* @ORM\Column(name="create_date", type="datetimetz")
|
92
|
-
*/
|
93
|
-
private $create_date;
|
94
|
-
|
95
|
-
/**
|
96
|
-
* @var DateTime
|
97
|
-
*
|
98
|
-
* @ORM\Column(name="update_date", type="datetimetz")
|
99
|
-
*/
|
100
|
-
private $update_date;
|
101
|
-
|
102
|
-
/**
|
103
|
-
* Get id.
|
104
|
-
*
|
105
|
-
* @return int
|
106
|
-
*/
|
107
|
-
public function getId()
|
108
|
-
{
|
109
|
-
return $this->id;
|
110
|
-
}
|
111
|
-
|
112
|
-
/**
|
113
179
|
* Set channel.
|
114
180
|
*
|
115
181
|
* @param Channel|null $channel
|
@@ -132,126 +198,6 @@
|
|
132
198
|
{
|
133
199
|
return $this->Channel;
|
134
200
|
}
|
135
|
-
|
136
|
-
/**
|
137
|
-
* Set creator.
|
138
|
-
*
|
139
|
-
* @param Member|null $creator
|
140
|
-
*
|
141
|
-
* @return LiveAuthorityRole
|
142
|
-
*/
|
143
|
-
public function setCreator(Member $creator = null)
|
144
|
-
{
|
145
|
-
$this->Creator = $creator;
|
146
|
-
|
147
|
-
return $this;
|
148
|
-
}
|
149
|
-
|
150
|
-
/**
|
151
|
-
* Get creator.
|
152
|
-
*
|
153
|
-
* @return Member|null
|
154
|
-
*/
|
155
|
-
public function getCreator()
|
156
|
-
{
|
157
|
-
return $this->Creator;
|
158
|
-
}
|
159
|
-
|
160
|
-
/**
|
161
|
-
* Set combination.
|
162
|
-
*
|
163
|
-
* @param Combination|null $combination
|
164
|
-
*
|
165
|
-
* @return LiveAuthorityRole
|
166
|
-
*/
|
167
|
-
public function setCombination(Combination $combination = null)
|
168
|
-
{
|
169
|
-
$this->Combination = $combination;
|
170
|
-
|
171
|
-
return $this;
|
172
|
-
}
|
173
|
-
|
174
|
-
/**
|
175
|
-
* Get combination.
|
176
|
-
*
|
177
|
-
* @return Combination|null
|
178
|
-
*/
|
179
|
-
public function getCombination()
|
180
|
-
{
|
181
|
-
return $this->Combination;
|
182
|
-
}
|
183
|
-
|
184
|
-
/**
|
185
|
-
* Set liveCondition.
|
186
|
-
*
|
187
|
-
* @param string $live_condition
|
188
|
-
*
|
189
|
-
* @return LiveAuthorityRole
|
190
|
-
*/
|
191
|
-
public function setLiveCondition($live_condition)
|
192
|
-
{
|
193
|
-
$this->live_condition = $live_condition;
|
194
|
-
|
195
|
-
return $this;
|
196
|
-
}
|
197
|
-
|
198
|
-
/**
|
199
|
-
* Get liveCondition.
|
200
|
-
*
|
201
|
-
* @return string
|
202
|
-
*/
|
203
|
-
public function getLiveCondition()
|
204
|
-
{
|
205
|
-
return $this->live_condition;
|
206
|
-
}
|
207
|
-
|
208
|
-
/**
|
209
|
-
* Set createDate.
|
210
|
-
*
|
211
|
-
* @param DateTime $createDate
|
212
|
-
*
|
213
|
-
* @return LiveAuthorityRole
|
214
|
-
*/
|
215
|
-
public function setCreateDate($createDate)
|
216
|
-
{
|
217
|
-
$this->create_date = $createDate;
|
218
|
-
|
219
|
-
return $this;
|
220
|
-
}
|
221
|
-
|
222
|
-
/**
|
223
|
-
* Get createDate.
|
224
|
-
*
|
225
|
-
* @return DateTime
|
226
|
-
*/
|
227
|
-
public function getCreateDate()
|
228
|
-
{
|
229
|
-
return $this->create_date;
|
230
|
-
}
|
231
|
-
|
232
|
-
/**
|
233
|
-
* Set updateDate.
|
234
|
-
*
|
235
|
-
* @param DateTime $updateDate
|
236
|
-
*
|
237
|
-
* @return LiveAuthorityRole
|
238
|
-
*/
|
239
|
-
public function setUpdateDate($updateDate)
|
240
|
-
{
|
241
|
-
$this->update_date = $updateDate;
|
242
|
-
|
243
|
-
return $this;
|
244
|
-
}
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Get updateDate.
|
248
|
-
*
|
249
|
-
* @return DateTime
|
250
|
-
*/
|
251
|
-
public function getUpdateDate()
|
252
|
-
{
|
253
|
-
return $this->update_date;
|
254
|
-
}
|
255
201
|
}
|
256
202
|
```
|
257
203
|
|
1
タグを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|