Commit d02548a2 authored by Martin Gregor's avatar Martin Gregor
Browse files

pridanie html labelov

parent 3bf5ac79
......@@ -70,7 +70,8 @@ class HomepagePresenter extends BasePresenter
$form = new Nette\Application\UI\Form();
foreach ($this->sentences as $id => $sentence)
{
$form->addRadioList('sentence'.$id,$sentence[0],['correct' => 'Správne','incorrect' => 'Nesprávne']);
$label = \Nette\Utils\Html::el()->setHtml($sentence[0]);
$form->addRadioList('sentence'.$id,$label,['correct' => 'Správne','incorrect' => 'Nesprávne']);
foreach ($sentence[1] as $position => $word)
{
$form->addText($id.'word'.$position,'Preklad '.$word,40,100);
......@@ -200,7 +201,8 @@ class HomepagePresenter extends BasePresenter
if ($this->en_words[$position] != null)
{
$words[$position] = $this->en_words[$position]->word;
$words[$position] = '<span class="translation"><span class="en-word">'.$this->en_words[$position]->word
.'</span><span class="sk-word" style="display: none;">'.$this->words[$position].'</span></span>';
$sentence = implode(' ',$words);
if (!isset($this->sentences[$sentence]))
{
......
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