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(
'saisie' => 'input',
'saisie' => 'textarea',
'options' => array(
'nom'=>'source',
'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => true,
'label' => _T('librealire:source'),
'explication' => _T('librealire:source_explications'),
'obligatoire' => false
'obligatoire' => false,
'inserer_barre' => 'forum'
)
),
'lieu' => array(
'saisie' => 'input',
'saisie' => 'textarea',
'options' => array(
'nom'=>'lieu',
'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => true,
'label' => _T('librealire:lieu'),
'obligatoire' => false
'obligatoire' => false,
'inserer_barre' => 'forum'
)
),
'date_t' => array(
@ -64,14 +66,15 @@ function librealire_declarer_champs_extras($champs = array()) {
)
),
'liens' => array(
'saisie' => 'input',
'saisie' => 'textarea',
'options' => array(
'nom'=>'liens',
'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => false,
'label' => _T('librealire:liens'),
'explication' => _T('librealire:liens_explications'),
'obligatoire' => false
'obligatoire' => false,
'inserer_barre' => 'forum'
)
),
'evenement' => array(
@ -80,8 +83,7 @@ function librealire_declarer_champs_extras($champs = array()) {
'nom'=>'evenement',
'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => false,
'label' => _T('librealire:evenement'),
'explication' => _T('librealire:evenement_explications'),
'label' => _T('librealire:evenement'),
'obligatoire' => false
)
),
@ -102,14 +104,14 @@ function librealire_declarer_champs_extras($champs = array()) {
)
),
'creditsvisuels' => array(
'saisie' => 'input',
'saisie' => 'textarea',
'options' => array(
'nom'=>'creditsvisuels',
'sql' => "text NOT NULL DEFAULT ''",
'rechercher' => false,
'label' => _T('librealire:creditsvisuels'),
'explication' => _T('librealire:creditsvisuels_explications'),
'obligatoire' => false
'label' => _T('librealire:creditsvisuels'),
'obligatoire' => false,
'inserer_barre' => 'forum'
)
),
'sanssommaire' => array(
@ -127,7 +129,7 @@ function librealire_declarer_champs_extras($champs = array()) {
);
$champs['spip_mots']['soustitre'] = array(
'saisie' => 'input',//Type du champ (voir plugin Saisies)
'saisie' => 'input',
'options' => array(
'nom'=>'soustitre',
'sql' => "text NOT NULL DEFAULT ''",
@ -136,14 +138,6 @@ function librealire_declarer_champs_extras($champs = array()) {
'explication' => _T('librealire:soustitre_explications'),
'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;

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.3']);
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(
// array('maj_tables', array('spip_roles_documents')),
// );

View File

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