Commit ea2b5215 authored by Patrick Barroca's avatar Patrick Barroca 😁
Browse files

dev #65267 : fix RT

parent d8fe604b
'65267' =>
['Label' => $this->_('[Bonus] Modération des vidéos'),
'Desc' => '',
['Label' => $this->_('Modération des vidéos'),
'Desc' => $this->_('Vous pouvez désormais proposer une url de bande-annonce pour une notice'),
'Image' => '',
'Video' => '',
'Category' => '',
'Video' => 'https://www.youtube.com/watch?v=PMHhBcoB68Y',
'Category' => $this->_('Administration'),
'Right' => function($feature_description, $user) {return true;},
'Wiki' => '',
'Wiki' => 'http://wiki.bokeh-library-portal.org/index.php?title=Modifier_une_bande_annonce',
'Test' => '',
'Date' => '2017-11-27'],
\ No newline at end of file
- ticket #65267 : [Bonus] Modération des vidéos
\ No newline at end of file
- ticket #65267 : Administration : Modération des vidéos de bande-annonces
\ No newline at end of file
......@@ -147,7 +147,9 @@ class Class_WebService_AllServices {
public function uploadTrailerForRecord($url, $id) {
$notice = Class_Notice::find($id);
if (!$notice = Class_Notice::find($id))
return $this->_('Notice non trouvée');
$result = static::runServiceAfiUploadTrailer(array_filter(['url_trailer' => $url,
'clef_oeuvre' => $notice->getClefOeuvre(),
'type_doc' => $notice->getFamilleId()]));
......
......@@ -16,23 +16,21 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_Form_BiographieNotice extends ZendAfi_Form {
public function init() {
parent::init();
$this
->addElement('url',
'url_auteur',
->addElement('url',
'url_auteur',
['label' => $this->_('URL Wikipedia de l\'auteur'),
'size' => 80,
'required' => true,
'allowEmpty' => false,
'placeholder' => 'ex: http://fr.wikipedia.org/wiki/Henri_Laborit'])
->addElement('submit',
'envoyer',
['label' => 'Envoyer']);
->addToHeadGroup(['url_auteur'])
;
}
}
?>
\ No newline at end of file
}
\ No newline at end of file
......@@ -28,11 +28,9 @@ class ZendAfi_Form_RecordTrailer extends ZendAfi_Form {
['label' => $this->_('URL de la bande-annonce'),
'size' => 80,
'required' => true,
'allowEmpty' => false,
'placeholder' => 'ex: https://youtu.be/AUI12X'])
->addElement('submit',
'envoyer',
['label' => 'Envoyer']);
->addToHeadGroup(['url_trailer'])
;
}
}
?>
\ No newline at end of file
}
\ No newline at end of file
......@@ -47,11 +47,13 @@ class ZendAfi_View_Helper_Biographie extends ZendAfi_View_Helper_BaseHelper {
'action' => 'biography',
'id' => $notice->getId()]);
return $this->view->tag('button',
$this->_('Modifier la biographie'),
['class' => 'admin-button',
'data-url' => $url,
'data-popup' => 'true']);
return $this->view
->admin_Button((new Class_Entity())
->setText($this->_('Modifier la biographie'))
->setUrl($url)
->setAttribs(['data-popup' => 'true'])
->setImage(Class_Admin_Skin::current()
->renderButtonIconOn('configuration', $this->view)));
}
......
......@@ -61,16 +61,17 @@ class ZendAfi_View_Helper_Trailer extends ZendAfi_View_Helper_BaseHelper {
if (!Class_Users::isCurrentUserCanAccesBackend())
return '';
$url = $this->view->url(['module' => 'admin',
'controller' => 'records',
'action' => 'trailer',
'id' => $notice->getId()]);
return $this->view->tag('button',
$this->_('Modifier la bande-annonce'),
['class' => 'admin-button',
'data-url' => $url,
'data-popup' => 'true']);
return $this->view
->admin_Button((new Class_Entity())
->setText($this->_('Modifier la bande-annonce'))
->setUrl($url)
->setAttribs(['data-popup' => 'true'])
->setImage(Class_Admin_Skin::current()
->renderButtonIconOn('configuration', $this->view)));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment