modif strucutre pour badgeurl (ref #32115)
This commit is contained in:
parent
9d40aa6575
commit
e4cb40fae8
|
@ -95,6 +95,13 @@ class Item
|
|||
*/
|
||||
private $color;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="badgeurl", type="string", length=250, nullable=true)
|
||||
*/
|
||||
private $badgeurl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
|
@ -650,4 +657,28 @@ class Item
|
|||
{
|
||||
return $this->ssoitem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set badgeurl
|
||||
*
|
||||
* @param string $badgeurl
|
||||
*
|
||||
* @return Item
|
||||
*/
|
||||
public function setBadgeurl($badgeurl)
|
||||
{
|
||||
$this->badgeurl = $badgeurl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get badgeurl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBadgeurl()
|
||||
{
|
||||
return $this->badgeurl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -119,12 +119,14 @@ class AlertType extends AbstractType
|
|||
->add('publishedat', DateType::class, [
|
||||
'label' => 'Publier du',
|
||||
'input' => 'datetime',
|
||||
'widget' => 'single_text'
|
||||
])
|
||||
|
||||
->add('unpublishedat', DateType::class, [
|
||||
'label' => 'Jusqu\'au',
|
||||
'input' => 'datetime',
|
||||
'required' => false,
|
||||
'widget' => 'single_text',
|
||||
'years' => range(date('Y'), date('Y')+10)
|
||||
]);
|
||||
|
||||
|
|
|
@ -118,6 +118,11 @@ class ItemType extends AbstractType
|
|||
"required" => false
|
||||
])
|
||||
|
||||
->add('badgeurl', TextType::class, [
|
||||
'label' => "Badge URL",
|
||||
'required' => false,
|
||||
])
|
||||
|
||||
->add('essential', CheckboxType::class, [
|
||||
"label" => "Item essentiel ?",
|
||||
"required" => false
|
||||
|
|
|
@ -49,6 +49,8 @@
|
|||
{{ form_row(form.subtitle) }}
|
||||
{{ form_row(form.essential) }}
|
||||
{{ form_row(form.content) }}
|
||||
{{ form_row(form.badgeurl) }}
|
||||
{{ form_row(form.protected) }}
|
||||
</div>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue