2014-11-26 14:24:52 +00:00
|
|
|
tabset
|
2014-12-24 20:14:03 +00:00
|
|
|
tab.active heading = t('layout.edit')
|
2014-12-04 17:11:50 +00:00
|
|
|
.offset10
|
|
|
|
- if defined?(ang_model)
|
2015-02-02 15:44:57 +00:00
|
|
|
= f.input :body, label: false, as: :text,
|
2014-12-04 17:11:50 +00:00
|
|
|
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
|
2015-02-02 15:44:57 +00:00
|
|
|
= f.input :body, label: false, as: :text,
|
2014-12-04 17:11:50 +00:00
|
|
|
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" ]
|