textarea mieux que input sur les champs source de la transcription

This commit is contained in:
chankalan 2021-01-26 21:41:04 +01:00
parent b8a0310dfe
commit c83a07e590
3 changed files with 18 additions and 23 deletions

View File

@ -23,24 +23,26 @@ function librealire_declarer_champs_extras($champs = array()) {
) )
), ),
'source' => array( 'source' => array(
'saisie' => 'input', 'saisie' => 'textarea',
'options' => array( 'options' => array(
'nom'=>'source', 'nom'=>'source',
'sql' => "text NOT NULL DEFAULT ''", 'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => true, 'rechercher' => true,
'label' => _T('librealire:source'), 'label' => _T('librealire:source'),
'explication' => _T('librealire:source_explications'), 'explication' => _T('librealire:source_explications'),
'obligatoire' => false 'obligatoire' => false,
'inserer_barre' => 'forum'
) )
), ),
'lieu' => array( 'lieu' => array(
'saisie' => 'input', 'saisie' => 'textarea',
'options' => array( 'options' => array(
'nom'=>'lieu', 'nom'=>'lieu',
'sql' => "text NOT NULL DEFAULT ''", 'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => true, 'rechercher' => true,
'label' => _T('librealire:lieu'), 'label' => _T('librealire:lieu'),
'obligatoire' => false 'obligatoire' => false,
'inserer_barre' => 'forum'
) )
), ),
'date_t' => array( 'date_t' => array(
@ -64,14 +66,15 @@ function librealire_declarer_champs_extras($champs = array()) {
) )
), ),
'liens' => array( 'liens' => array(
'saisie' => 'input', 'saisie' => 'textarea',
'options' => array( 'options' => array(
'nom'=>'liens', 'nom'=>'liens',
'sql' => "text NOT NULL DEFAULT ''", 'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => false, 'rechercher' => false,
'label' => _T('librealire:liens'), 'label' => _T('librealire:liens'),
'explication' => _T('librealire:liens_explications'), 'explication' => _T('librealire:liens_explications'),
'obligatoire' => false 'obligatoire' => false,
'inserer_barre' => 'forum'
) )
), ),
'evenement' => array( 'evenement' => array(
@ -80,8 +83,7 @@ function librealire_declarer_champs_extras($champs = array()) {
'nom'=>'evenement', 'nom'=>'evenement',
'sql' => "text NOT NULL DEFAULT ''", 'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => false, 'rechercher' => false,
'label' => _T('librealire:evenement'), 'label' => _T('librealire:evenement'),
'explication' => _T('librealire:evenement_explications'),
'obligatoire' => false 'obligatoire' => false
) )
), ),
@ -102,14 +104,14 @@ function librealire_declarer_champs_extras($champs = array()) {
) )
), ),
'creditsvisuels' => array( 'creditsvisuels' => array(
'saisie' => 'input', 'saisie' => 'textarea',
'options' => array( 'options' => array(
'nom'=>'creditsvisuels', 'nom'=>'creditsvisuels',
'sql' => "text NOT NULL DEFAULT ''", 'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => false, 'rechercher' => false,
'label' => _T('librealire:creditsvisuels'), 'label' => _T('librealire:creditsvisuels'),
'explication' => _T('librealire:creditsvisuels_explications'), 'obligatoire' => false,
'obligatoire' => false 'inserer_barre' => 'forum'
) )
), ),
'sanssommaire' => array( 'sanssommaire' => array(
@ -127,7 +129,7 @@ function librealire_declarer_champs_extras($champs = array()) {
); );
$champs['spip_mots']['soustitre'] = array( $champs['spip_mots']['soustitre'] = array(
'saisie' => 'input',//Type du champ (voir plugin Saisies) 'saisie' => 'input',
'options' => array( 'options' => array(
'nom'=>'soustitre', 'nom'=>'soustitre',
'sql' => "text NOT NULL DEFAULT ''", 'sql' => "text NOT NULL DEFAULT ''",
@ -136,14 +138,6 @@ function librealire_declarer_champs_extras($champs = array()) {
'explication' => _T('librealire:soustitre_explications'), 'explication' => _T('librealire:soustitre_explications'),
'obligatoire' => false 'obligatoire' => false
) )
// 'options' => array(
// 'nom' => 'titre_court',
// 'label' => _T('titrecourt:titre_court'),
// 'sql' => "varchar(30) NOT NULL DEFAULT ''",
// 'defaut' => '',// Valeur par défaut
// 'restrictions'=>array('voir' => array('auteur' => ''),//Tout le monde peut voir
// 'modifier' => array('auteur' => 'webmestre')),//Seuls les webmestres peuvent modifier
// ),
); );
return $champs; return $champs;

View File

@ -39,6 +39,7 @@ function librealire_upgrade($nom_meta_base_version, $version_cible) {
cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.2']); cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.2']);
cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.3']); cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.3']);
cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.4']); cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.4']);
cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.5.3']);
// $maj['1.1.4'] = array( // $maj['1.1.4'] = array(
// array('maj_tables', array('spip_roles_documents')), // array('maj_tables', array('spip_roles_documents')),
// ); // );

View File

@ -1,8 +1,8 @@
<paquet <paquet
prefix="librealire" prefix="librealire"
categorie="squelette" categorie="squelette"
version="0.5.1" version="0.6.0"
schema="0.3.4" schema="0.5.3"
etat="test" etat="test"
compatibilite="[3.2.7;3.3.*]" compatibilite="[3.2.7;3.3.*]"
> >