2014-11-26 14:24:52 +00:00
|
|
|
tabset
|
|
|
|
tab heading = t('layout.edit')
|
2014-12-04 17:11:50 +00:00
|
|
|
.offset10
|
|
|
|
- if defined?(ang_model)
|
|
|
|
= f.input :body, label: false,
|
|
|
|
input_html: { rows: 10, id: "#{id}-body",
|
2014-12-18 09:59:02 +00:00
|
|
|
'ng-model' => "#{ctrl}.#{ang_model}", 'ng-value' => "#{ctrl}.#{ang_model}" }
|
2014-12-04 17:11:50 +00:00
|
|
|
- else
|
|
|
|
= f.input :body, label: false,
|
|
|
|
input_html: { rows: 10, id: "#{id}-body" }
|
2014-11-26 14:24:52 +00:00
|
|
|
|
|
|
|
tab[ heading = t('layout.preview')
|
2014-12-04 17:11:50 +00:00
|
|
|
select = "#{ctrl}.previewBody('#{id}')" ]
|
2014-11-26 14:24:52 +00:00
|
|
|
.offset10
|
2014-12-04 17:11:50 +00:00
|
|
|
i.fa.fa-spinner.fa-spin.fa-lg ng-show = "#{ctrl}.processing"
|
2014-11-26 14:24:52 +00:00
|
|
|
|
2014-12-04 17:11:50 +00:00
|
|
|
div[ ng-bind-html = "#{ctrl}.preview_body"
|
|
|
|
ng-show = "!#{ctrl}.processing" ]
|