autoselect study share inputs

This commit is contained in:
Thibault Duplessis 2016-10-21 15:06:38 +02:00
parent 1f8aae62e1
commit 5d2996d0e2

View file

@ -31,7 +31,7 @@ module.exports = {
m('h2', 'Share & export'), m('h2', 'Share & export'),
m('form.material.form', [ m('form.material.form', [
m('div.form-group', [ m('div.form-group', [
m('input.has-value', { m('input.has-value.autoselect', {
readonly: true, readonly: true,
value: baseUrl + studyId value: baseUrl + studyId
}), }),
@ -39,7 +39,7 @@ module.exports = {
m('i.bar') m('i.bar')
]), ]),
m('div.form-group', [ m('div.form-group', [
m('input.has-value', { m('input.has-value.autoselect', {
readonly: true, readonly: true,
value: baseUrl + studyId + '#' + chapter.id value: baseUrl + studyId + '#' + chapter.id
}), }),
@ -47,7 +47,7 @@ module.exports = {
m('i.bar') m('i.bar')
]), ]),
m('div.form-group', [ m('div.form-group', [
m('input.has-value', { m('input.has-value.autoselect', {
readonly: true, readonly: true,
disabled: !ctrl.isPublic(), disabled: !ctrl.isPublic(),
value: ctrl.isPublic() ? '<iframe width=600 height=371 src="' + baseUrl + 'embed/' + studyId + '/' + chapter.id + '" frameborder=0></iframe>' : 'Only public studies can be embedded.' value: ctrl.isPublic() ? '<iframe width=600 height=371 src="' + baseUrl + 'embed/' + studyId + '/' + chapter.id + '" frameborder=0></iframe>' : 'Only public studies can be embedded.'