Project

General

Profile

Feature #7403

Amélioration de l'affichage de l'audio dans un parcours

Added by Andre Boivin over 4 years ago. Updated over 4 years ago.

Status:
Feature implemented
Priority:
Normal
Assignee:
Category:
Learning paths / Lecciones
Target version:
Start date:
15/11/2014
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

J'ai modifié lp_ad_audio.php line 116 à 146:
$recordVoiceForm .= $tpl->fetch('default/learnpath/record_voice.tpl');
$form->addElement('header', get_lang('Or'));
$form->addElement('header', get_lang('AudioFile'));
$form->addElement('html', get_lang('AudioFilefor').$lp_item->get_title());

if (!empty($file)) {
$audioPlayer = '<div id="preview">'.
Display::getMediaPlayer($file, array('url' => $urlFile)).
"</div>";
$form->addElement('label', get_lang('Listen'), $audioPlayer);
$url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?lp_id='.$_SESSION['oLP']->get_id().'&action=add_audio&id='.$lp_item_id.'&delete_file=1&'.api_get_cidreq();
$form->addElement('label', null, Display::url(get_lang('RemoveAudio'), $url, array('class' => 'btn btn-danger')));
}
if (empty($file)) {
$form->addElement('file', 'file');
$form->addElement('hidden', 'id', $lp_item_id);
$form->addElement('button', 'submit', get_lang('langOk'));
}

$courseInfo = api_get_course_info();
$documentTree = DocumentManager::get_document_preview(
$courseInfo,
false,
null,
api_get_session_id(),
false,
'',
urlencode('lp_controller.php?action=add_audio&lp_id='.$_SESSION['oLP']->get_id().'&id='.$lp_item_id),
false,
true
//$folderId = false
);

Voir l'image jointe


Files

modif-audio_lp1.png (20.7 KB) modif-audio_lp1.png Andre Boivin, 15/11/2014 16:02
ajout.png (39.8 KB) ajout.png Andre Boivin, 17/11/2014 15:53

Associated revisions

Revision 9ff7fd11 (diff)
Added by Julio Montoya over 4 years ago

Layout changes + fixing PHP warnings see #7403

Revision efbe1cb9 (diff)
Added by Julio Montoya over 4 years ago

Minor - UI changes see #7403

Revision c2cd2028 (diff)
Added by Yannick Warnier over 4 years ago

Change audio variable for audio for item x - refs #7403

History

#1

Updated by Yannick Warnier over 4 years ago

  • Category set to Learning paths / Lecciones
  • Status changed from New to Assigned
  • Assignee set to Julio Montoya
  • Target version changed from 1.10.0 to 1.9.10
  • % Done changed from 0 to 10

On devrait encore pouvoir ajouter ça à 1.9.10

#2

Updated by Yannick Warnier over 4 years ago

  • Subject changed from Amélioration de l'affichage de l'audio dans un parcour to Amélioration de l'affichage de l'audio dans un parcours
#3

Updated by Yannick Warnier over 4 years ago

  • Description updated (diff)
#4

Updated by Julio Montoya over 4 years ago

  • Status changed from Assigned to Needs testing

Je viens d'ajouter ses changements:
J'ai ajouté la variable "AudioFilefor" dans translate.chamilo.org.

#6

Updated by Julio Montoya over 4 years ago

  • Assignee changed from Julio Montoya to Andre Boivin
#7

Updated by Andre Boivin over 4 years ago

Petits ajsutements, voir l'image

#8

Updated by Julio Montoya over 4 years ago

  • Assignee changed from Julio Montoya to Andre Boivin

Fixes were applied.

#9

Updated by Yannick Warnier over 4 years ago

Julio Montoya wrote:

Je viens d'ajouter ses changements:
J'ai ajouté la variable "AudioFilefor" dans translate.chamilo.org.

As for all composed language files (that take a variable), please use %s. I'm fixing that in both the code and translate.chamilo.org

#10

Updated by Yannick Warnier over 4 years ago

André, je te laisse tester les modifications sur stable.chamilo.org et approuver ici... (sinon je le considérerai fermé demain vu que 1.9.10 devrait sortir mercredi)

#11

Updated by Yannick Warnier over 4 years ago

  • % Done changed from 10 to 90
#12

Updated by Andre Boivin over 4 years ago

  • Status changed from Needs testing to Feature implemented
  • % Done changed from 90 to 100

Beau travail, merci!

Also available in: Atom PDF