modif strucutre pour badgeurl (ref #32115)

This commit is contained in:
afornerot 2021-06-10 11:43:09 +02:00
parent 9d40aa6575
commit e4cb40fae8
4 changed files with 40 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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)
]);

View File

@ -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

View File

@ -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>