1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-06-16 23:11:07 +03:00

subscription code

This commit is contained in:
Alexander Yakovlev 2014-02-19 15:26:01 +07:00
parent d9abab48ff
commit f3879c6f81
3 changed files with 13 additions and 1 deletions

View file

@ -28,6 +28,14 @@ class View_Letter_Index extends View_Index {
return $output;
}
public function iframe_code()
{
return array(
'text' => __('Subscription code'),
'code' => '<iframe src="'.Route::url('default', array('controller' => 'Course', 'action' => 'subscribe', 'id' => $this->course_id), TRUE).'" width="100%" height="400"></iframe>',
);
}
public function link_new()
{
return HTML::anchor(Route::url('default', array('controller' => 'Letter', 'action' => 'create', 'id' => $this->course_id)), __('Add'), array('class' => 'link_new'));

View file

@ -64,5 +64,6 @@ return array(
'The instant has been sent.' => 'Мгновенное было выслано.',
'First letter' => 'Первое письмо',
'Subject' => 'Тема',
'Message body' => 'Тело письма'
'Message body' => 'Тело письма',
'Subscription code' => 'Код подписки'
);

View file

@ -1,6 +1,9 @@
{{#show_create}}
{{{link_new}}}
{{/show_create}}
{{#iframe_code}}
<p>{{text}}:<code>{{code}}</code></p>
{{/iframe_code}}
<div class="hyphenate">
{{{content}}}
</div>