| @@ 188-209 (lines=22) @@ | ||
| 185 | * |
|
| 186 | * @return array |
|
| 187 | */ |
|
| 188 | protected function fieldStatusTags() |
|
| 189 | { |
|
| 190 | $tags = $this->getTags('status'); |
|
| 191 | $options = []; |
|
| 192 | foreach ($tags as $tag) { |
|
| 193 | $options[ucwords($tag->name)] = [ |
|
| 194 | 'name' => 'tag_status', |
|
| 195 | 'value' => $tag->id, |
|
| 196 | 'data-tags' => $tag->id, |
|
| 197 | 'color' => $tag->bgcolor, |
|
| 198 | ]; |
|
| 199 | } |
|
| 200 | ||
| 201 | $fields['tag_status'] = [ |
|
| 202 | 'label' => 'status', |
|
| 203 | 'type' => 'radioButton', |
|
| 204 | 'radios' => $options, |
|
| 205 | 'check' => $this->getIssueTagId('status'), |
|
| 206 | ]; |
|
| 207 | ||
| 208 | return $fields; |
|
| 209 | } |
|
| 210 | /** |
|
| 211 | * Returns tags field. |
|
| 212 | * |
|
| @@ 215-236 (lines=22) @@ | ||
| 212 | * |
|
| 213 | * @return array |
|
| 214 | */ |
|
| 215 | protected function fieldTypeTags() |
|
| 216 | { |
|
| 217 | $tags = $this->getTags('type'); |
|
| 218 | $options = []; |
|
| 219 | foreach ($tags as $tag) { |
|
| 220 | $options[ucwords($tag->name)] = [ |
|
| 221 | 'name' => 'tag_type', |
|
| 222 | 'value' => $tag->id, |
|
| 223 | 'data-tags' => $tag->id, |
|
| 224 | 'color' => $tag->bgcolor, |
|
| 225 | ]; |
|
| 226 | } |
|
| 227 | ||
| 228 | $fields['tag_type'] = [ |
|
| 229 | 'label' => 'type', |
|
| 230 | 'type' => 'radioButton', |
|
| 231 | 'radios' => $options, |
|
| 232 | 'check' => $this->getIssueTagId('type'), |
|
| 233 | ]; |
|
| 234 | ||
| 235 | return $fields; |
|
| 236 | } |
|
| 237 | ||
| 238 | /** |
|
| 239 | * Returns tags field. |
|